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 741 to 760 of 847
19 Nov 2013, 4:54 AM
#741
eric_chen avatar

eric_chen

New Zenner

Join Date:
May 2012
Posts:
39
Plugin Contributions:
0

Quantity Discounts for 1.3

Hi,

In our store, we offer quantity discounts on all products dependent on the quantity purchased (set in Categories Quantities Discounts ).

The price is discounted correctly in the Quantity Box on the product page. But my only issue is that it's not discounted in the cart. Please refer to the following picture:

Attachment 13369

Attachment 13370

The cart calculation is just based on base price, but not on discount price. I wonder if it has something to do with the cart and checkout calculating the discount differently?

Any suggestions would be greatly appreciated.

Eric

19 Nov 2013, 6:16 AM
#742
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

@Eric, this is the support thread for my Quantity Discounts mod

http://www.zen-cart.com/downloads.php?do=file&id=135

which is different from Numinix's mod

http://www.zen-cart.com/downloads.php?do=file&id=1485

And it appears you are using his rather than mine.

In any event, both are order total modules, which means the customer doesn't see the discount until they check out.

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 Feb 2014, 11:20 PM
#743
taxcloud avatar

taxcloud

New Zenner

Join Date:
Dec 2010
Location:
Seattle
Posts:
86
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

We have a report from a TaxCloud merchant that has recently installed Quantity Discounts:

"Rather than applying the discount to the sub-total, adding shipping, and then calculating the tax (as it should) Quantity Discounts is adding the sub-total and shipping together, calculating the tax, and then applying the discount."

This observation is correct.

It is important that the discounts are applied to each item and not as a separate line item on the checkout page.

For example, let’s say you have a promotional offer of $10 off a $50 order. If a customer is purchasing two items totaling $50 (each with a sales price of $25), you will need to divide the $10 discount between those items (adjusting the sales price for each item to $20). Only after the discount has been applied can one determine the sales tax amount due.

Furthermore, and this is the issue provoking this post, combining shipping amount with the subtotal will prevent proper determination of tax because shipping is NOT always taxable.

7 Feb 2014, 1:07 AM
#744
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Quantity Discounts does not include shipping. Furthermore, it does not apply discounts to individual items. That's the point of an Order Total module. It applies the discount to the total. If you need per item discounting, you will need to use Sales, Specials or the Native Quantity Discounting mechanism in Zen Cart.

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.

22 Apr 2014, 3:54 PM
#745
shekman avatar

shekman

New Zenner

Join Date:
Apr 2014
Location:
Portland Oregon
Posts:
2
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hello Doodlebuckets,

I am wondering if you are first of all still there as this post is a few years old! If so, did you ever get your answer regarding if the discounted price per category can somehow be manually entered instead of a percentage? Your question matches mine almost word for word as I have a similar situation with my pricing tiers at my online store. I want to simply add the discounted price without relying on the calculator to create the new pricing tier since it is not giving the result I need.

Thanks and I look forward to hearing from you,

Scott( a different Scott than in this thread :)

22 Apr 2014, 4:24 PM
#746
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 aren't limited to discount by percentage - you can discount by a currency amount.

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 Jul 2014, 3:25 PM
#747
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Quantity Discounts works fine in Zen Cart 1.5.2 and 1.5.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.

30 Jul 2014, 3:26 AM
#748
jefflc avatar

jefflc

New Zenner

Join Date:
Oct 2011
Location:
Ohio
Posts:
28
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hello,

Hopefully I'm posting this the right way in the correct thread. I am using Zen Cart v1.3.9h with the swguy Quantity Discounts mod. When I installed the mod, I ran a number of test orders to confirm it calculated the discounted price correctly for different order sizes, but I didn't complete the order and charge a credit card.

Today the first customer purchased enough items to qualify for the quantity discount. The discount calculated correctly and was reflected in the order total in the shopping cart and on the order record I see now in ZC. When the customer's credit card was charged, however, it was charged for the undiscounted amount. What could cause this? I searched the forum and didn't find a similar issue.

Thanks for your assistance.

Jeff

30 Jul 2014, 9:28 AM
#749
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Which credit card integration are you using?

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 Jul 2014, 10:56 AM
#750
jefflc avatar

jefflc

New Zenner

Join Date:
Oct 2011
Location:
Ohio
Posts:
28
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I'm using the Authorize.net (AIM) module.

30 Jul 2014, 11:02 AM
#751
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Are you using the official one from Zen Cart? This is the first time I have heard of this problem in Zen Cart. In osCommerce it was a huge problem because people would grow their own payment modules without taking into account order totals.

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 Jul 2014, 11:28 AM
#752
jefflc avatar

jefflc

New Zenner

Join Date:
Oct 2011
Location:
Ohio
Posts:
28
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Yes, I am using the one that came with the Zen Cart software. I downloaded the full version of the software from the Zen Cart site and installed it myself (not using my hosting company's automated install).

In case it's relevant, I am also using the TaxCloud module to calculate in-state sales tax, though this customer was out of state so there was no sales tax charged.

7 Nov 2014, 2:43 PM
#753
nipinuk avatar

nipinuk

Zen Follower

Join Date:
Oct 2005
Location:
Hampshire, UK
Posts:
96
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I would be grateful for any help with trying to display the right marketing text for two parent categories which uses the function apply_special_category_discount. I've read and re-read the detailed documentation and still don't know how to add logic to the get_discount_parms() method I'm using from Quantity Discounts to reflect my category exceptions.

All my other products use Total By Item discount basis as follows:
Quantity Discount
2 - 9 10%
10 - 39 15%
40 + 20%

Parent categories 16 & 22 uses the following discount basis
2 - 9 10%
10 + 15%

This is what I've done:

  1. Apply_special_category_discount() in includes/modules/order_total/ot_quantity_discount.php
function apply_special_category_discount($category, $count, &$disc_amount) {
        switch($category) {
           case 16:
           case 22:		
                if ($count >= 10) {
                   $disc_amount = 15;
                } else if ($count >= 2) {
                   $disc_amount = 10;
                }
                break; 
        }
    }
  1. As many of my products are linked and I've made the two changes to includes/templates/MYTEMPLATE/templates/tpl_product_info_display.php as advised in http://www.thatsoftwareguy.com/zencart_category_issues.html#mt

Has anyone managed to get this working?

7 Nov 2014, 2:53 PM
#754
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 have to hardcode the marketing text for these exception cases. The get_* functions can't reverse engineer your logic in the apply_special functions.

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 Nov 2014, 11:18 AM
#755
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

The help page has been updated with an example of this.

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.

10 Nov 2014, 11:44 AM
#756
nipinuk avatar

nipinuk

Zen Follower

Join Date:
Oct 2005
Location:
Hampshire, UK
Posts:
96
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thank you so much Scott! I appreciate the example which worked when I cut and paste.

Scott, I realised that my apply_special_category_discount isn't working. I've checked and checked to see if I've got my syntax wrong or missed something but don't seem to. All I've done for this is ammend includes/modules/order_total/ot_quantity_discount.php to

function apply_special_category_discount($category, $count, &$disc_amount) {
        switch($category) {
           case 16:
           case 22:		
                if ($count >= 10) {
                   $disc_amount = 15;
                } else if ($count >= 2) {
                   $disc_amount = 10;
                }
                break; 
        }
    }

I've tested it by adding my basket with 50 products and the discount is showing as 20% (which is default for all other products) and not 15% for this category. I feel as thick as two planks!

Thank you for your patience.

10 Nov 2014, 1:59 PM
#757
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Go to the FAQ for Quantity Discounts and look at the link "Category Issues." Either your master categories id is not set the way you think it is (sometimes happens when EZ Populate is used) or you aren't clear on what "category" means for Quantity Discounts (it means master category).

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.

10 Nov 2014, 3:56 PM
#758
nipinuk avatar

nipinuk

Zen Follower

Join Date:
Oct 2005
Location:
Hampshire, UK
Posts:
96
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thank you for the quick reply Scott. I've read the Category Issues http://www.thatsoftwareguy.com/zencart_category_issues.html#mt a few times and read it again a couple of times and realised that I was using a linked category (master_categories_id = 16) which I've removed and checked that the one I'm using (master_categories_id = 22) is correct.

includes/modules/order_total/ot_quantity_discount.php now shows

function apply_special_category_discount($category, $count, &$disc_amount) {
        switch($category) {
                   case 22:		
                if ($count > 10) {
                   $disc_amount = 15;
                } else if ($count > 2) {
                   $disc_amount = 10;
                }
                break; 
        }
    }

It still doesn't seem to be working. E.g. if I add a quantity of 50 to this product from category id 22 - http://tinyurl.com/kzhgamj, I'm getting 20% discount (default discount for all other categories) instead of 15%. I'm using Fast and Easy Checkout module and I don't think that matters in this case. I've read the installation notes again. Going to take a break. It's so straightforward with detailed documention and I'm pulling my hair out!

10 Nov 2014, 4:13 PM
#759
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Hmmm.... one thing you may not have considered - this exit only works for Total by Category - have you checked your Discount Basis setting in Admin->Modules->Order 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.

10 Nov 2014, 8:52 PM
#760
nipinuk avatar

nipinuk

Zen Follower

Join Date:
Oct 2005
Location:
Hampshire, UK
Posts:
96
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

That was it! Mine was set at Total by Item so when I changed it, everything works as expected! Thank you so much Scott. I've sent you a small donation as a token of my appreciation for your superb and expert support.