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 261 to 280 of 847
25 Apr 2008, 4:10 PM
#261
rory avatar

rory

New Zenner

Join Date:
Apr 2008
Location:
Bainbridge Island, WA
Posts:
16
Plugin Contributions:
0

Quantity Discounts for 1.3

I am having problems with the tax. the order is discounting properly, but the total is not adding up...

Sub-Total: $40.00
Flat Rate (USPS Flat Rate Shipping): $5.00
Quantity Discount: -$5.00
98110 Bainbridge Island 8.80%: $3.52
Total: $48.52

I am using the local sales tax mod (V2.0) by Heather Gardner (LadyHLG). It is not subtracting the Quantity Discount. By the way, I am using the Quantity Discount basis of "Total Items in Cart". I saw a bug and resolution earlier, but have no idea where to make the code change.

thx....

25 Apr 2008, 8:57 PM
#262
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

This mod fit the bill for a client who wanted to offer a discount when his customers bought 10 or more products in a particular category. Now he wants to also offer a different discount percentage when 5 or more of a different category of products is purchased.

I'm trying to figure out if this is possible using the User Exits in this mod.

Any thoughts?

Ellie Armsby

25 Apr 2008, 9:04 PM
#263
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

earmsby:

I'm trying to figure out if this is possible using the User Exits in this mod.

Yep. That's why they're there.

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.

25 Apr 2008, 9:06 PM
#264
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

rory:

I am using the local sales tax mod (V2.0) by Heather Gardner (LadyHLG). It is not subtracting the Quantity Discount. By the way, I am using the Quantity Discount basis of "Total Items in Cart". I saw a bug and resolution earlier, but have no idea where to make the code change.

thx....

If this is what's happening, there's a bug in the tax mod. Try putting the tax above the discount; this might work; or you could report the bug on the local sales tax mod thread (if there is one).

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.

26 Apr 2008, 1:03 AM
#265
rory avatar

rory

New Zenner

Join Date:
Apr 2008
Location:
Bainbridge Island, WA
Posts:
16
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

If this is what's happening, there's a bug in the tax mod. Try putting the tax above the discount; this might work; or you could report the bug on the local sales tax mod thread (if there is one).

It worked to move it up. I will work report the bug to the local sales tax thread.

THX.....

29 Apr 2008, 10:11 AM
#266
impact_flies avatar

impact_flies

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have added quantity discounts and think it's great, still a bit to get my head around such as exits etc but that will come :smile:

I have also added the promo page and although all the files are showing correctly I can't edit the quantitydiscounts_promo page from the define page editor in my admin as the page does not appear in the drop down list. The page shows fine from the link in the category side box and I can edit the file directly just not from the page editor. Any ideas?

Thanks.

29 Apr 2008, 12:27 PM
#267
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Copy the file

includes/languages/english/html_includes/custom/define_<page-name>.php

to the parent directory

includes/languages/english/html_includes/

Refresh the page in admin and you will see the file. Thanks for reporting this; I updated the help file.

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.

29 Apr 2008, 12:46 PM
#268
impact_flies avatar

impact_flies

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I had a poke around on my server while waiting for a reply and discovered that the file needed uploading as you describe, did that and it worked fine :smile:
Thanks for the reply.

29 Apr 2008, 4:09 PM
#269
impact_flies avatar

impact_flies

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I would like to add one of the marketing codes to product pages. I do not want that to show on the products that are excluded from discounts.

I think I can exclude certain products or whole categories with the exclude functions, if an exclude is used would that also exclude the marketing code from displaying on that product?

Where exactly do the marketing codes go?

29 Apr 2008, 4:27 PM
#270
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

If you have used the exclusion logic or the exits to alter the behavior of Quantity Discounts, you'll need the same sort of logic around the marketing text. Examples of doing this are here:

http://www.thatsoftwareguy.com/zencart_conditional_messages.html

The marketing text goes in the product info page

includes/templates/<your template> tpl_product_info_display.php

in a place of your choosing. There are no fixed rules; put it where you think is best. Common placements are at the top of the page and under the product description. Example code is provided here:

http://www.thatsoftwareguy.com/zencart_quantity_discounts.html#marketing

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.

12 May 2008, 1:44 PM
#271
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi, Swguy

I tested this mod and it seems work very well. thanks! however, the discount price is only shown on total price page, is it possible to show on shopping cart? say a customer try to but 1 item initially, the price is £5, then he change the quantity to 5 items (which we set up to offer 20% discount), so after updating the quantity in shopping cart, he can see the single item price come down to just £4 immedately without going to final total price page. how can I do this?

thank you in advance!

12 May 2008, 1:47 PM
#272
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Response by PM.

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.

12 May 2008, 9:40 PM
#273
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

First of all, let me say great mod!:clap:

Right now, I am getting a

[12-May-2008 15:07:17] PHP Fatal error:  Call to undefined method ot_quantity_discount::get_order_total() in /.../.../public_html/zen/includes/classes/order_total.php on line 181

error after switching on strict error reporting/logging as per https://www.zen-cart.com/tutorials/index.php?article=82

I am digging but not coming up with much on this...

Let me know what else I might need to let you know to help solve this.

Aaron

12 May 2008, 11:55 PM
#274
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 just need to upgrade to the latest Quantity Discounts contribution. The 1.3.8 infrastructure requires this function, and the latest Quantity DIscounts includes it.

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 May 2008, 12:02 AM
#275
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

You just need to upgrade to the latest Quantity Discounts contribution. The 1.3.8 infrastructure requires this function, and the latest Quantity DIscounts includes it.

Upgrade completed...

I am trying to do a discount based on quantity from a category like this

function apply_special_category_discount($category, $count, &$disc_amount) {
        switch($category) {
           case 12: // 4 OZ Country Samplers Quantity Discount
                if ($count > 4) {
                   $disc_amount = 13;
                }
                break;
           case 13: // 16 OZ Flip-Top Quantity Discount 
                if ($count > 2) {
                   $disc_amount = 10;
                }
                break;
           case 15: // 24 OZ Flip-Top Quantity Discount
                if ($count > 2) {
                   $disc_amount = 8;
                }
                break;
           case 16: // 32 OZ Flip-Top Quantity Discount
                if ($count > 2) {
                   $disc_amount = 14;
                } 
                break; 
        }
    }

However, it does not seem to be working. Am I missing something in my settings in admin?

Thanks for the prompt reply!
Aaron

13 May 2008, 12:25 AM
#276
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Common category errors are described here:
http://www.thatsoftwareguy.com/zencart_category_issues.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.

14 May 2008, 6:25 AM
#277
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 1.10 is now available in the downloads area, offering discounting by dollars spent (at 5 tiers in the admin and at additional tiers by modifying the setup() function).

To enable this behavior, use the admin setting Counting Method = currency.

You MUST remove and re-install Quantity Discounts from the admin panel to get this new functionality; copying the files to your cart is not enough. You MUST install the new language file as well as the order total module.

Two new marketing text examples (6 and 7) have been provided for use with this new setting.
http://www.thatsoftwareguy.com/zencart_quantity_discounts.html#marketing

Examples 1, 2 and 5 will also work unchanged.

The Promotional Page for Quantity Discounts will work without change.
Discount Preview will work without change.

Plenty-o-questions are answered on the help page:
http://www.thatsoftwareguy.com/zencart_quantity_discounts.html

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.

15 May 2008, 3:59 PM
#278
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Alright, I have verified that my master_categories are correctly assigned. I guess that I am attempting to use user exits to do this category wide discounting.

What I am trying to do for instance is the following:

Items in (master)Category #28 are $6.95 each. Purchasing 4 or more takes the price to $6.00 each.

Items in (master)Category # 29 are $17.95 each. Purchasing 2 or more takes the price to $17.00 each.

This kind of discounting goes throughout the product line.

http://www.pheniks.net/zen/ is my test/development site.

My settings for quantity discounts in admin are:

I have corrected my user exits in ot_qtydiscounts.php to the following:

function apply_special_category_discount($category, $count, &$disc_amount) {
        switch($category) {
           case 28: // 4 OZ Country Samplers Quantity Discount
                if ($count > 4) {
                   $disc_amount = 13;
                }
                break;
           case 29: // 16 OZ Flip-Top Quantity Discount 
                if ($count > 2) {
                   $disc_amount = 10;
                }
                break;
           case 30: // 24 OZ Flip-Top Quantity Discount
                if ($count > 2) {
                   $disc_amount = 8;
                }
                break;
           case 31: // 32 OZ Flip-Top Quantity Discount
                if ($count > 2) {
                   $disc_amount = 14;
                } 
                break; 
        }
    }

Appreciate the assistance!

11 Jun 2008, 2:54 PM
#279
cosmocanuck avatar

cosmocanuck

New Zenner

Join Date:
Jun 2006
Posts:
85
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi! My client wants to have his ZC set up so that wholesalers can log in and see wholesale prices. I thought another plugin, Dual Pricing, would do the job, but it turns out he wants the wholesale pricing to also have tiered discounts, based on amount spent (i.e.: an initial, lower price; then 5% off if over $2,000, 10% off if over $5,000; and 15% off if over $9,000).

The prices can also be entered as actual amounts instead of discounts if necessary, but it would be great to be able to mix the two ways of representing them - especially since the % discounts are the same across the board, but based on specific lower initial prices.

Naturally, these prices need to only be visible to customers who have been granted access to them (wholesalers).

I'm looking at your various plugins and wondering if any of them would be capable of doing this out of the box (or with a minimal PHP tweak...)

Looking forward to your response - thanks!

Adam

11 Jun 2008, 3:03 PM
#280
cosmocanuck avatar

cosmocanuck

New Zenner

Join Date:
Jun 2006
Posts:
85
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Aha, wait a minute - perhaps I hadn't thought my problem through all the way. I suppose I could set up your Quantity Discounts plugin and ALSO have the "Dual Pricing" module running, and they would work together?

In other words, the quantity discount would be set up across the board (everyone would see them), but via Dual Pricing I could give certain customers a different (i.e. lower) initial price upon which those discounts would be based?

I'll have to check if this will work for my client (to have the discount applied even to non-wholesale orders). Probably will, since consumer orders are unlikely to be high enough to qualify for a discount anyway.

Of course, if there's a solution where a whole separate set of prices (initial and quantity) could be set up to only appear for select customers, that would be ideal.

Thanks,
adam