Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Activate Discount Coupons when client have 2 items in cart

Activate Discount Coupons when client have 2 items in cart

Locked

Views: 2,700

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Oct 2006, 7:38 PM
#1
pawelsad avatar

pawelsad

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

Activate Discount Coupons when client have 2 items in cart

Hi i want to activate discount coupon when customer have in cart >= 2 items .

I did it but now i have other problem :

When customer add 2 items to cart and click to the checkout link, everything its ok , discount coupons mod its active and everything working well, but when customer with 2 items in cart is in 3 of 3 checkout step and then when he go to the shopping cart and change quantity to 1 and then go to checkout process discount coupon its still active but it shouldn't, becouse customer have 1 item in cart .

Please help :) :)

Pawel

15 Oct 2006, 9:33 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Activate Discount Coupons when client have 2 items in cart

Have you used some custom code to achieve this? That feature is not part of the stock Zen Cart.

16 Oct 2006, 8:27 AM
#3
pawelsad avatar

pawelsad

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

Re: Activate Discount Coupons when client have 2 items in cart

Kim:

Have you used some custom code to achieve this? That feature is not part of the stock Zen Cart.

Yeah i activate discount coupons mod , and i hide coupon form on checkout payment page client cant activate it in normal way becouse he cant see the form , i also add some code into checkout payment page.

When quantity is >= 2 i display hidden field and when customer go to the 3of 3 step he automatically have discount .

<?php
if($_SESSION['cart']->count_contents()>='2'){
?>
<input type="hidden" value="0ed41af34e" name="dc_redeem_code" id="disc-ot_coupon" onchange="submitFunction(0,0)" />
<?php
}
?>

But, when he go back to the shopping cart from 3of 3 step and change quantity to 1 and then go to checkout process discount coupon its still active but it shouldn't, becouse customer have 1 item in cart

I need to know how to deactivate coupons when customer change quantity in his cart.

17 Oct 2006, 6:18 PM
#4
pawelsad avatar

pawelsad

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

Re: Activate Discount Coupons when client have 2 items in cart

I only need to know how to remove coupon when customer change quantity to less then 2 .

Regards Pawel