Show 'Select' as first option on variant dropdown

  • Posts: 66
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
7 years 11 months ago #268139

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.18

We'd like to be able to show a 'Select' option at the top of the variant select box. Is this possible please? If so, how?

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
7 years 11 months ago #268142

Hi,

In your characteristics, you could create a value "Select" and then add a variant for that value and set it as default in your products.

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

  • Posts: 14
  • Thank you received: 1
2 days 4 hours ago #366738

Dear support,
I am sorry to reopen a very old thread.

I did what you advised, adding a "Select..." variant for a product and giving it the Published and Default flags.
But now users can buy the product with this "Select..." variant and it comes for free. How to avoid it be put into the Cart? I set the quantity to zero, but then a message "This variant is no more available" appears and it looks weird. Did I miss something?

Another unrelated question: how can I check if my Hikashop is "Essential" or "Business"? I do not remember it in this website.

Kind regards

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
2 days 2 hours ago #366739

Hi,

- You could use a translation override to change that message, like any text of the HikaShop interface:
www.hikashop.com/download/languages.html#modify
- You could also keep the quantity unlimited, but deactivate the "display add to cart button for free products" setting:
www.hikashop.com/support/documentation/5...ig.html#main_product
- Since 7 years ago, we've added a new setting called "Characteristics dynamic display":
www.hikashop.com/support/documentation/5...html#display_product
If you set that setting to "always", the characteristic selector will have a "please select" choice which will be preselected by default instead of the default variant, and the add to cart button will only appear once you select another value.
- When you open the HikaShop configuration page, the first area of the "Main" tab displays you the current version of HikaShop and the edition you're using:
www.hikashop.com/support/documentation/5...onfig.html#main_main

The following user(s) said Thank You: LorenzoC

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

  • Posts: 14
  • Thank you received: 1
1 day 22 hours ago #366748

Thank you for your kind reply. I have the 5.02 Business

Concerning "display add to cart button for free products" I cannot use that since I use the official plugins for Donations (give what you want) and with that option, the donation bar disappears and it is no longer possible to write the amount

I have put the Always to "Characteristics dynamic display" and it is interesting.
I just noticed a small bug: with that option the first element description is automatically shown.

Example:
My t-shirt product
Main description: browse our collection of colours.
Description of variant1: This is yellow

When using the ALWAYS in that option, when the page is loaded, I directly see the description "this is yellow" even if that is not yet selected.
Can you replicate the issue?


Moreover, when I open the product page and "Select" is there, the price do not appear, and it is correct since the variant is mandatory and only after selecting that, the price should appear. The not-so-nice thing is that if I select a variant and the price appears, it then does not disappear when the user clicks back on "Select".
I know it is not that big of a deal, but...

Last edit: 1 day 21 hours ago by LorenzoC.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
1 day 8 hours ago #366752

Hi,

Concerning "display add to cart button for free products" I cannot use that since I use the official plugins for Donations (give what you want) and with that option, the donation bar disappears and it is no longer possible to write the amount

You could use the price 0.0001
That way, you would have an add to cart button for that donation product with a price of 0 by default.
Or you could enter a suggested donation amount as price, and have the donation input field as an "override" of the default.

When using the ALWAYS in that option, when the page is loaded, I directly see the description "this is yellow" even if that is not yet selected.
Can you replicate the issue?

This is indeed how it works. Only the price and add to cart areas are hidden before the selection. Otherwise, we would have to hide all the elements on the page. The images can also change based on the selected variant, same for the custom fields, etc. So we decided to display the default variant elements for these before the variant is selected, instead of not having anything and having a strange layout.

Moreover, when I open the product page and "Select" is there, the price do not appear, and it is correct since the variant is mandatory and only after selecting that, the price should appear. The not-so-nice thing is that if I select a variant and the price appears, it then does not disappear when the user clicks back on "Select".

This is indeed how it works for now.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum