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 21 to 28 of 28
This thread is locked. New replies are disabled.
12 Dec 2015, 6:40 PM
#21
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

lruskauff:

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

I've been running circular tests on it and while have tested priority a number of times and each of the other shipping methods at least once, I get the wrong message only when priority mail (not express), 2nd day air UPS, or UPS Ground. The first selection tried was priority mail to confirm it wasn't a session reset issue of going to a shipping method and then returning through the process...

Looks like could be attributed to the option being an odd number in the array of shipping methods within a shipping type...

Think you could add another (fourth) USPS method to see if the above is true?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

12 Dec 2015, 7:37 PM
#22
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

lruskauff:

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

I think it has something to do with the first automatically chosen shipping option giving the wrong message. Because when I first noticed it the other day, I was testing it with a lighter weight product, and first class was the cheapest shipping, and the one that was automatically checked, and that was giving it the error the other day. So, it isn't any particular class, only the first box (cheapest shipping)auto selected.

Re: usp. I will look at the setting later today.

12 Dec 2015, 7:39 PM
#23
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 can try later today to add another shipping type. problem is, I don't think we ship with any of the other types. We don't quote flat rate boxes, etc., because it might not fit in that box.

13 Dec 2015, 1:40 PM
#24
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

sadie:

I can try later today to add another shipping type. problem is, I don't think we ship with any of the other types. We don't quote flat rate boxes, etc., because it might not fit in that box.

Don't know what changed, but I just tried something different than the provided instructions on the previous page.

I added the non-clearance item from the link, I went to checkout, made it to the shipping page, saw the same options, 3 and 4 each for usps and ups, respectively.
Returned to the cart,
Went to the product that was in the cart,
Went to the next item in the category,
Added quantity of 1,
Returned to the shopping cart,
Continued to shipping,
Because the default shipping that was previously selected became unavailable in this configuration, was advised (properly) that I needed to select an alternate shipping method.
At ths point there were 2 USPS options (priorty and priority express) and the same 4 UPS options.
I tried the "second" USPS option and received the must purchase greater than $0.00 message (expected if related to position in list)
Returned to shipping and selected the first, now default, USPS option.
Again tried to checkout with the coupon and was again provided the message above... (Unexpected response when compared to earlier system response.)
Tried the first and second UPS option with the same result...

So again, not sure what changed if anything on the server, but the response of the system changed after one of the available types of shipping methods was modified.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

13 Dec 2015, 2:30 PM
#25
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 happens if you edit the file:
/includes/modules/order_totals/ot_coupon.php

and change the line around 190 to include the code in RED:

        if ([B]$coupon_result->fields['coupon_minimum_order'] > 0 && [/B]strval($order_total['orderTotal']) < $coupon_result->fields['coupon_minimum_order']) {

Does this correct the problem for 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!

14 Dec 2015, 10:32 AM
#26
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:

What happens if you edit the file:
/includes/modules/order_totals/ot_coupon.php

and change the line around 190 to include the code in RED:

    if ([B]$coupon_result->fields['coupon_minimum_order'] > 0 && [/B]strval($order_total['orderTotal']) < $coupon_result->fields['coupon_minimum_order']) {
> 
> Does this correct the problem for you?

Yes, that worked!  Thank you.
15 Dec 2015, 3:25 AM
#27
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

By coincidence, I just noticed this happening on my site too. The supplied patch corrects the problem. Thanks!

15 Dec 2015, 1:02 PM
#28
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

Thanks for the update that this works for you ... :smile:

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!