If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Started by swguy on 13 Aug 2006, 10:22 AM · Views: 226,694

Results 801 to 820 of 847
10 Jan 2017, 10:45 PM
#801
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Quantity Discounts for 1.3

Hi Scott, probably my english is the bummer, but i can not find how to achieve this:
i have different prices for quantity, but not all items have the same price.
so idealy i would like to see my discounts as a sliding scale discount.
is that possible also?
if not, do you have a sollution :D

11 Jan 2017, 12:19 PM
#802
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You would probably be better off with the built-in quantity discounts then, which allows per-item configuration of the discount.

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.

11 Mar 2017, 12:13 AM
#803
flyvholm avatar

flyvholm

New Zenner

Join Date:
Jul 2014
Location:
Denmark
Posts:
27
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I've had the embarrassing situation that my Zen Cart made obvious calculation errors in some situations, specifically when Quantity Discounts worked in combination with a discount coupon. I finally tracked down what seems like a bug (at least it worked as such for me). In includes/modules/order_total/ot_quantity_discount.php, function process() subtracts the discount from and adjusts the tax amounts in the global $order array. However, $order stores both a subarray of the separate taxes ($order->info['tax_groups']) and a total sum of those taxes ($order->info['tax']). In function process() the subarray is adjusted, but the total sum isn't. This can be fixed by adding a line...

			   $order->info['tax'] -= $od_amount[$key];

...just after the line with the same adjustment to the subarray $order->info['tax_groups']. I hope this may help a few others avoid what I've just been through. :smile: Thanks a lot for this module btw - the user exits are brilliant for me, making it easy to set up customized discounts that couldn't be done via the admin interface.

11 Mar 2017, 12:23 AM
#804
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Thanks for posting this. What are your settings for admin-modules-order total-Quantity Discounts, and do you have multiple levels of tax? I'm just curious about why I haven't seen this before.

Later update: note that shopowners who recalculate tax should set the sort order for native discounting modules above (i.e. lower than) my modules. Otherwise they will need to make the changes described in https://www.thatsoftwareguy.com/zencart_native_discounts_resorting.html.

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.

11 Mar 2017, 2:24 AM
#805
flyvholm avatar

flyvholm

New Zenner

Join Date:
Jul 2014
Location:
Denmark
Posts:
27
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Include Tax: False
Re-calculate Tax: Standard
Sort Order: 200 (between Sub-Total and Discount Coupon)

Only one tax in my case (EU VAT). The ot_tax module only uses the subarray $order->info['tax_groups'], so the problem isn't seen in basic use. Perhaps combining Quantity Discounts with coupons is rare, but given how much this module has been used I'm also surprised this issue hasn't surfaced before.

26 Jul 2017, 4:46 AM
#806
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I am installing 1.5.5e and need Quantity Discount for 3, 6, and 12 items. I only have 3 products to sell. The discount works great on each product. I also need to give discount on mixed. If customer buy's 3 different products they still would get a discount. Can the built-in quantity discount mod provide mix product discount? If so how do you set it up?

26 Jul 2017, 10:59 AM
#807
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Use the Quantity Discount mod and set Discount Basis = Total Items in Cart in admin-modules-order total-quantity discounts.

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.

13 Feb 2018, 10:38 PM
#808
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have a problem with Quantity Discounts and Edit Orders. When I purchase an item eligible for quantity discounts on the store-side, everything is fine. But when I edit that order in the admin, everything is correct except the order total. It is too low by the tax on the quantity discount amount. I have been discussing this issue on the Edit Orders support forum, beginning with post #1195, but I'm stuck. Has anyone successfully integrated these two plugins successfully? Any hints would be gratefully appreciated. ZC v155e, Quantity Discounts v1.12.1, Edit Orders v4.3.1.

14 Feb 2018, 6:31 AM
#809
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Link to approximate location in EO thread: https://www.zen-cart.com/showthread.php?200407-Edit-Orders-v4-0-Support-Thread/page123

I can repro this issue.

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.

19 Feb 2018, 1:43 PM
#810
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

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.

5 Nov 2018, 6:30 PM
#812
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Quantity Discounts for 1.3

My store is set to display inclusive of tax. When I have a discount applied, the quantity total deductions and sub total after discounts are showing exclusive of tax.
I traced this down to classes/order.php line 293

In v1.5.5 this has been changed from

$taxCountryId = $taxZoneId = -1;

to

$taxCountryId = $taxZoneId = 0;

when it is -1 by default, the deductions and subtotal correctly show to include tax.

Is there any fix for this, apart from removing the updated code introduced in 1.5.5 ?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

5 Nov 2018, 6:39 PM
#813
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You may have found a bug. Could be the code should be more like

if (DISPLAY_PRICE_WITH_TAX) {
   $taxCountryId = $taxZoneId = -1;
} else {
   $taxCountryId = $taxZoneId = 0; 
}

but I'm not sure.

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.

5 Nov 2018, 6:43 PM
#814
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Quantity Discounts for 1.3

swguy:

You may have found a bug. Could be the code should be more like

if (DISPLAY_PRICE_WITH_TAX) {
$taxCountryId = $taxZoneId = -1;
} else {
$taxCountryId = $taxZoneId = 0;
}

> 
> but I'm not sure.

That edit certainly resolves the issue, and it would make sense that the value is set based on the saved setting for Display Prices with Tax.

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

5 Nov 2018, 6:46 PM
#815
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Would you please put a post in https://www.zen-cart.com/forumdisplay.php?140-Bug-Reports ?
(I would do it but they are likely going to want to ask you about various settings you have.)

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.

21 Dec 2018, 12:16 PM
#817
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

PHP7 updates complete - see new version in the Plugins area.

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.

8 May 2019, 11:22 AM
#818
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Great plugin. I am also using the Dual Pricing plugin and was hoping someone can give me guidance to bypass quantity discounts for wholesale customers.

Thanks

8 May 2019, 11:44 AM
#819
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

My guidance would be, "buy a customized install from my store." :)

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.

3 Jun 2020, 2:05 PM
#820
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hello there,

Is there a function statement to exclude items from the one time discount module, if they are already on special?

Thanks in Advance!