Post by HAO » Wed May 17, 2017 8:44 am

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

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by imdevlper18 » Wed May 17, 2017 1:53 pm

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.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by HAO » Mon May 22, 2017 12:03 am

Thank you for your reply!

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

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm
Who is online

Users browsing this forum: No registered users and 2 guests