Forums / Bug Reports / [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

[Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Locked

Started by paul3648 on 29 Jan 2013, 6:18 PM · Views: 4,387

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
29 Jan 2013, 6:18 PM
#1
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

[Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Reposting from: http://www.zen-cart.com/showthread.php?202297-Coupon-Restrictions-Alert-Messages&p=1181435#post1181435

This error can be reproduced on a new installation.

  1. Create a product with price at $21.95
  2. Install Table Rates shipping module with these settings:
    Shipping Table - 25:7.99
    Table Method - item
  3. Create a coupon with a 10% reduction
  4. Restrict the product in step one from using this coupon
  5. Add this item to your cart - only this item
  6. Select the table rates for shipping
  7. Enter the coupon code from step 3
  8. A yellow alert box appears "You must spend at least US$0.00 to redeem this coupon "

The alert should be "This coupon code is not valid for any product currently in your cart."

This problem only occurs in a very specific price range. If you have two of the items @ 21.95, the correct alert shows up.

29 Jan 2013, 6:54 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Good news ... I am reproducing the problem ...

I do not, however, have a solution to this yet but I will be working on it ...

Thanks for the detailed break down on reproducing this issue ...

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!

26 Feb 2013, 10:37 AM
#3
miketrin avatar

miketrin

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Any progress on how to work around this message about having to spend at least $0.00? when trying to apply a coupon on a cart with product/category restrictions?

26 Feb 2013, 3:49 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Could you test if this works better for you ...

Save your original file and unzip the attached file and put it in:
/includes/modules/order_total/ot_coupon

NOTE: be sure to test each of your Discount Coupons with this ...

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!

26 Feb 2013, 6:47 PM
#5
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

That works for me, thanks.

28 Jan 2015, 11:48 PM
#6
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Where can I modify the text "You must spend at least US$0.00 to redeem this coupon "
to read
"This coupon code is not valid for any product currently in your cart."

I have installed ot_coupon_totalFull.zip as instructed but still get the error.

29 Jan 2015, 12:05 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

You can use the Developers Toolkit in your admin to search for "must spend at least":
http://www.zen-cart.com/content.php?80-how-do-i-find-out-what-files-to-edit
http://www.zen-cart.com/content.php?81-how-do-i-use-the-developers-toolkit

Using that you'll find that the language define for that is in:

/includes/languages/english.php |

Line #340 : define('TEXT_INVALID_REDEEM_COUPON_MINIMUM', 'You must spend at least %s to redeem this coupon'); |

What are your settings on the Discount Coupon that you are getting this on and any restrictions that you have?

I am assuming you are using Zen Cart v1.5.1?

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 Jan 2015, 3:13 AM
#8
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Ajeh:

What are your settings on the Discount Coupon that you are getting this on and any restrictions that you have?

I am assuming you are using Zen Cart v1.5.1?

No restrictions set that I am aware of...will double check.

Yes, 1.5.1 - Thank you for such a prompt and helpful reply. Thanks also for making it easy to drop a thank you in the tip jar!

29 Jan 2015, 3:35 AM
#9
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

UPDATE on restrictions status - YES, I have DENY'd it for DOWNLOADS Categoryand ALLOW'd it for HARDCOPY BOOKS Category. Should I just have the $10 discount ALLOW'd and eliminate the DENY'd Category from the Restrictions?

29 Jan 2015, 2:03 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

I am not following you a 100% here ... what Categories do you have marked as ALLOW and what Categories marked as DENY?

Have you a link to your URL and some categories_id marked for ALLOW and some marked for DENY?

Do you have TOP set to DENY?

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 Jan 2015, 3:59 PM
#11
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Ajeh:

I am not following you a 100% here ... what Categories do you have marked as ALLOW and what Categories marked as DENY?

Have you a link to your URL and some categories_id marked for ALLOW and some marked for DENY?

Do you have TOP set to DENY?

Hi Ajeh,

GOAL: Track referrals for items sold so referring doctor (if there is one) can receive a monthly remuneration.

QUICK BACKGROUND: I sell only 2 items in the cart at (http://healthy-again.com/hazcart/), a Hardcopy Book and the downloadable eBook version (PDF) of that hardcopy book. Purchase of either item includes a downloadable PDF form permitting licensed doctors to enjoy additional services (this is not a "for sale" item/product). The Hardcopy item also includes a link to the downloadable eBook (PDF). The Hardcopy item is in the "BOOKS (HARDCOPY)" Category and the two PDF items are in the "DOWNLOADS" Category. There are 2 discount/referral Coupons (AP15 & MG15) that are intended to permit a $10 discount for the Harcopy item ONLY but hopefully will be recorded somewhere in the sale for the eBook item so the referral can be tracked. (Not sure if this eBook referral recording will even work)

ANSWERING YOUR QUESTION: "DOWNLOADS" Category is set to DENY on both coupons (AP15 & MG15) while "BOOKS (HARDCOPY)" Category is st to ALLOW on both coupons. I am unable to answer your question "Do you have TOP set to DENY?" since I do not know how/where to check this.

Please advise if this is still unclear.
Many thanks.

29 Jan 2015, 4:05 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

When setting restrictions on a Discount Coupon, you will see Top in the drop down ... Just set that to DENY so you will now see it in the Category section ...

If you have a customer referred by Dr. X and they make purchases with their Discount Coupon DrX20150129 then later come back with a purchase and use a Discount Coupon from Dr. Z for Discount Coupon DrZ20150201, do you want to still just know about Dr. X or do you now also want to know about Dr. Z?

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 Jan 2015, 5:50 PM
#13
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Ajeh:

When setting restrictions on a Discount Coupon, you will see Top in the drop down ... Just set that to DENY so you will now see it in the Category section ...

If you have a customer referred by Dr. X and they make purchases with their Discount Coupon DrX20150129 then later come back with a purchase and use a Discount Coupon from Dr. Z for Discount Coupon DrZ20150201, do you want to still just know about Dr. X or do you now also want to know about Dr. Z?

OK, I have added a Product Restriction for Category Name of TOP from the dropdown with DENY as the restriction.
My display for Discount Coupons Product/Category Restrictions now shows 3 entries:
with CATEGORY NAME / STATUS
Downloads / Deny
Books(Hardcopy)/ Allow
All Categories / Deny
Somehow this does NOT seem like what you wanted me to do.

To Answer Your Ques: Yes, I want to know if that same customer uses two different coupons.

I also need to know if that customer (or any customer) uses a coupon for the item (eBook) that does NOT permit the use of the coupon for a $10 discount. This is because I still need to track the referral. If this is possible but requires some in-depth manipulation to make it work, please let me know and I will then pay to have someone do it for me.

29 Jan 2015, 6:07 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

What you are really looking for is a customized method to check the Discount Coupons used that isn't really related to the referral code as that is a one time thing ...

You are needing something from the orders to show what Discount Coupon was used. I take it click on the REPORT for the Discount Coupon is not sufficient? If not, what specifically do you need in a report to make one useful to 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!

29 Jan 2015, 6:32 PM
#15
azstolman avatar

azstolman

New Zenner

Join Date:
Jan 2015
Location:
arizona
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

There are two items related to this:

  1. When someone enters either Discount/Referral code on checkout, they get the Warning Message: "You must spend at least $1.00 ..." I think I can McGiver this by changing the text to say "Referral Recorded - Note: The discount amount is valid only for the Hardcopy Book"
  2. For the Download eBook item with the Discount/Referral/Coupon code entered: The report shows the sale but does not show the discount coupon ID# for that item. It is obviously not recorded since the coupon is set up as DENY for DOWNLOADS. I would like to somehow see that the person tried to use the code even though the dollar discount was not applied. Is this requirement sounding like a custom job?
29 Jan 2015, 6:47 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Could you please PM me the Discount Coupon so that I can see this happening in your site, as it is not making sense that you have these settings and have updated things ...

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!

11 Dec 2015, 4:55 AM
#17
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

I thought this had been fixed, but I am still getting the error. The coupon is only valid for clearance products, and has no minimum purchase amount. The customer puts non-clearance items in cart, and at checkout in bold yellow it says: “You must spend at least $0.00 to redeem this coupon.”

This only happens when the first shipping choice is made, which is automatically checked. If you pick a different shipping option such as parcel post, express, or ups, the correct reading of: “This coupon code is not valid for any product currently in your cart.”

If a customer puts valid coupon items (or mix of valid and non-valid coupon items) in the cart the discount is calculated correctly. The bold yellow (incorrect) message is very confusing to shoppers. Any idea why I am getting the error with the latest install?

11 Dec 2015, 1:39 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Could you post the exact settings that you are using on the Discount Coupon and any restrictions that you have set then a click for click on what exact steps would need to be done to get this to happen?

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!

12 Dec 2015, 7:19 AM
#19
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

Ajeh:

Could you post the exact settings that you are using on the Discount Coupon and any restrictions that you have set then a click for click on what exact steps would need to be done to get this to happen?

coupon code: 52ca5ecc90
Coupon Amount :: 40.0000%
Start Date :: 12/10/2015
End Date :: 12/14/2015
Uses per Coupon :: Unlimited
Uses per Customer :: Unlimited
Valid Product List :: Restrictions Apply
Valid Categories List :: Restrictions Apply

Category Restrictions
All Categories Deny
Clearance Allow

Product Restrictions
Each product in the clearance category is listed as allow

  1. Here is a link to the clearance items:
    http://www.vintageknits.net/store/index.php?main_page=index&cPath=248

  2. Here is a link to a non-clearance item:
    http://www.vintageknits.net/store/index.php?main_page=product_info&products_id=1297

  3. If you add one non-clearance item (#2 above), and attempt to checkout:
    Here is a temporary customer login to the store:
    user name: [email protected]
    password: testing123

    a. first class mail will be the default box selected
    b. click continue to checkout
    c. put in coupon code: 52ca5ecc90
    d. click checkout with paypal, and then click continue checkout, and the correct message is displayed, but
    e. page back or hit the shopping cart button, and instead choose priority mail, and repeat the same steps, and now the incorrect message displays. “ You must spend at least $0.00 to redeem this coupon”

**I think I’ve narrowed the problem down to when priority mail is chosen as the shipping option, it displays the wrong message of needing to spend 0.00...

Thanks for looking at this.

12 Dec 2015, 5:06 PM
#20
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: [Done v1.5.4] You must spend at least US$0.00 to redeem this coupon

sadie:

coupon code: 52ca5ecc90
Coupon Amount :: 40.0000%
Start Date :: 12/10/2015
End Date :: 12/14/2015
Uses per Coupon :: Unlimited
Uses per Customer :: Unlimited
Valid Product List :: Restrictions Apply
Valid Categories List :: Restrictions Apply

Category Restrictions
All Categories Deny
Clearance Allow

Product Restrictions
Each product in the clearance category is listed as allow

  1. Here is a link to the clearance items:
    http://www.vintageknits.net/store/index.php?main_page=index&cPath=248

  2. Here is a link to a non-clearance item:
    http://www.vintageknits.net/store/index.php?main_page=product_info&products_id=1297

  3. If you add one non-clearance item (#2 above), and attempt to checkout:
    Here is a temporary customer login to the store:
    user name: [email protected]
    password: testing123

    a. first class mail will be the default box selected
    b. click continue to checkout
    c. put in coupon code: 52ca5ecc90
    d. click checkout with paypal, and then click continue checkout, and the correct message is displayed, but
    e. page back or hit the shopping cart button, and instead choose priority mail, and repeat the same steps, and now the incorrect message displays. “ You must spend at least $0.00 to redeem this coupon”

**I think I’ve narrowed the problem down to when priority mail is chosen as the shipping option, it displays the wrong message of needing to spend 0.00...

Thanks for looking at this.
If it helps,

  1. It displays the wrong message when any other USPS shipping is selected, not just priority.
  2. Not related but your UPS shipping looks out of whack.

Lruskauff