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

Gift Certificate and Coupon Issue

Locked

Views: 5,912

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
16 Jul 2007, 8:47 PM
#1
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Gift Certificate and Coupon Issue

I have found that a customer can get double the coupon or gift certificate if they stay logged into their account. So basically if the had a GC for 5.00 they could add 10.00 in product to their cart and use the GC or coupon code than go back and enter the same code again for the other 5.00 off. Has anyone seen this issue before and is there a fix?

Thanks so much in advance

16 Jul 2007, 8:49 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Certificate and Coupon Issue

What version of Zen Cart are you using?

Can you reproduce this on demand on your site?

17 Jul 2007, 4:48 AM
#3
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

I am using 1.3.7 and connot reproduce the results on demand, thanks for your help

17 Jul 2007, 4:54 AM
#4
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

This happened to me yesterday. A customer logged in and used a coupon that was set up for her. Downloaded her purchases and then did another order and used the same coupon again. The coupon should not have worked because I had 1 time use per customer selected plus she maxed it out with the first order. All I can figure is that it happened because she never logged out. I asked her to try it after logging out and she couldn't use it then.

Right now I'm running 1.3.6.

17 Jul 2007, 5:01 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Certificate and Coupon Issue

shellmeisters are you able to reproduce this behavior on your old v1.3.6 Zen Cart?

17 Jul 2007, 5:10 AM
#6
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

I just tested it and it tells me that I have used it the maximum number of times, 1 per customer...

17 Jul 2007, 5:12 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Certificate and Coupon Issue

Very odd ...

Should you come up with a pattern, please let us know ...

I cannot reproduce this on v1.3.7.1

Also, what are your exact coupon settings and restrictions, if any ...

And did you test with the same exact products etc. as the customer used on both orders?

17 Jul 2007, 5:17 AM
#8
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

It was a $20 Coupon, 1 per customer, User per coupon left blank.

I have the user tracking mod in my cart...she completed the 1st order at approx. 17:46 and started the 2nd at about 18:04.

No...i didn't test the same products.

17 Jul 2007, 10:44 AM
#9
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

shellmeisters:

It was a $20 Coupon, 1 per customer, User per coupon left blank.

I have the user tracking mod in my cart...she completed the 1st order at approx. 17:46 and started the 2nd at about 18:04.

No...i didn't test the same products.

I also wanted to add that there were no restrictions.

This customer's order that this happened with...she did have a $2.40 balance after using her coupon the 1st time so maybe going to paypal and coming back has something to do with it??? I couldn't test it that way as I only have the paypal accout that my store is connected to.

Thanks for your help.

17 Jul 2007, 4:39 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Certificate and Coupon Issue

Which PayPal method are you using on your site?

17 Jul 2007, 4:42 PM
#11
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

PayPal IPN

17 Jul 2007, 7:56 PM
#12
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

Seems it will work if you have shoppers that use multiple windows to shop so they don't have to flip back and forth looking for something....

If you open your browser and log into the store and then open another browser window. Add you contents to one cart, plus the coupon and check out and then do the same with the other, it will work.

This was discovered by a friend who had it happen to her over 2 years ago. I just tested it and it worked for me.

Not sure if there is a way to fix that though. LOL

17 Jul 2007, 9:40 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Gift Certificate and Coupon Issue

Just a hunch ...

Try making this edit:

/includes/classes/order_total.php
at line 196 you have:// Called in checkout process to clear session variables created by each credit class module. // function clear_posts() { global $_POST; if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ( $GLOBALS[$class]->credit_class ) { [B] $_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;[/B] } } } }Replace that one line which says:$_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;with this instead:```
$GLOBALS[$class]->clear_posts();

17 Jul 2007, 10:27 PM
#14
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

Thanks so much!! Really appreciate your help with this! :)

17 Jul 2007, 11:11 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Gift Certificate and Coupon Issue

Are you saying that making that change has fixed the problem ?
(Just wanna be sure I'm understanding your response correctly)

17 Jul 2007, 11:21 PM
#16
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

Yes, it seems to have fixed the problem. I have tested it and it would not allow me to use the coupon again.

Many thanks!!

18 Jul 2007, 12:02 AM
#17
jordymacsmom avatar

jordymacsmom

New Zenner

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

Re: Gift Certificate and Coupon Issue

OK, I made that line change, and while it does keep me from using the same code again, it won't let the order go through. I am getting the following error:

Fatal error: Call to undefined function: clear_posts() in /home/molli102/public_html/ZenCart/includes/classes/order_total.php on line 205

18 Jul 2007, 12:06 AM
#18
shellmeisters avatar

shellmeisters

New Zenner

Join Date:
Jul 2005
Posts:
17
Plugin Contributions:
0

Re: Gift Certificate and Coupon Issue

What version are you running? I have 1.3.6. I didn't do the upgrade. Perhaps that makes a difference??? I tried running mine through and it takes me to paypal no problem.

18 Jul 2007, 12:25 AM
#19
jordymacsmom avatar

jordymacsmom

New Zenner

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

Re: Gift Certificate and Coupon Issue

OK, it doesn't do it if there is still a balance after the coupon is applied. I only get this error if the gift certificate covers the cost of the purchase and there is a $0 balance. It's like it doesn't know where to go from there.

The order does actully go through. I got the order confirmation email, and the order and download links show up under my account. That would be super confusing for customers!

18 Jul 2007, 2:35 AM
#20
drbyte avatar

drbyte

Sensei

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

Re: Gift Certificate and Coupon Issue

jordymacsmom:

Fatal error: Call to undefined function: clear_posts() in /home/molli102/public_html/ZenCart/includes/classes/order_total.php on line 205

What order-total modules do you have enabled in Admin->Modules ?