Required characteristic field

  • Posts: 96
  • Thank you received: 3
  • Hikamarket Frontedition Hikashop Business
8 years 10 months ago #240188

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5.33

Hello,

I'm being develop a webshop with juwels and rings. For the rings the buyer must give in a ring size.
I have made characteristics for the rings size. The default value is the first issue form the charasterics. If a buyer doesn't choose a ring size he always get the default value. How can I make a required field so that the buyer must choose conscious a ring size?

Kees

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
8 years 10 months ago #240198

Hi,

In your characteristic, you can add an extra value "Please select" and add the corresponding variant in your product and set it as the default one. And set a quantity of 0 for that variant. That way, the customer won't be able to purchase the default variant and will have to select another characteristic value to be able to see the add to cart button.

The following user(s) said Thank You: Digishop

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

  • Posts: 96
  • Thank you received: 3
  • Hikamarket Frontedition Hikashop Business
8 years 10 months ago #240245

Thank you very much. That works.

The only thing I see now is the stock for the variant 'Please select'.
in the product page there is now the text "no stock available". How can I disable that text. Because it looks like the product is not in stock.

Thanks

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
8 years 10 months ago #240261

Hello,

For this you have to switch to unlimited, for this follow these steps :
- Go to Components => HikaShop => Products
- Edit the required product
- In Main Options part find your Quantity input
- Click on the cross button to erase the quantity and switch your product to unlimited



- Then Save and so, on your frond end "Out of stock" or "X items in stock" won't be displayed anymore

Hope this will fit your needs.

Regards.

Attachments:
Last edit: 8 years 10 months ago by Philip.

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

  • Posts: 96
  • Thank you received: 3
  • Hikamarket Frontedition Hikashop Business
8 years 9 months ago #240313

Hello Philip,

That won't work in my case because I have given a characteristic 'please select' with the amount = 0.
See my first question in this issue. Because of that 'please select' is amount = 0 you see the text 'no stock'.

So I need the characteristic 'please select with zero stock, but I don't want the text 'no stock'.

Hope you understand me. I think I have to edit the vieuws? Can you help me.

Thanks

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
8 years 9 months ago #240314

Hello,

Right now I get it ! Sorry for the misunderstood...
The most simple solution is to custom your frontend Css, like you can see here on this tutorial .

Note : I suggest you to add your Css code at the end of the file, later that will be more easy to find and correct it.

Add this Css code :

.hikashop_product_no_stock {
    display: none;
}

Regards.

Last edit: 8 years 9 months ago by Philip.

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

  • Posts: 33
  • Thank you received: 1
4 years 1 month ago #329382

Hi,
I know that this thread is quite old but, as far as I can see, the problem is still there.

Hiding the message hikashop_product_no_stock in CSS is a good workaround but... wouldn't it be better it one of the characteristic was selectable as "dropdown field description"? Could this be implemented in next releases?

Thank you very much.
Kind regards

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 1 month ago #329384

Hi,

Actually, we've worked towards that goal last year with the addition of the "Characteristics dynamic display" setting in the HikaShop configuration.
With that setting activated, and with more than one characteristic attached to the product, you will have a please select choice for the second, third, etc characteristic and the add to cart button, stock, etc will only appear after that.
And with the next version of HikaShop, which is to be available before the end of February, that setting will be improved to allow to work with only one characteristic, and thus meet your need.

The following user(s) said Thank You: altrasoluzione

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

Time to create page: 0.078 seconds
Powered by Kunena Forum