Page 1 of 1

How to modify the free shipping calculate rules?

Posted: Wed May 17, 2017 8:44 am
by HAO
We are currently free shipping calculation rules, is more than 1000 can be free shipping.

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;
		}

Re: How to modify the free shipping calculate rules?

Posted: Wed May 17, 2017 1:53 pm
by imdevlper18
Change the sort order of discount above free shipping.
So first discount should come and then free shipping.

And then use $total in shipping calculation for checking the total.

Re: How to modify the free shipping calculate rules?

Posted: Mon May 22, 2017 12:03 am
by HAO
Thank you for your reply!

We have paid after that, please adjust the total amount of the designer as a calculation of the rules.