Post by vaidyamanishjoshi » Fri Sep 11, 2020 5:11 pm

I am using oc 2.3.0.2

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

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by thekrotek » Fri Sep 11, 2020 6:35 pm

Set subtotal to 1 and update the rest accordingly.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by kestas » Sat Sep 12, 2020 12:14 am

thekrotek wrote:
Fri Sep 11, 2020 6:35 pm
Set subtotal to 1 and update the rest accordingly.
You can find this settings in Extensions/Extensions/Order Totals

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by littleredcar » Fri Jan 08, 2021 2:17 am

Hi there.

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 :-)


Active Member

Posts

Joined
Thu Jul 30, 2009 4:21 pm

Post by thekrotek » Fri Jan 08, 2021 2:34 am

Check your Sort Order value.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by littleredcar » Fri Jan 08, 2021 2:55 am

thekrotek wrote:
Fri Jan 08, 2021 2:34 am
Check your Sort Order value.
didn't think, my english was THAT bad. ;D

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 :-)


Active Member

Posts

Joined
Thu Jul 30, 2009 4:21 pm

Post by thekrotek » Fri Jan 08, 2021 3:13 am

Either one of your 3rd party extensions changes sort order values or you have a caching issue. Nothing else is even possible.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Cue4cheap » Fri Apr 14, 2023 10:01 am

Well this is 2020/2021 posts but here is what I see....

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')
then it needs to be changed to

Code: Select all

'sort_order' => $this->config->get('coupon_sort_order')
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 26 guests