New display of product options bug in 3.2.2.

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 4 months ago #284912

-- HikaShop version -- : 3.2.2.
-- Joomla version -- : 3.8.3
-- PHP version -- : 7

Hi team,

I have found a bug in the new version 3.2.2.

In the new version 3.2.2. you can now choose to display options as radios (or checkboxes) on the product page.
When you choose to display the options as radio buttons and click on one of them the required custom fields are not required anymore.
When you don't check the radio buttons you get nicely the message that you had to fill in the required fields. But NOT when you check one of the radio buttons. So people could think they have bought the product but only the option has been added to the shopping cart.

This message contains confidential information


Hope you can fix this issue.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 4 months ago #284934

Hi,

Try adding the line:

unset($p['options']);
after the line:
$p['qty'] = 0;
in the file administrator/components/com_hikashop/classes/cart.php
That should prevent the adding of the options to the cart when the main product cannot be added due to the custom item fields of the main product.

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

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 3 months ago #285100

Thanks!

This is working perfect!!!
Also for the other product without required custom fields but with productoptions.

But do I have to update this cart.php file every time when there is a new update from Hikashop?
Or will this be part of the next release?

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 3 months ago #285105

Hi,

We'll include that patch on our end. So no worries.

The following user(s) said Thank You: Lumiga

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

Time to create page: 0.058 seconds
Powered by Kunena Forum