Option message on show_block_cart view

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 4 months ago #342734

-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

I have a product with options added to them like your demo page shows.
I followed the instructions under product options.
I am getting messages on the cart page for options added to the product:

The product "option": "option value" is not available
The product "option1": "option1 value" is not available
The product "option2": "option2 value" is not available
The product "option3": "option3 value" is not available

I have set to group options with product in the configuration.
All options have quantity set at infinity.
The options work correctly on the product page.
The options correctly show grouped with the product in the cart.
When I add to cart I get the above message for every option no matter what selection is made.

The code displaying the messages is:
$this->checkoutHelper->displayMessages('cart');

What is causing these messages to be displayed?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342750

Hi,

I can't find that error message in HikaShop.
Could you provide a user access and instructions to reproduce the issue on your website so that we can better understand the situation ?

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

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 4 months ago #342796

Hi Nicolas,

I sent a P.M. to you with the information you requested.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342799

Hi,

Ok thanks. I better understand the situation.
I think it can come from several things:
- the option product is unpublished
- the option product variant selected doesn't have a stock
- the option product or the variant has an "access level" not set to "all"
- the option product variant selected doesn't have a price and the "display add to cart button for free products" setting is turned off in the HikaShop configuration

I suppose the most likely is the last one.

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

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 4 months ago #342846

Nicolas,

The last condition was the cause. I set the "display add to cart button for free products" setting to yes and the messages no longer display.

Thank You

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

Time to create page: 0.051 seconds
Powered by Kunena Forum