But we have to purchase"BUY N GET N FREE OR $ OR % OFF Any Combination" discount module, Because the free shipping calculation standard is based on sub-total, So the resulting calculation error.
Buy product items price: 100*10=1000
Sub-total $1,000
Free shipping $00
Choose 6,Buy 5 get 1 $-100
Total $900
How can I be modified to calculate based on the total amount?
My free shipping module calculation rules:
Code: Select all
if ($this->cart->getSubTotal()<$ecpaylogisticSetting['ecpaylogistic_min_amount'] || $this->cart->getSubTotal()>$ecpaylogisticSetting['ecpaylogistic_max_amount'] ) {
$status = false;
}
$isFreeShipping = false;
if ($this->cart->getSubTotal()>=$ecpaylogisticSetting['ecpaylogistic_free_shipping_amount']) {
$isFreeShipping = true;
}