Several issues with checkout

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278152

-- 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:

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #278155

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,


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.

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278386

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.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #278389

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,


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.

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278447

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

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
7 years 2 months ago #278456

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.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278496

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?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 2 months ago #278511

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

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278547

I will include detailed info in the contact form so I don't.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 2 months ago #278549

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.

The following user(s) said Thank You: BNRBranding

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
7 years 2 months ago #278615

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!

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
7 years 1 month ago #280132

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!

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum