If this is your first visit, check our documentation. To post, register or login.

Coupons aren't working for me

Locked

Started by techy on 4 Sep 2008, 6:07 PM · Views: 3,839

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
4 Sep 2008, 6:07 PM
#1
techy avatar

techy

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Coupons aren't working for me

Hi,

I am developing a Zen Cart site which is still in the testing stage. I am trying to get the discount coupons to work, but when I enter the redemption code at checkout I get the message:

This coupon code is not valid for any product currently in your cart

The coupon settings in the admin area are:

Coupon Name :: £10 coupon
Coupon Amount :: £10.00
Start Date :: 01/01/2008
End Date :: 01/01/2018
Uses per Coupon :: 1
Uses per Customer :: 1
Valid Product List :: --none--
Valid Categories List :: --none--
Date Created :: 09/04/2008
Date Modified :: 09/04/2008

Coupon Zone Restriction: :: 0

Any help is appreciated :smile:

4 Sep 2008, 6:43 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

That coupon is setup for 1 person for 1 use ... has it been used once to test it?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Sep 2008, 9:10 PM
#3
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: Coupons aren't working for me

Plus what I discoverd is that you cannot make the coupon free shipping if you use percentage.

4 Sep 2008, 10:04 PM
#4
techy avatar

techy

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Coupons aren't working for me

Thanks :smile:

The coupon has been setup for one use by one customer but I haven't been able to get it to work yet. I get the error message every time.

Also, I am not using any percentage discount.

I've read the other posts on this forum regarding similar problems, but as yet I cannot discover what the problem may be.

Thanks for all the advice, hopefully you'll be able to find the solution :smile:

4 Sep 2008, 11:45 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,747
Plugin Contributions:
0

Re: Coupons aren't working for me

Have you restricted its use to a particular product or category?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

5 Sep 2008, 1:45 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

What does the STATUS read for the Coupon?

Do you see the Y or the N under the STATUS ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Sep 2008, 8:22 AM
#7
techy avatar

techy

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Coupons aren't working for me

Nope, the coupon isn't restricted and the status is marked as 'Y' :dontgetit

5 Sep 2008, 2:47 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

I have tried setting up the same Discount Coupon that you have listed and I cannot make it fail ...

When you enter the Discount Coupon on the checkout_payment page, what error comes up if you type in the code and hit enter?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Sep 2008, 3:37 PM
#9
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Coupons aren't working for me

The error message you stated in your first post is generated from includes/modules/order_total/ot_coupon.php

Looking closer at ot_coupon.php, it looks as if the following 'if' statement is failing:

if (is_product_valid($products[$i]['id'], $coupon_result->fields['coupon_id'])) {
$foundvalid = true;
continue;
}

The function is_product_valid() is in includes/functions/functions_general.php

Looking at that function and the possible reasons it can return false, one cause seems to be if one of the products in the cart is a gift certificate?

5 Sep 2008, 4:09 PM
#10
techy avatar

techy

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Coupons aren't working for me

Ajeh:

I have tried setting up the same Discount Coupon that you have listed and I cannot make it fail ...

When you enter the Discount Coupon on the checkout_payment page, what error comes up if you type in the code and hit enter?

The error message is:

This coupon code is not valid for any product currently in your cart (coupon code is here)

I think I must be missing something elsewhere in the admin settings. Is there anything else that I should have checked or activated in the admin system?

Thanks.

5 Sep 2008, 4:33 PM
#11
techy avatar

techy

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Coupons aren't working for me

Steven300:

Looking at that function and the possible reasons it can return false, one cause seems to be if one of the products in the cart is a gift certificate?

Thanks ever so much Steven! :clap:

The product I was test buying was a gift voucher, I have tried a different product and it now works!

Thanks for all the help folks. :D

6 Sep 2008, 7:17 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

:frusty:

Did not try that one ... silly me, I forgot to ask you what kind of Product you could not get this to work with ...

Thanks for the good call, Steven300 ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Oct 2008, 8:28 PM
#14
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Coupons aren't working for me

Kim:

Have you restricted its use to a particular product or category?

How would I go about restricting a coupon to a certain category?

29 Oct 2008, 8:44 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

Set the Top to DENY ... then set the Category you want included to ALLOW ...

NOTE: if you have Linked Products, at this time it is best to set the Restrictions by Products rather than Categories ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Oct 2008, 4:06 AM
#16
happyworker avatar

happyworker

New Zenner

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

Re: Coupons aren't working for me

Does this mean you can not buy a gift certificate with a discount coupon?
This is what I'm trying to do and I'm running into this problem.

I want to be able to offer my clients through a newsletter, a gift certificate that they can use. I don't want to use the coupon discount for this.

My idea is to send them a discount code which is only redeemable when getting a gift certificate. Then once they have the GC, they can send it to a friend or whatever they want.

I have set it up so customers can buy GC, but I can't seem to get this to work.

Also...as a side note, how would I set up an automatic release of GC's?

Thanks
~Happy

30 Oct 2008, 5:25 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Coupons aren't working for me

Gift Certificates cannot be purchased with Discount Coupons as you could cycle this to a point where you are paying the customer to shop with you ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Nov 2008, 9:04 AM
#18
wink avatar

wink

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Coupons aren't working for me

Hi,

I am very very new to Zen and can not seem to find the thread that I need to answer my basic query. I have set up a discount coupon on my site, and when I redeemed it through check-out, it worked fine. BUT when the copy of my order came in to me (both as supplier and customer) there was no reference to my coupon. This means that when work gets the order and the customer has redeemed the offer, work does not know and thus the offer not processed. It needs to show up on the order somwhere. My offer is buy 6 and get one free which I put into the text of the offer, but as it only allows you to offer a percentage or fixed amount discount, I put these as zero. Is this why it is not showing on the orders? What did I miss? Thanks for any help...or link to any thread.