[Skip to main content](#vessel-content)

#   How to restrict variants in dropdown menu

##

- **[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")**
- [![JonnyDutch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2173-jonnydutch "View JonnyDutch's Profile") Topic Author
- [ Offline](/forum/user/2173-jonnydutch)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 11 months ago [\#30554](#30554) by [JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")  *[How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#30554 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")* was created by *[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")*

Hello:

I have my shop set up but I have one snag.
I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock.
Is there a way to restrict any variant that does not have stock from showing in the dropdown?

Thank you. image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/Screen_shot_2011_11_19_at_8.png

- [ ![Screen&#95;shot&#95;2011&#95;11&#95;19&#95;at&#95;8.png](/forum/attachment/2099) ](/forum/attachment/2099 "...11&#95;19&#95;at&#95;8.png") [ ](/forum/attachment/2099?download=1 "...11&#95;19&#95;at&#95;8.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 11 months ago [\#30556](#30556) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#30556 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

No, not possible with the options available.
The only solution at the moment would be to create a characteristic display override as explained in the developer documentation, but that require PHP skills.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")**
- [![JonnyDutch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2173-jonnydutch "View JonnyDutch's Profile") Topic Author
- [ Offline](/forum/user/2173-jonnydutch)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 11 months ago [\#30558](#30558) by [JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")  Replied by *[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#30558 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Interesting because the older site that was developed also with hikashop seems to have this posiblity.

[ dni-tango.com/us/mens-products/product/s.../category\_pathway-13](https://dni-tango.com/us/mens-products/product/show/cid-77/name-model-clasico--1007/category_pathway-13)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")**
- [![JonnyDutch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2173-jonnydutch "View JonnyDutch's Profile") Topic Author
- [ Offline](/forum/user/2173-jonnydutch)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 11 months ago [\#30720](#30720) by [JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")  Replied by *[JonnyDutch](/forum/user/2173-jonnydutch "View JonnyDutch's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#30720 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Hello:

I was wondering if you were able to discover the mystery of why out of stock variants are not displayed on one site and are displayed on the other.

Saludos.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 11 months ago [\#30752](#30752) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#30752 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

It's not a mistery.
Older versions of HikaShop were working like that.
But in some cases the merchant still wanted to display the variant even without a stock. So we change the system to allow that.

So I presume that your other website is using an old version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")**
- [![expertbeginner's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4889-expertbeginner "View expertbeginner's Profile")
- [ Offline](/forum/user/4889-expertbeginner)

Less More

- Posts: 57
- Thank you received: 2
-
-

14 years 9 months ago [\#35900](#35900) by [expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")  Replied by *[expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#35900 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

I hope that the it's okay to resurrect this thread, but my query/request relates to it and it makes sense, to me at least, to use it for the sake of continuity.

Having purchased and upgraded to Hikashop Essential earlier today I have been scratching my head all afternoon trying to find to find a way to stop out of stock variants appearing on the drop down list. I was convinced that I had managed it before, this thread confirms that I had, and wanted to achieve the same again.

Is it possible to have this functionality restored but with the option of displaying or not?

What is the function of the 'Display out of stock products Y - N' option in 'Configuration-&gt;Display-&gt;Default parameters for products' ? In trying to resolve the above I've tried both Yes and No and not been able to see any changes. Was this the control for the above?

Regards,
Martyn.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 9 months ago [\#35957](#35957) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#35957 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Hi,

That option does not control the behavior of variants display in the dropdown.

If you want to not display a variant in a characteristic dropdown, you should just delete the variant. If you need it again at one point in the future, you can always create it again via the "manage variants" area of your products.
If you really don't want to display out of stock variants in characteristic dropdowns, you should write a characteristic display override as explained on our developer documentation.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")**
- [![expertbeginner's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4889-expertbeginner "View expertbeginner's Profile")
- [ Offline](/forum/user/4889-expertbeginner)

Less More

- Posts: 57
- Thank you received: 2
-
-

14 years 9 months ago [\#35995](#35995) by [expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")  Replied by *[expertbeginner](/forum/user/4889-expertbeginner "View expertbeginner's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#35995 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Hi Nicolas,

Thanks for the reply.

I discovered the use of the 'Yes' 'No' option sometime after posting the question. It hides the product when all the variants have no stock.

With regard to the regard to the variant drop down - the main issue with the current functionality is that if the first item in the list is out of stock then the message 'out of stock' gives the impression that the whole range is out of stock. The curious shopper may try to select an item from the list and find other variants in stock. It's not ideal having to depend on a customer's curiosity to check for in stock items.

I'll take a look at your suggestion.

Many thanks,
Martyn.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[woonydanny](/forum/user/5795-woonydanny "View woonydanny's Profile")**
- [![woonydanny's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5795.jpg)](/forum/user/5795-woonydanny "View woonydanny's Profile")
- [ Offline](/forum/user/5795-woonydanny)

Less More

- Posts: 218
- Thank you received: 6
-
-

14 years 9 months ago [\#36996](#36996) by [woonydanny](/forum/user/5795-woonydanny "View woonydanny's Profile")  Replied by *[woonydanny](/forum/user/5795-woonydanny "View woonydanny's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#36996 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Im also interested in this..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mascagni](/forum/user/6627-mascagni "View mascagni's Profile")**
- [![mascagni's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6627-mascagni "View mascagni's Profile")
- [ Offline](/forum/user/6627-mascagni)

Less More

- Posts: 1
- Thank you received: 0
-
-

14 years 7 months ago -  14 years 7 months ago [\#44871](#44871) by [mascagni](/forum/user/6627-mascagni "View mascagni's Profile")  Replied by *[mascagni](/forum/user/6627-mascagni "View mascagni's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#44871 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

Good afternoon,
I'm adding my question here because I think the original thread fits my needs (or question).

My business is selling "picture frames" and I have a situation like that (with HikaShop Starter 1.5.7):
each article have (at least) 2 variants (i.e. colors and dimensions), but not all dimensions have all colors and vice versa.

Variants
Dimensions: 10x15, 13x18, 15x20, 20x20
Colours: Pink, Green, Yellow, Red

***Example:*
Article XYZ
Dimension: 10x15 &gt; Colours: Pink, Green
Dimension: 13x18 &gt; Colours: Yellow, Red**

Actualy I can see all four colours for both dimensions, with the label "No Stock" for unavailable colours/dimensions.

For what I've read there is no way for me to show variants dropdown to show only available value (managed through variants menu in backend).
From my previous example: "if Dimension 10x15 is selected only show Yellow and Red inside Colours dropdown".
Is this true?

To solve my issue I think I need back the option of the old "HikaShop"?
Is there a way to re-implement it as an option?
Please let me know.

Waiting for your kind answer
Alessandro

Last edit: 14 years 7 months ago by [mascagni](/forum/user/6627-mascagni "View mascagni's Profile"). Reason: some typos

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 7 months ago [\#45074](#45074) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to restrict variants in dropdown menu](/forum/4-how-to/30554-how-to-restrict-variants-in-dropdown-menu#45074 "Hello:  I have my shop set up but I have one snag. I have one variant for my products in a dropdown menu. The problem is that all variants show in the menu even when they are not in stock. Is there a way to restrict any variant that does not have stock from showing in the dropdown?  Thank you.")*

The "old hikashop" way won't change anything to the fact that the available values in characteristics dropdowns is not dynamic.
Why not use a "table" display for your characteristics ? That way, you will have only the existing variants selectable. You can activate that with the corresponding option in the Display tab of the configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMwNTU0LWhvdy10by1yZXN0cmljdC12YXJpYW50cy1pbi1kcm9wZG93bi1tZW51P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.154 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
