Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Discount At the Order Total level

Discount At the Order Total level

Views: 3,944

Results 1 to 10 of 10
29 Nov 2021, 5:24 AM
#1
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Discount At the Order Total level

https://heirloomstocherish.com/ ZenCart v1.5.5f PHP Version: 7.1.33 (Zend: 3.1.0)

I would like to be able to discount at the Order Total Level, and have done pretty well with Product Discount, but how do I discount an order at the Grand Total level, including Product and Shipping?

29 Nov 2021, 11:38 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Discount At the Order Total level

Can you be more specific about what you'd like to do?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Nov 2021, 6:45 AM
#3
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Re: Discount At the Order Total level

I'm not sure how convey what I'm looking for, so here's the first pass. Hope this helps, but if not, please let me know what more I need to do to make it more understandable.

Attachment 19844

30 Nov 2021, 12:29 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Discount At the Order Total level

Are you using my Quantity Discounts module?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Nov 2021, 6:09 PM
#5
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Re: Discount At the Order Total level

swguy:

Are you using my Quantity Discounts module?

No, I'm not, but I will go look for it and see if it fits my needs.
Thanks!

30 Nov 2021, 6:11 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Discount At the Order Total level

Then how are you getting the Quantity Discounts as a line item on your invoice? Built-in Zen Cart Quantity Discounts reduce the price of a product and do not show up as a line item. Are you using another order total module?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

2 Dec 2021, 7:44 PM
#7
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Re: Discount At the Order Total level

I am using Modules/Order Total/Quantity Discount. I have set 3 levels of discount and have set the sort order to immediately follow the product total, which is how the discount is based. It works perfectly for my needs, except for the subject of this thread.

I am about to try your Quantity Discounts module, so I'll let you know how that works for me.

2 Dec 2021, 9:18 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Discount At the Order Total level

You are already using my Quantity Discounts module.
To get to your goal, you'd have to change the logic to add in the shipping discount.
Then change the sort order of the module so it's at the bottom below Shipping and just above Total.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

2 Dec 2021, 11:51 PM
#9
phil_soth avatar

phil_soth

Zen Follower

Join Date:
Sep 2013
Location:
Warren, Oregon
Posts:
117
Plugin Contributions:
0

Re: Discount At the Order Total level

swguy:

You are already using my Quantity Discounts module.
To get to your goal, you'd have to change the logic to add in the shipping discount.
Then change the sort order of the module so it's at the bottom below Shipping and just above Total.

How do I do that? what code to I add/change in which php file (s)

3 Dec 2021, 12:29 AM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Discount At the Order Total level

You should be working with a developer. I really can't do this kind of thing on the forum; it's too complicated.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.