Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / How to disable quantity discounts for wholesale users?

How to disable quantity discounts for wholesale users?

Locked

Views: 1,698

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Feb 2010, 12:52 AM
#1
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

How to disable quantity discounts for wholesale users?

Guys does anyone know how to do this?i'm using dual pricing module and quantity discount module.... the problem is that quantity discount is also calculated for wholesale users even though they have fixed and lowered price....please help me.... what needs to be modified and how?

2 Feb 2010, 2:42 PM
#2
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: How to disable quantity discounts for wholesale users?

i added this code in ot_quantity_discount.php right beneath exclude product contitional and it's not working again:

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;
}
}

what did I do wrong?

2 Feb 2010, 6:27 PM
#3
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: How to disable quantity discounts for wholesale users?

is there anybody who can help me?

2 Feb 2010, 7:28 PM
#4
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: How to disable quantity discounts for wholesale users?

Do I need to create a case statement in order for this to work?

2 Feb 2010, 8:39 PM
#5
mldnkslvc avatar

mldnkslvc

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: How to disable quantity discounts for wholesale users?

guys i'm sorry..i did not describe my problem correctly.... the code above works fine.... but i did not use it on quantity discount module.... i was trying to use it for quantity discount in product price manager....