Variant is displaying the wrong price in the checkout

  • Posts: 24
  • Thank you received: 1
6 years 5 months ago #293647

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.4
-- PHP version -- : 7.0.1
-- Browser(s) name and version -- : Chrome latest
-- Error-message(debug-mod must be tuned on) -- : No matter which variant is picked, the same price comes out (the last variant)

Having an issue with this one product only. I've tried deleting and recreating the characteristic and variants.
Every time the variant is added to the cart, it uses the price from the last variant in the list.

I can give you a test user login to see, or check out the pictures if that works.

Thank you!

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 5 months ago #293659

Hi,

I don't see the characteristic on your link so I can't reproduce the problem and analyze it:
monosnap.com/file/ek8VMeS1usGOBrqDGZ3K4KQXvDqima
However, usually, this is because of the way the product page layout was customized which creates a problem with the HTML when you select a variant. Because of that, you get always the same variant added to the cart.
You can confirm that by renaming the folder templates/YOUR_TEMPLATE/html/com_hikashop/product via FTP. That will disable all the customization of the product page and it should then work properly, confirming that the issue comes from the customization that was done in one of the files of that folder.

The following user(s) said Thank You: pcomelearning

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

  • Posts: 24
  • Thank you received: 1
6 years 5 months ago #293705

Thanks for the quick response.

That makes sense...
I recently edited the product/shop.php and product/show_default.php template.

Last edit: 6 years 5 months ago by pcomelearning.

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

  • Posts: 24
  • Thank you received: 1
6 years 5 months ago #293706

Here is the other thing that is happening at the checkout and removing the customized templates didn't fix:

Whenever I remove a product, it logs me in (see screenshots). Not sure if the issues are related, but I have not been having an issue with the variants on other products, such as this one: Product with variants

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 5 months ago #293714

Hi,

That's because you're using the old checkout system of HikaShop 2 which submits the whole page when you do an action, so if the login form is auto filled by your browser and you do an action, the login process will be triggered.
I would recommend turning off the "checkout legacy" setting of the HikaShop configuration in order to use the new checkout system of HikaShop 3. That will avoid such issues and the checkout should work much better.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum