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?
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/zenca..._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/zenca...html#marketing
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!
Re: Quantity Discounts for 1.3
Re: Quantity Discounts for 1.3
First of all, let me say great mod!:clap:
Right now, I am getting a
Code:
[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
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.
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
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
Code:
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
Re: Quantity Discounts for 1.3
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/zenca...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/zenca...discounts.html
Thanks,
Scott
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:
http://www.pheniks.net/QT_DISC_ADMIN_SETTINGS.jpg
I have corrected my user exits in ot_qtydiscounts.php to the following:
Code:
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!