Hi,
I have a live site using 2.0.0.
I have enabled the paypal, authorize.net (AIM), and free checkout payment extension. Paypal and Authorize.net are set to only be active if the cart total is greater than $0.01.
I have a coupon code that gives a 100% discount. When a customer uses this code, their shopping cart button displays a cart total of $0. In this situation I would expect paypal and authorize.net to not display and for free_checkout to display. But that isn't happening. It seems that Paypal and Auth.net always display and Free_Checkout never displays.
I echoed $total from the ModelPaymentFreeCheckout class and it is $12 (with one item in the cart, discount applied), even though the cart total still appears to be $0. I think this is why PP and Auth.net are showing and Free_Checkout isn't, but I don't know why $total != 0.
Any ideas?
Thanks,
Rick
I'm wondering about this too.
Same exact situation.
When the customer refreshes the page THEN they get free checkout. Is this a bug?
Same exact situation.
When the customer refreshes the page THEN they get free checkout. Is this a bug?

Self Taught Opencart User & Developer Since 2010.
I opened an issue in github on this and Daniel replied that the issue was previously fixed, but I can't seem to find the files that are fixed.
Can anyone offer advice on how I can apply the fix? I'm running 2.0.0.0 and I'm not quite sure how to apply the fix and make sure not to mess up my database or break something else.
Thanks for your help!
Rick
Can anyone offer advice on how I can apply the fix? I'm running 2.0.0.0 and I'm not quite sure how to apply the fix and make sure not to mess up my database or break something else.
Thanks for your help!
Rick
Here's my email to Rick that seemed to do the trick. Posting it here as well – hope it helps

Just did a quick check on that. It seems that it was the issue #1975: https://github.com/opencart/opencart/issues/1975
If I'm not mistaken, this is the commit that fixes that: https://github.com/opencart/opencart/co ... a73ec350a3
So, basically the commit replaces a call to getSubTotal() used in the calculations with calls to the total calculation modules for each respective payment method. The relevant files that are updated with this commit are:
upload/catalog/model/payment/free_checkout.php
upload/catalog/controller/checkout/payment_method.php
upload/catalog/controller/api/payment.php
Let me know if that works for you!
Who is online
Users browsing this forum: No registered users and 2 guests