Re: Quantity Discounts for 1.3
Thanks for the help - one more question...
I am trying to add discounts to a third category using this module but I cannot get the 'quantity discount' box to show up in this new category. I have added the following text to: /public_html/includes/modules/order_total/ot_quantity_discount.php
Code:
case 102:
if ($count > 29) {
$disc_amount = 15;
} elseif ($count > 19) {
$disc_amount = 10;
} elseif ($count > 9) {
$disc_amount = 5;
}
break;
Is there somewhere else I need to 'activate' this so that the discount box will show up?
It still shows on my two other categories (which have the discounts listed on the same ot_quantity_discount page) but just not this third one.
Thanks
Re: Quantity Discounts for 1.3
It's ok, have got it sorted now.
It won't let me delete the last post tho.
Re: Quantity Discounts for 1.3
I have installed the module, but i have searched for ages?
Sure i am being stupid but where in the admin panel is the configuration for the discounts setup
Re: Quantity Discounts for 1.3
Use admin-modules-order total-quantity discounts - edit to set the configuration. It applies to the whole cart.
Re: Quantity Discounts for 1.3
Hi Scott,
I'm using Zencart 1.5.1 and Quantity Discounts 1.12. I've read http://www.thatsoftwareguy.com/zenca...discounts.html and tried searching the forum.
I have "Display Prices with Tax" = true (in Admin->Configuration->My Store) as I want to display prices including UK VAT.
On my test product info page (http://tinyurl.com/lkeo9hr), you will see that I've plonked on your codes for Quantity Discounts Marketing Example 1 and 4. The prices displayed currently do not include VAT.
How do I get it to display the prices including vAT?
Many thanks!
Re: Quantity Discounts for 1.3
Edit the file includes/modules/order_total/ot_quantity_discount.php and go to the function get_discounted_prices.
Where the call to $this->print_amount is made, switch that to
$currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
(Note that you will need to look up the tax class id - i.e.
$sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = " . (int)$product;
$product_info = $db->Execute($sql);
Re: Quantity Discounts for 1.3
Thank you so much for the quick reply. I'm not a programmer so this is what I think I should do if I understand your reply correctly. Apologies in advance if I'm taking things too literally.
My tax class id is 1.
In the file includes/modules/order_total/ot_quantity_discount.php, I need to replace
$priceinfo[$pos]['price'] = $this->print_amount($disprice);
with
$priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
$sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = 1 " . (int)$product;
$product_info = $db->Execute($sql);
Bet I got that wrong!
Re: Quantity Discounts for 1.3
It didn't work. Tried different combinations too. Sorry to bother you but would really appreciate a dumbed down version. :) Thanks
Re: Quantity Discounts for 1.3
change
$priceinfo[$pos]['price'] = $this->print_amount($disprice);
to
$priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate(1));
Re: Quantity Discounts for 1.3
Thank you for your patience Scott.
I did exactly as you suggested (twice. I made sure I used an unmodified includes/modules/order_total/ot_quantity_discount.php from the zipped file). I'm now getting a blank where the pricing has dissapeared with the buy button at http://tinyurl.com/lkeo9hr