Free Products checkout problem

  • Posts: 50
  • Thank you received: 2
5 years 5 months ago #307111

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.1
-- Joomla version -- : 3.9
-- PHP version -- : 5.6

Hi, I'm creating file shop:

some products are free,but in checkout process we have Payment, I suggest to add if condition for checkout process that when the product is free it dose not show the Payment step and just complete the order.

in normal i have this process for shoping cart and checkout :
cart - login - payment - end

i need only for free products :
cart - login - end

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 5 months ago #307113

Hi,

That should already be the case.
There is some code in the HikaShop checkout system to remove the payment when the total is equal to 0.
Note that if your product price is 0.00001 then it's not considered equal to 0 even though the rounded total will display at 0.00. So that could explain why you see the payment method selection.
Otherwise, we would need more information on the situation to be able to help as we can't reproduce the issue on our end.

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
4 years 8 months ago #316183

Hi, I encounter the same problem, without having changed anything (as far as I now).
I could give you some information ans login credentials to have a further look. How can I do this in a way nobody else can see this info?

Kind regards, Hans

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 8 months ago #316185

Hi,

You can send that along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 8 months ago #316199

Hi,

It's not a bug you have.
It's just that you have a price set for your product. The price is set to 0.00001 for that product.
It's rounded to 0.00, but since it's not 0, then the payment methods selection is displayed on the checkout.
Remove the price for that product and the payment methods won't appear:
monosnap.com/file/7Xcg0t8ajVsHI7t32sktWzDhqRHgA2

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

  • Posts: 56
  • Thank you received: 0
  • Hikashop Business
4 years 8 months ago #316203

Thanks Nicolas! I never would have figured this out myself. Of course I read the history of this topic, but I didn't realize that I actually had to click the Edit button to see the price of 0.00001.
Thanks again, also for your quick response.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum