Skip to content

Commit

Permalink
調整物流貨到付款下限金額
Browse files Browse the repository at this point in the history
  • Loading branch information
payuni committed Jul 1, 2024
1 parent 8803a1d commit 89028f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logistic/class-payuni-logistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function get_logistic()

// 塞入物流方式
public function insert_shipping_methods($methods)
{
{
$methods['PAYUNi_Logistic_711'] = 'PAYUNi_Logistic_711';
$methods['PAYUNi_Logistic_711_Freeze'] = 'PAYUNi_Logistic_711_Freeze';
$methods['PAYUNi_Logistic_Tcat'] = 'PAYUNi_Logistic_Tcat';
Expand Down Expand Up @@ -52,9 +52,9 @@ public function check_shipping_payment($payment_gateways)
if($total >= 20000){
$payment_gateways['payuni']->description .= '<p class="woocommerce-notice woocommerce-notice--info woocommerce-info">訂單總金額超過2萬元,將無法使用貨到付款。</p>';
}
// 結帳總金額檢查(低於30元提示訊息)
if($total <= 30){
$payment_gateways['payuni']->description .= '<p class="woocommerce-notice woocommerce-notice--info woocommerce-info">訂單總金額低於30元,將無法使用貨到付款。</p>';
// 結帳總金額檢查(低於1元提示訊息)
if($total <= 1){
$payment_gateways['payuni']->description .= '<p class="woocommerce-notice woocommerce-notice--info woocommerce-info">訂單總金額低於1元,將無法使用貨到付款。</p>';
}
}
}
Expand Down

0 comments on commit 89028f1

Please sign in to comment.