I have set sort order in extensions >> order total >> as subtotal 0, taxes 1, coupon 2, X-fee 3, shipping 4 , store credit 5 , total 6
But when I apply coupon. in cart, first coupon amount seen, then subtotal and rest....
Ideally it should be
Subtotal : $100
Taxes : $5
Coupon (Code) : -$10
Xfees : $2
Shipping : $20
Store Credit : -$50
Total : $45
But I am seeing as follow:
Coupon (Code) : -$10
Subtotal : $100
Taxes : $5
Xfees : $2
Shipping : $20
Store Credit : -$50
Total : $45
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Same problem here (OC 2.3.0.2).
coupon is ALWAYS shown as very first item - even BEFORE subtotal.
BUT EVEN IF I SET CORRECT SORTING ORDER under "extensions > extensions > order totals" it´s beeing shown (and even worse: beeing CALCULATED) as first item!
(cache cleared, of course!)
this is what i defined as sort order in backend:
---
subtotal (1)
promotion (20)
coupon (30)
shipping (90)
tax (91)
total (92)
---
but this is what it looks like in cart and checkout:
---
coupon (30)
subtotal (1)
promotion (20)
shipping (90)
tax (91)
total (92)
---
even if i set coupon to 99 it still appears in very first position. wich is stupid as i want the coupon to be applied AFTER ALL OTHER POSSIBLE reductions. 20% off of subtotal is MORE than 20% off of subtotal - promotions.
in numbers:
100$ - 20% coupon = 80$ - 10$ promotion = 70$
vs.
100$ - 10$ promotion = 90$ - 20% coupon = 72$
and i do NOT want to give my customers those 2$ as a gift (in addition to the promotion AND coupon)
any idea what i can do to make the changes in my backend to appear in the frontend?
cheers!
---
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 :-)
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
didn't think, my english was THAT bad.
BACKEND (Extensions/Extensions/Order Totals):
sort order "subtotal" = 1
sort order "coupon" = 30
>>> clear cache <<<
FRONTEND:
coupon is beeing show as FIRST item > BEFORE subtotal.
so once again:
ANY CHANGES IN THE BACKEND CONCERNING THE SORT ORDER DO not AFFECT THE SORT ORDER IN CART AND CHECKOUT IN THE FRONTEND.
hence my question:
"any idea what i can do to make the changes in my backend to appear in the frontend?"
cheers.
---
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 :-)
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
The sort order in admin and the front end uses catalog/model/extension/total/coupon.php
If you have this line of code
Code: Select all
'sort_order' => $this->config->get('total_coupon_sort_order')
Code: Select all
'sort_order' => $this->config->get('coupon_sort_order')
cue4cheap not cheap quality
Users browsing this forum: No registered users and 20 guests