Any help would be greatly appreciated.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Code: Select all
<file name="catalog/model/extension/total/coupon.php">
<operation>
<search position="before"><![CDATA[$total['total'] -= $discount_total;]]></search>
<add><![CDATA[$this->session->data['coupon_discount'] = $discount_total;]]></add>
</operation>
</file>
<file name="catalog/model/extension/shipping/free.php">
<operation>
<search position="before"><![CDATA[$method_data = array();]]></search>
<add><![CDATA[ if ( (isset($this->session->data['coupon']) && ($this->session->data['coupon'] != '')) &&
(isset($this->session->data['coupon_discount']) && ($this->session->data['coupon_discount'] != '')) ) {
$coupon_discount = $this->session->data['coupon_discount'];
if ($this->cart->getSubTotal() < ($this->config->get('free_total') + $coupon_discount)) {
$status = false;
}
}]]>
</add>
</operation>
</file>
------------------------------------------------------------------------------
CHARGE #1
Title: Free Shipping Over $100
Sort Order: 1
Charge Field: 100-99999 = 0
Rule: Total Value = Total
------------------------------------------------------------------------------
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Increase Your Child's I.Q.
iPad Wallpapers
Turtle & Tortoise Screen Savers
anyone found a solution to this (i am using 2.3.0.2)?
i already bought 'total-based shipping' from jonathan. but shipping costs still get calculated the WRONG way. if total drops below free shipping AFTER applying a discount, customers get free shipping IN ADDITION to the discount - which is kinda... STUPID!
there must be a solution to change CALCULATION ORDER, not only SORTING ORDER in cart + checkout...
---
Environment
php: 7.2
MySQL: 5.7.26
Browser: Chrome latest
---
OpenCart
2.3.0.2 singlestore (bugfree edition by xxvirusxx: https://github.com/condor2/Opencart_2302)
DE language by OSWorX (https://www.opencart.com/index.php?rout ... n_id=31048)
Template: Sellmore by 321cart
quite a few Extensions :-)
thats something OC cant do out of the box. so go ahead and get his total-based extension https://www.opencartx.com/total-based-shipping.
highly recommended - and support is top-notch!!
cheers, johnathan
---
Environment
php: 7.2
MySQL: 5.7.26
Browser: Chrome latest
---
OpenCart
2.3.0.2 singlestore (bugfree edition by xxvirusxx: https://github.com/condor2/Opencart_2302)
DE language by OSWorX (https://www.opencart.com/index.php?rout ... n_id=31048)
Template: Sellmore by 321cart
quite a few Extensions :-)
www.getclearthinking.com/contact
Users browsing this forum: No registered users and 180 guests