- Posts: 51
- Thank you received: 3
Option message on show_block_cart view
- jfischer_hika
-
Topic Author
- Offline
Less
More
4 years 5 months ago #342734
by jfischer_hika
Option message on show_block_cart view was created by jfischer_hika
-- 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?
-- 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.
4 years 5 months ago #342750
by nicolas
Replied by nicolas on topic Option message on show_block_cart view
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 ?
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.
- jfischer_hika
-
Topic Author
- Offline
Less
More
- Posts: 51
- Thank you received: 3
4 years 5 months ago #342796
by jfischer_hika
Replied by jfischer_hika on topic Option message on show_block_cart view
Hi Nicolas,
I sent a P.M. to you with the information you requested.
I sent a P.M. to you with the information you requested.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #342799
by nicolas
Replied by nicolas on topic Option message on show_block_cart view
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.
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.
- jfischer_hika
-
Topic Author
- Offline
Less
More
- Posts: 51
- Thank you received: 3
4 years 5 months ago #342846
by jfischer_hika
Replied by jfischer_hika on topic Option message on show_block_cart view
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
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.055 seconds