Re: Quantity Discounts for 1.3
Does anyone have this mod working alongside of Products w/ Attributes stock mod? I have tried the mod and not working how I hoped. For example:
I have a single item Wine Glasses, that have attributes of pink, green, blue,etc. Price is $20 each or 6 for $100. If purchase 6 pink glasses, the mod works ok. If I purchase 2 pink glasses and 4 green glasses, it doesn't give a discount. Thoughts?
Re: Quantity Discounts for 1.3
In the file includes/modules/order_total/ot_quantity_discount.php, around line 191, change
Code:
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
to
Code:
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$products[$i]['id'] = (int) $products[$i]['id'];
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
swguy
In the file includes/modules/order_total/ot_quantity_discount.php, around line 191, change
Code:
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
to
Code:
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$products[$i]['id'] = (int) $products[$i]['id'];
Excellent! Thank you!
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.
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.
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.
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.
Re: Quantity Discounts for 1.3
Would this contribution work with GoogleCheckout?
Re: Quantity Discounts for 1.3
Yes, all my discounts work with Google Checkout.
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