Post by mmi09 » Mon Jan 04, 2010 3:08 am

Hi guys ,
I've created a couple of coupons but everytime at the check out I get the Error: Coupon is either invalid, expired or reached it's usage limit. Any ideas on what the problem is , I've tried everything I can think of, I've checked the date , amount etc


Thanks
Mo

Newbie

Posts

Joined
Mon Jan 04, 2010 3:05 am

Post by readyman » Mon Jan 04, 2010 8:27 am

Can you check your PHP log to see if there are any errors there?

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by Qphoria » Mon Jan 04, 2010 8:31 am

are you using todays date for starting date? Try yesterday
Did you assign any products to the coupon?
Remember its 2010 now :) (i wrote 2009 twice already)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mmi09 » Mon Jan 04, 2010 5:11 pm

All the start dates are before yesterday i.e. last year etc and all the end dates also have a lengthy time before it expires i.e. couple months or next year and no products have been assigned to it as I want it so it can be used on any product.

Newbie

Posts

Joined
Mon Jan 04, 2010 3:05 am

Post by flyfishingcolorado » Mon Jan 04, 2010 5:22 pm

try assigning one product to the coupon by selecting a category in the drop down box and then moving one produt from left to right hand box with the directional arrows. Then try a test to see if that takes care of the invalid part.


Posts

Joined
Sun Nov 29, 2009 5:04 pm

Post by 3rdcorner » Mon Jan 04, 2010 6:00 pm

I'm having a similar problem... except it says success your coupon has been applied!

There is no discount showing up however. I've tried using one product, letting it apply to all products by choosing none, percentage, fixed value... nothing works.

I've tried -10.00, 10.00, nothing...

Any idea what to do? I don't have access to the PHP log file

New member

Posts

Joined
Sun Dec 20, 2009 2:35 pm

Post by 3rdcorner » Mon Jan 04, 2010 7:29 pm

I've been through the entire coupon model and cart.php / cart.tpl...

There is no place where a discount is applied. Basically model/checkout/coupon.php checks if the coupon can be applied, then returns the coupon data.

After that controller/checkout/cart.php checks if $coupon is false, and if it's not returns 'success.'

That's all, no discount applied...

New member

Posts

Joined
Sun Dec 20, 2009 2:35 pm

Post by Qphoria » Mon Jan 04, 2010 9:19 pm

3rdcorner wrote:I'm having a similar problem... except it says success your coupon has been applied!

There is no discount showing up however. I've tried using one product, letting it apply to all products by choosing none, percentage, fixed value... nothing works.

I've tried -10.00, 10.00, nothing...

Any idea what to do? I don't have access to the PHP log file
This happens when the coupon is valid, but you don't have any products assigned to it in your cart

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Xsecrets » Mon Jan 04, 2010 9:43 pm

also the order totals are not in the cart so you don't actually see the coupon applied other than the message. you will see it in the totals on the confirmation page.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by 3rdcorner » Mon Jan 04, 2010 10:50 pm

The coupon doesn't get calculated until the confirmation page, which is a bit misleading so I added a message saying that you're discount will be applied in the last step before checkout...

New member

Posts

Joined
Sun Dec 20, 2009 2:35 pm

Post by Qphoria » Tue Jan 05, 2010 12:06 am

coupon code used to be on the last page.. it was moved to cart page but its not the best place. Moving it back to the final page would be best

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Xsecrets » Tue Jan 05, 2010 12:35 am

Qphoria wrote:coupon code used to be on the last page.. it was moved to cart page but its not the best place. Moving it back to the final page would be best
I would have to agree that the cart is certainly not the best place for it as I'm sure most shoppers will bypass the cart all together when you are using ajax.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Qphoria » Tue Jan 05, 2010 12:54 am

exactly

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by dbstr » Tue Jan 05, 2010 12:59 am

One question - might be silly - but if it's on the confirm page, wouldn't it create an unnecessary "Missing Order", when you reload to page to fetch the coupon data? How would you avoid that?

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by Qphoria » Tue Jan 05, 2010 1:52 am

not too silly of a question.. It used to be on the confirmation page back in 1.3.2 and earlier.. but I've never bothered to check if it makes a new order id.. Theoretically you are right.

I suppose the real issue is the way it creates the order id. Perhaps the order id should be set to the session as soon as its created. Then check the session each time the confirm page loads. If there is already an order id, use that one instead of creating a new one.

I'll test this theory out. Still doesn't change the fact that coupon is still probably best done on the confirmation page unless the checkout design changes to accommodate different coupon possibilities better, like checking if its free shipping and forcing free shipping on the shipping page.

Really the coupon should maybe be added to the cart as a discount "item"
Then you'd see:

Code: Select all

Product 1        $51.00
- Color Red
Product 2        $14.00
Coupon ($10.00 off):      -$10.00

Subtotal:         $60.00
right in the cart.

Could also add the coupon field to the cart sidebox for those using ajax.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Xsecrets » Tue Jan 05, 2010 3:35 am

I would say the best place would be on the payment/shipping page. Well that is to say in a new version if we can do guest checkout all on one page why can't we put shipping/payment on one page for logged in customers then put the coupon code on that page.

of course the next best option would be to put it in the cart calculations, or simply leave it as an order total, but put the order totals in the cart. And off course as Q said you would need it in the cart box for people using AJAX.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Qphoria » Tue Jan 05, 2010 4:39 am

dbstr wrote:One question - might be silly - but if it's on the confirm page, wouldn't it create an unnecessary "Missing Order", when you reload to page to fetch the coupon data? How would you avoid that?
ok.. i've added a quick and easy mod to prevent this from happening here:
http://forum.opencart.com/viewtopic.php ... 453#p43453

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by scwhost » Wed Jan 06, 2010 12:07 am

Hello!
I am having this problems "I've created a couple of coupons but everytime at the check out I get the Error: Coupon is either invalid, expired or reached it's usage limit. Any ideas on what the problem is , I've tried everything I can think of, I've checked the date , amount etc" as well. I didnt read any where on this page where this issue was directly addressed. Can anyone help?

Kind Regards
SCW

Newbie

Posts

Joined
Thu Dec 31, 2009 3:32 am

Post by jamesunique » Wed Feb 24, 2010 7:32 pm

Hi, I'm having the same problem, gone through the same processes - no joy.

In the first place it would be nice to have a fix for this as it stands but further down the line I agree that most people don't bother with the basket and go straight to checkout. In my view this is where you should enter a discount code.

Newbie

Posts

Joined
Sat Feb 20, 2010 7:39 am

Post by rajeshram » Tue May 11, 2010 12:36 pm

I have a problem with this as well.

Ive narrowed down the problem.

Once the coupon is created with 10 or 20 available uses.. or any number .. it can be a 100.

When checking out, the first time the coupon works.
After the first time, it becomes invalid, no matter how many times you set the number of uses.

Newbie

Posts

Joined
Sun Mar 21, 2010 2:12 am
Who is online

Users browsing this forum: Baidu [Spider], HAO, Semrush [Bot] and 145 guests