Product characteristics default option empty

  • Posts: 7
  • Thank you received: 0
4 years 5 months ago #324394

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4.11
-- Browser(s) name and version -- : Chrome 85.0.4183.121
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

Is it possible to have the default variant option of characteristics as an empty value or saying something like "select option" (or similar)? When no option is selected, people are not able to add to cart. This is to force people to choose an option and not accidentally order the wrong (default) option already selected.

Please see attached picture for an example:



Hope that makes sense.
Thanks.

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

  • Posts: 83407
  • Thank you received: 13498
  • MODERATOR
4 years 5 months ago #324426

Hi,

If you have only one characteristic in your product, then the default value is automatically selected.
One solution is to create an additional variant you'll call "select an option" with a quantity of 0 or a sale end date in the past or a sale start date in the future and select it as default.
That way, you'll not have the add to cart by default, and you'll have some text that you can change with a translation override to say something else like "add to cart button will appear after you select something".
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: free2shine@gmx.com

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

  • Posts: 7
  • Thank you received: 0
4 years 5 months ago #324509

Thanks, it works.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum