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 61 to 80 of 847
23 Jan 2007, 8:43 PM
#61
swguy avatar

swguy

Administrator

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

Quantity Discounts for 1.3

Huh? It works fine in 1.3.6 and 1.3.7.

Scott

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.

23 Jan 2007, 9:03 PM
#62
beowulf1066 avatar

beowulf1066

New Zenner

Join Date:
Jan 2007
Location:
Georgia, USA
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Must be me then. When I install... the editing box to the right of the modules in order-totals disappears. And, quantity discounts is not even in the list. Oh well, I will keep trying.

23 Jan 2007, 9:39 PM
#63
beowulf1066 avatar

beowulf1066

New Zenner

Join Date:
Jan 2007
Location:
Georgia, USA
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Yikes, now I have it installed, I see a problem. With mine, the discount is per item/quantity. IOW - when someone buys 10 of anything on the site then each item is discounted. 1-9=2.00, 10-15=1.00 per item. How can I accomplish that?

2 Feb 2007, 4:44 PM
#64
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 version 1.4 is now available, with infinite levels of {level, amount} pairs (not just the five from the admin screen), and additional marketing text functions get_discount_parms() and get_discounted_prices(). For sample code and screenshots of these new functions, see the help at http://www.thatsoftwareguy.com/zencart_quantity_discounts.html#marketing

Scott

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.

20 Feb 2007, 11:05 AM
#65
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

There is a small bug in version 1.4; please go to the bottom of the file and in the function
setup() comment out the call to add_extra_level_discount(). This was supposed to be
just an example and should be a comment.

Thanks,
Scott

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 Mar 2007, 2:08 AM
#66
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

I HATE to be dense... But I've read this WHOLE thread and I still can't tell if this module calculates discounts the way my client has her store structured.. She offers her customer a discount on the total order if they purchase a certain number of a particular item.. For example:

Quantity ------- Discounted Price
2 --------------- $10.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)
3 --------------- $20.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)
4 or more ----- $40.00 off order total (discount is subtracted from the total order BEFORE taxes
and shipping)

The product discount feature that comes with Zen Cart won't let me do this.. Will this module allow me to do this??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Mar 2007, 9:18 AM
#67
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Did you try it?

Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.

Scott

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 Mar 2007, 1:00 PM
#68
beatnik avatar

beatnik

New Zenner

Join Date:
Aug 2006
Location:
London
Posts:
53
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hiya, great mod, so do we still comment out

$this->add_extra_level_discount(100, 50);

on line 174.

Thanks

13 Mar 2007, 1:14 PM
#69
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Yes please do. I will fix this next time I update the software. This was just an oversight in
version 1.4.

Scott

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 Mar 2007, 1:28 PM
#70
beatnik avatar

beatnik

New Zenner

Join Date:
Aug 2006
Location:
London
Posts:
53
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thanks and thanks again for your mod. Will visit your site for more. :thumbsup:

13 Mar 2007, 1:35 PM
#71
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

swguy:

Did you try it?

Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.

ScottI wanted to confirm it would do what I needed before I spent the time installing it.. Otherwise Plan B was to talk to my client about revamping her discount program.. Sounds like what you are saying is that your mod will do the discount calculation the way her current store works.. I'll give it a whirl and let you know if it works..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Mar 2007, 2:57 PM
#72
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

swguy:

Did you try it?

Install it and use discount units = currency, total by item, and set the levels per your client's needs.
This seems to be what you want.

ScottOkay I've installed this and it appears that it applies the discount across the board.. We want the discount to apply if a customer buys a certain number of a specific item in the store.. In other words

If a customer buys Item A and buys a certain quantity they will receive a discount which will vary depending on the quantity they buy.. But Item B doesn't have a quantity discount. So there is no discount no mater what quantity of Item B is purchased.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Mar 2007, 3:14 PM
#73
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

Oh and I should add that the items which will be discounted are in a different cateory than the ones that will not be discounted..

I have looked and played and it doesn't appear that the default product discount function or this contribution will do what I need.. Am I coming to the correct conclusion??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Mar 2007, 6:33 PM
#74
airtime avatar

airtime

New Zenner

Join Date:
Mar 2007
Posts:
51
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Just installed v1.4 on ZC 1.3.7
I have three discount levels applied to total quantity in cart. I set the following parameters 6, 12, & 20 % discount amounts with 100, 500, & 1000 discount levels.

I've tried different values for the above and regardless of what I enter there is always a 50% discount applied.

Thanks for any help. Looks like a fantastic contribution.

14 Mar 2007, 8:59 AM
#75
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

DivaVocals:

Oh and I should add that the items which will be discounted are in a different cateory than the ones that will not be discounted..

I have looked and played and it doesn't appear that the default product discount function or this contribution will do what I need.. Am I coming to the correct conclusion??

No. You need to look at the functions function exclude_category() and
exclude_product() so that you can discount only what you want.
Please read the help.

Scott

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.

14 Mar 2007, 9:03 AM
#76
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

airtime:

Just installed v1.4 on ZC 1.3.7
I have three discount levels applied to total quantity in cart. I set the following parameters 6, 12, & 20 % discount amounts with 100, 500, & 1000 discount levels.

I've tried different values for the above and regardless of what I enter there is always a 50% discount applied.

Thanks for any help. Looks like a fantastic contribution.

The 50% discount is caused by the bug I reported in 1.4; please delete the
line of code in setup() that does

   $this->add_extra_level_discount(100, 50);

I will fix this asap.

Scott

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.

14 Mar 2007, 9:26 PM
#77
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Quantity Discounts for 1.3

swguy:

No. You need to look at the functions function exclude_category() and
exclude_product() so that you can discount only what you want.
Please read the help.

ScottMy bad..:blush: Reading is fundamental huh??? I skipped right over the rest of the Readme file assuming that everything could be tweaked from the Admin panel..:lamo:

Many apologies.. GREAT contribution BTW.. (should be part of core code if you ask me..) Plus my client is happy as happy can be that we don't have to change her discount program.. Thanks for your patience..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

14 Mar 2007, 9:53 PM
#78
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Glad it worked out for you!

Scott

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.

1 Apr 2007, 5:01 PM
#79
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 extra line in setup() which should have been deleted or commented out, as reported in post 67

swguy:

There is a small bug in version 1.4; please go to the bottom of the file and in the function
setup() comment out the call to add_extra_level_discount(). This was supposed to be
just an example and should be a comment.

has been fixed in version 1.5, which has just been installed in the downloads area. No other functional changes have been made in version 1.5; you do not need to upgrade as long as you have made this fix to version 1.4.

Thanks,
Scott

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.

18 Apr 2007, 3:11 AM
#80
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy-

Please forgive me for not readin all 9 pages of the thread on your mod. Attribute it to fuzzy frum eye syndrome :shocking:

Does your mod have to be applied to every product in the store? In other words, if I want to have customers receive a $2.00 discount on any product in the store they buy over 1 regardless of what it is (for example dvd titles).

Say if all the dvds in the store are $13.00 (makes for an easier scenario). A customer buys 1 of title a for $13.00, then they buy 1 of title B, it then Goes in at $13.00 but with a discount of $2.00, then they buy one of item C, which goes in also at $13.00 with a discount of $2.00, etc.

So does your mod do that, and if so does it have to be entered on every product, or activated just once?

thank you,

betty
aka fuzzy eyes