- Posts: 42
- Thank you received: 1
Several issues with checkout
- BNRBranding
-
Topic Author
- Offline
Less
More
9 years 2 weeks ago #278152
by BNRBranding
Several issues with checkout was created by BNRBranding
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.12
We are having several issues with checkout.
1. If a user has a coupon or gift certificate resulting in a total order amount of $0.00, the user is still prompted to enter credit card information. Once the credit card information is entered, it results in this error:
2. On regular orders, when the user tries to confirm their order, the confirmation page results in a 500 error. the order is created, the credit card is charged, but the cart is not cleared and none of the order emails go out.
We are using guest checkout. I can PM you a coupon code or gift certificate code for testing. Help!
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.12
We are having several issues with checkout.
1. If a user has a coupon or gift certificate resulting in a total order amount of $0.00, the user is still prompted to enter credit card information. Once the credit card information is entered, it results in this error:
Code:
There was an error while processing your transaction: 5 A valid amount is required.
2. On regular orders, when the user tries to confirm their order, the confirmation page results in a 500 error. the order is created, the credit card is charged, but the cart is not cleared and none of the order emails go out.
We are using guest checkout. I can PM you a coupon code or gift certificate code for testing. Help!
Please Log in or Create an account to join the conversation.
9 years 2 weeks ago #278155
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Several issues with checkout
Hello,
1 - That message is related to the payment plugin you're using.
2 - So you should take a look at your PHP error log to have more details about the error message and the concerned file.
3 - No, do not use PM ; we have a "contact us" form for private messages.
Regards,
1 - That message is related to the payment plugin you're using.
2 - So you should take a look at your PHP error log to have more details about the error message and the concerned file.
3 - No, do not use PM ; we have a "contact us" form for private messages.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
9 years 1 week ago #278386
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
Thanks for the reply. The payment plugin we are using is the Hikashop Authorize.net plugin. It seems like orders that have a $0.00 total should not have the payment section display at all, which would account for the error we are getting since the order total is zero.
We're checking in to the 500 errors.
We're checking in to the 500 errors.
Please Log in or Create an account to join the conversation.
9 years 1 week ago #278389
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Several issues with checkout
Hello,
Are you sure that your coupon is right configured ?
Because if an order is really 0.00000 (5 digits) then it is considered as free and no payment plugin will be used.
If you can see 0.00 and you got payment methods, so the "real" price must be superior to 0.00001
But because most of payment plugin are rounding the total with two digits, if the cost is less than 0.01 but more than 0.00001 ; you can got such kind of problem. The goal is to know how you configured you shop and your coupon to not have a real free cart.
Regards,
Are you sure that your coupon is right configured ?
Because if an order is really 0.00000 (5 digits) then it is considered as free and no payment plugin will be used.
If you can see 0.00 and you got payment methods, so the "real" price must be superior to 0.00001
But because most of payment plugin are rounding the total with two digits, if the cost is less than 0.01 but more than 0.00001 ; you can got such kind of problem. The goal is to know how you configured you shop and your coupon to not have a real free cart.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
9 years 1 week ago #278447
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
Still working on the 500 errors, will update as soon as I have something.
As for the $0.00 order totals, I have tried 2 methods. First I tried a 100% off coupon with free shipping, then I tried a gift certificate with a value > the cart total. In both cases, the cart total with and without free shipping shows $0.00 but still requires a credit card to complete checkout.
If you like, I can set up temp super admin access so you can check it out. The issues started when we updated from Hika 2.6.x to 3.2.0. I have also disabled our overrides and that did not make any difference.
Brent
As for the $0.00 order totals, I have tried 2 methods. First I tried a 100% off coupon with free shipping, then I tried a gift certificate with a value > the cart total. In both cases, the cart total with and without free shipping shows $0.00 but still requires a credit card to complete checkout.
If you like, I can set up temp super admin access so you can check it out. The issues started when we updated from Hika 2.6.x to 3.2.0. I have also disabled our overrides and that did not make any difference.
Brent
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
9 years 1 week ago #278456
by Mohamed Thelji
Replied by Mohamed Thelji on topic Several issues with checkout
Hello Brent,
I just tested it on my end and I wasn't able to reproduce your issue, could you provide us more information about your coupon configuration but also step by step instructions about how to reproduce it ?
Thank you.
I just tested it on my end and I wasn't able to reproduce your issue, could you provide us more information about your coupon configuration but also step by step instructions about how to reproduce it ?
Thank you.
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
9 years 1 week ago #278496
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
We figured out the 500 errors, it was a server setting that was inadvertently changed.
The other issue with the zero total still requiring a payment method remains. Once the user enters the card info they will get an invalid amount error since the cart total is $0.00.
I set up a test coupon that gives a 100% discount - bnr2017test
We have a free shipping option so you can get the cart to have a $0.00 total. Do you need me to set up a super admin account to look at the configuration?
The other issue with the zero total still requiring a payment method remains. Once the user enters the card info they will get an invalid amount error since the cart total is $0.00.
I set up a test coupon that gives a 100% discount - bnr2017test
We have a free shipping option so you can get the cart to have a $0.00 total. Do you need me to set up a super admin account to look at the configuration?
Please Log in or Create an account to join the conversation.
9 years 1 week ago #278511
by nicolas
Replied by nicolas on topic Several issues with checkout
Hi,
Yes, and precise instructions to reproduce because we don't have the issue on our end with HikaShop 3.2.0
Please use our contact form along with a link to this thread:
www.hikashop.com/support/contact-us.html
Yes, and precise instructions to reproduce because we don't have the issue on our end with HikaShop 3.2.0
Please use our contact form along with a link to this thread:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
9 years 1 week ago #278547
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
I will include detailed info in the contact form so I don't.
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
9 years 1 week ago #278549
by nicolas
Replied by nicolas on topic Several issues with checkout
Hi,
I see what's going on. The issue is that you're using AWOCoupon and not HikaShop coupons.
And apparently, the way they add the coupons to the cart is too late in the cart loading process for HikaShop's payment method system to know that the price is 0.
Basically, the payment method system in HikaShop sees the price before the coupon is applied and thus it doesn't work properly.
I suppose that they must be using a trigger instead of another.
I would recommend them to implement the trigger onAfterCartShippingLoad to add their coupon to the cart after the shipping is loaded, but before the payment is loaded. If they use the trigger onAfterFullCartLoad, the payment is already loaded when they add the coupon. It's still possible, but in that case, they have to unload the payment in the cart themselves when the total is 0.
Basically, I would recommend to contact AWOCoupon about that issue and provide them with this message. That should help them understand what needs to be done for the coupon to work properly with the payment methods during the checkout.
In the mean time, you can use instead a HikaShop coupon which should behave properly for $0 carts.
I see what's going on. The issue is that you're using AWOCoupon and not HikaShop coupons.
And apparently, the way they add the coupons to the cart is too late in the cart loading process for HikaShop's payment method system to know that the price is 0.
Basically, the payment method system in HikaShop sees the price before the coupon is applied and thus it doesn't work properly.
I suppose that they must be using a trigger instead of another.
I would recommend them to implement the trigger onAfterCartShippingLoad to add their coupon to the cart after the shipping is loaded, but before the payment is loaded. If they use the trigger onAfterFullCartLoad, the payment is already loaded when they add the coupon. It's still possible, but in that case, they have to unload the payment in the cart themselves when the total is 0.
Basically, I would recommend to contact AWOCoupon about that issue and provide them with this message. That should help them understand what needs to be done for the coupon to work properly with the payment methods during the checkout.
In the mean time, you can use instead a HikaShop coupon which should behave properly for $0 carts.
The following user(s) said Thank You: BNRBranding
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
9 years 1 week ago #278615
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
That makes perfect sense. Unfortunately the main reason we are using AWO is for gift certificates so AWO will need to fix the issue for the cart to work properly.
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
- BNRBranding
-
Topic Author
- Offline
Less
More
- Posts: 42
- Thank you received: 1
8 years 11 months ago #280132
by BNRBranding
Replied by BNRBranding on topic Several issues with checkout
AWO found the issue. The amount being sent to AWO by Hika was not rounded so it had more than 2 decimals, leading to a non-zero total that rounded to zero. They added some code to round before the calculations and now it's all working.
Thanks!
Thanks!
The following user(s) said Thank You: Jerome
Please Log in or Create an account to join the conversation.
Time to create page: 0.315 seconds