I have a colleague using opencart and he cannot get free checkout to show up. Here's the setup and scenario on 188.8.131.52 with custom theme:
-Free shipping disabled.
-Free checkout enabled (settings of pending, enabled and 5)
-Test coupon setup for 100% discount and free shipping
-product in cart $100 that is setup to require shipping
-go through guest checkout
-step 4 delivery method, pick the 1 method of shipping for $12
-Step 5 "Warning: no payment options available"
Now on step 5 he used to get Paypal and after the coupon was applied the amount would show as $0.00 on step 6 but if you went to Paypal, it would show the amount before coupon was applied.
Didn't make sense having Paypal show up on a $0.00 amount anyways so I had him eliminate that by setting minimum amount on Paypal module to $0.01.
Any help would be greatly appreciated.
So even thou it shows us the Total as $0.00, you are saying it actually may be something like $0.00001? and if this is the cause, any idea how to fix it?MarketInSG wrote:because when products are taxed, I think it ends up with some small amount of fee, and when total > $0, it no longer show up?
Edit: He checked in the database and the order total shows as $0.0000.
Update: So we got free checkout to show up but we are not sure if it is ok to do this. We changed the if ($total <= 0) line to if ($total <= 0.01) in free_checkout.php.
That seems to be the case.MarketInSG wrote:because when products are taxed, I think it ends up with some small amount of fee, and when total > $0, it no longer show up?
We just ran into this problem for the first time today.
Based on sales tax percentage the actual total ends up a fraction of a cent more or less than a whole number.
When it's a fraction of a cent more than zero, the Free Checkout doesn't show.
Thank you for this update.sunster wrote:Update: So we got free checkout to show up but we are not sure if it is ok to do this. We changed the if ($total <= 0) line to if ($total <= 0.01) in free_checkout.php.
After finding the correct free_checkout.php in catalog/model/payment, I adjusted your code fix a little to:
Code: Select all
if ($total < 0.01)
Worked like a charm!
Use it? Like it? Want to support it but don't know how? Send a donation to show your appreciation.
Daniel's PayPal address - email@example.com
Qphoria's Paypal address - firstname.lastname@example.org
Users browsing this forum: No registered users and 7 guests