Zen Cart Logo
Forums / Bug Reports / Gift Certificate and Coupon Issue

Gift Certificate and Coupon Issue

Locked

Views: 5,912

Results 21 to 22 of 22
This thread is locked. New replies are disabled.
18 Jul 2007, 2:44 AM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Gift Certificate and Coupon Issue

Actually, a safer way to do this in case you have order-total modules that haven't been written to follow the "pattern" fully, would be this:

Replace that line:$_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;with this instead:```
if (method_exists($GLOBALS[$class], 'clear_posts')) $GLOBALS[$class]->clear_posts();

20 Jul 2007, 7:52 PM
#22
jordymacsmom avatar

jordymacsmom

New Zenner

Join Date:
Feb 2006
Posts:
40
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

I have all the order total modules installed except COD and Tax. I'll give your new code a try.