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 661 to 680 of 847
9 Dec 2011, 1:21 PM
#661
valvoj avatar

valvoj

New Zenner

Join Date:
Nov 2008
Posts:
38
Plugin Contributions:
0

Quantity Discounts for 1.3

swguy:

In the file includes/modules/order_total/ot_quantity_discount.php, around line 191, change

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

> 
> to 
> 
> ```
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
   $products[$i]['id'] = (int) $products[$i]['id']; 

Excellent! Thank you!

26 Jan 2012, 7:30 AM
#662
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Does this contribution use the discounts already created with the built-in quantity discount feature in ZC?

I have more than 1000 products with quantity discounts already, so it'd be a bit of a pain to have to create the quantity discounts again.

The only functionality I need at this time is the ability to have quantity discounts apply to Sales products, which for some reason the one built-in ZC doesn't work and I can't figure out the code I need to change.

26 Jan 2012, 10:57 AM
#663
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

This contribution is separate from the native Quantity Discounts. It doesn't modify the price in the cart; it creates a discount on the subtotal, and can be done by by category or total number of items in the cart, sliced and diced in different ways.

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.

27 Jan 2012, 9:34 PM
#664
smoothrider avatar

smoothrider

New Zenner

Join Date:
Jan 2012
Posts:
6
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Is it possible to have this mod work alongside the native Quantity Discounts? I would like to have this:

Either they can buy 5 items of the same product to get the quantity discount, or 5 different items in the same category to receive a discount. The subtotal will choose the lower value of the two amounts either the native quantity discount, or the quantity discount module, but not both together.

27 Jan 2012, 9:36 PM
#665
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

It doesn't work that way. This would actually be quite difficult to implement.

You really have to pick one or the other.

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 Feb 2012, 5:29 AM
#666
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Would this contribution work with GoogleCheckout?

15 Feb 2012, 3:39 PM
#667
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, all my discounts work with Google Checkout.

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 Apr 2012, 5:12 AM
#668
richardloz avatar

richardloz

New Zenner

Join Date:
Apr 2012
Posts:
2
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hey there

Great module and very handy for what I am looking to do, however I do have one question which if you could help me with, it would be most appreciated.

I have the module working just fine, however my problem is around the marketing code to show the discount offer on the product page.

I have added the code to the tpl_product_info_display.php file and it works perfectly. The issue for me is that I am only offering a discount strategy on products in one category, however the marketing message shows up on each and every product page. If you could assit me in modifying the code so that it will only appear on the relevant pages of product that is being offered a discount, and not appear on any other product pages, I would be most appreciative.

Thanks so much

Richard

12 Apr 2012, 10:13 AM
#669
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 need to wrap the marketing text in an if block that checks the category id.

Search for current_category_id:
http://www.thatsoftwareguy.com/zencart_conditional_messages.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.

12 Apr 2012, 10:53 AM
#670
richardloz avatar

richardloz

New Zenner

Join Date:
Apr 2012
Posts:
2
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Brilliant. Thanks that worked a treat :)

Cheers

Richard

27 Apr 2012, 10:52 PM
#671
cmd111 avatar

cmd111

New Zenner

Join Date:
Apr 2012
Posts:
4
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi,

I would like to be able to offer multiple sizes under one product and have quantity discount pricing based on the total of all sizes for the product.

For example if the quantity discount for Product A is as follows:

1 to 11: $5 each

12 to 23: $4 each

24 to 54: $3 each

…and Product A is available in size small, medium & large

…and if a shopper orders 6 small 12 medium and 24 large, I would like the total charge to be $126 (42 pieces of Product A x $3) rather than ($5 x 6 + $4 x $12 + $3 x 24).

I would like to offer tier pricing as an accumulative total of a selection of individual products, not per product.

Also, if I want to be able to order x number of size small and y number of medium on the same page; is this accomplished by grouping products rather than attributes?

I would appriciate any help.

Thanks

27 Apr 2012, 11:30 PM
#672
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

cmd111:

Hi,

I would like to be able to offer multiple sizes under one product and have quantity discount pricing based on the total of all sizes for the product.

For example if the quantity discount for Product A is as follows:

1 to 11: $5 each

12 to 23: $4 each

24 to 54: $3 each

…and Product A is available in size small, medium & large

…and if a shopper orders 6 small 12 medium and 24 large, I would like the total charge to be $126 (42 pieces of Product A x $3) rather than ($5 x 6 + $4 x $12 + $3 x 24).

You can do this with Zen Cart's built in Quantity Discounting mechanism or with my contribution.

I would like to offer tier pricing as an accumulative total of a selection of individual products, not per product.

This is quite different from what you just asked. Do you want to total quantities of products A, B and C in this case?
And do you want a total charge more like $5 x 6 + $4 x $12 + $3 x 24, from your example above?

If so, the short answer is you can't do this with my mod or the built-in mechanism.

Also, if I want to be able to order x number of size small and y number of medium on the same page; is this accomplished by grouping products rather than attributes?

This is a completely separate question that you should ask in a new thread on the templating forum here: http://www.zen-cart.com/forumdisplay.php?15-Templates-Stylesheets-Page-Layout

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.

28 Apr 2012, 1:34 AM
#673
cmd111 avatar

cmd111

New Zenner

Join Date:
Apr 2012
Posts:
4
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thanks for the quick reply. What I'd like to do is sell a product such as a Blue T-shirt A with options of different sizes and have the shopper be able to enter the quantity they want of each size on the same page. If the shopper wants 6 small, 12 medium and 24 large, I don't want the shopper to have to enter the quantities for each size on separate pages or as separte items. Ideally I would want them to be able to have an option box on one product description page in which they would enter "6" in the "small" field, "12" in the "medium" field and "24" in the "large" field. I would then like to offer quantity discount that applies to the sum of the t-shirts (small+mediym+large) so in this case 42 shirts. I hope I am explaining it clearly. Does this make sense and is it possible?

28 Apr 2012, 1:57 AM
#674
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Like I said,

This is a completely separate question that you should ask in a new thread on the templating forum here: http://www.zen-cart.com/forumdisplay.php?15-Templates-Stylesheets-Page-Layout

The presentation of products on a page and the discounts applied to those products are two separate things.

Get one working then deal with the other.

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.

28 Apr 2012, 1:15 PM
#675
cmd111 avatar

cmd111

New Zenner

Join Date:
Apr 2012
Posts:
4
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thanks - I will post the first half of the question in the other thread. Assuming that part can be done; do you know if the second part is possible with Zen? Is it possible to have a quantity discount apply to the sum of a product's elements - either as attributes of as a group product? From the email above: "offer quantity discount that applies to the sum of the blue t-shirts (small+mediym+large) so in this case 42 shirts". So if the discount levels were 1 to 11, 12 to 23, 24 to 47 and 48+; the total of 42 shirts would place the order into a quantity discount level set for 24 to 47.
Thanks again

28 Apr 2012, 1:26 PM
#676
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Like I said,

You can do this with Zen Cart's built in Quantity Discounting mechanism or with my contribution.

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 May 2012, 6:07 PM
#677
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi All - just installed the Quantity Discounts Module on my Zen Cart v1.3.7.1 but I can't seem to set the addon to control only qty discount only on certain items in the store.

It works for all the items in the store, but I only want qty discount on certain items only.

Can anyone please give me a hint on what I might be missing?

thanks a TON!
gabstero

2 May 2012, 11:34 PM
#678
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Based on your other thread posting, it looks like you decided to go with the built in quantity discounting system, which makes sense if you're discounting quantity purchases of a single item.

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 May 2012, 2:48 PM
#679
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

swguy:

Based on your other thread posting, it looks like you decided to go with the built in quantity discounting system, which makes sense if you're discounting quantity purchases of a single item.

swguy - thanks for the reply. Indeed. That's what I was looking for. Thanks for help! Although now that I have your mod installed, I'd be curious to know what it can do!

thanks much,
gabstero

3 May 2012, 3:36 PM
#680
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Lots and lots of things. Read the help for an overview.

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.