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.
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.
Cheers,
Bruce.
Last edited by west4 (04-10-2025 02:56:12)
Offline
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.
Offline
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.
Offline
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.
Offline