Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-09-2025 10:52:08

west4
Member
From: UK
Registered: 04-16-2008
Posts: 648
Website

Discount Codes during checkout issues

Hi,

I have set up a discount code for the shop but during checkout the discount code shows after Delivery even with Delivery not included in the discount, how can I get the Discount to SHOW before the Delivery during checkout?

I think it needs to be showing before the Delivery if 'Don't include Delivery in the discount' is checked and after delivery if 'Include delivery' is checked.

https://westfield4schools.co.uk/images/Discount-Position01.jpg

Cheers,
Bruce.

Last edited by west4 (04-10-2025 02:56:12)


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#2 04-11-2025 07:15:03

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19888
Website

Re: Discount Codes during checkout issues

The way checkout works is the discounts are calculated after shipping as shipping can impact discount amounts.  Taxes are done after the discounts, because those can impact taxes.  And so on.  The calculations are in the order in which they are done, which is pretty much the way it should be.  You could mod the checkout order total and all the order summary includes and switch it around, but I wouldn't advise it.  Keeping those changes through updates would be cumbersome, and one could argue the way it's done now is better.


Nick Hendler

Offline

 

#3 04-11-2025 09:28:40

west4
Member
From: UK
Registered: 04-16-2008
Posts: 648
Website

Re: Discount Codes during checkout issues

Hi Nick,

I get that shipping CAN impact discount amounts but surely not if you have turned off 'include shipping' in the discount. In that case the screen needs to put the discount before the shipping so the customer can see the shipping is not included, else leave it as is. Is there not a 'Check if shipping is included in the discount' if/then type of statement that can be used?

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#4 04-14-2025 08:13:32

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19888
Website

Re: Discount Codes during checkout issues

You are free to modify the includes for the checkout totals (cototals.php) and all the order summary includes (ordersummary*.php) in {private}/apps/ecom/ECOM/includes to rearrange the totals in any way you like.  Those will handle all the customer-viewable order displays.  There are more to tackle if you wanted to hit all the backend displays as well.


Nick Hendler

Offline

 

Board footer