Quantity Discounts is not working with 1.3.8. When you get to the checkout
page, i just get a BLANK Page. I removed Quantity Discount from Order Total page, and my zen-cart works fine.
Thanks
Quantity Discounts is not working with 1.3.8. When you get to the checkout
page, i just get a BLANK Page. I removed Quantity Discount from Order Total page, and my zen-cart works fine.
Thanks
I will release a new version later on; for now, simply replace
includes/modules/order_total/ot_quantity_discount.php
with this file. This is only required for 1.3.8.
Thanks for reporting this problem,
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.
thanks for the quick response. That fixed it!
Quantity Discounts 1.8 (with support for Zen Cart 1.3.8) has been posted to the downloads area.
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.
is there a way to disable the discounts for a specific user? I'm using a wholesale mod that sets a wholesale attribute 0, 1, 2. Anybody with 1 or 2 should not receive additional discounts.
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0")
You would have to write code to do this; there's nothing built in.
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.
Seems easy enough, I modified the ot_quantity_discount.php page with the following in case it helps anybody in the future. (the add dealers portion)
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Add categories you wish to exclude to exclude_category()
if ($this->exclude_category($products[$i]['category'])) {
continue;
}
// Add products you wish to exclude to exclude_product()
if ($this->exclude_product($products[$i]['id'])) {
continue;
}
// Add dealers
if ($_SESSION['customer_id']) {
$customers_id = $_SESSION['customer_id'];
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0") {
$disc_amount = 0;
continue;
}
}
Hello,
I'm having difficulty getting Quantity Discounts to install. I'm new to Zen Cart and any help would be greatly appreciated.
My cart is installed in: public_html/zensetup
Thanks in advance.
hsquared
At the sake of sounding stupid I am going to ask this anyways.
Where is this "function exclude_category" where I needed to insert the following code
Code:function exclude_category($category) { switch($category) { case 11: return false; } return true; }
Within ./includes/modules/order_total/ot_quantity_discount.php. I have updated the FAQ to indicate this.
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.
Bookmarks