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

#   Changing display message to "invalid configuration"

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

8 years 4 months ago [\#294836](#294836) by [DylanHika](/forum/user/54202-dylanhika "View DylanHika's Profile")  *[Changing display message to "invalid configuration"](/forum/31-development/895160-changing-display-message-to-invalid-configuration#294836 "Hello,  We have many products with a number of variants, but with those characteristic selections, certain configurations do not exist. When this happens, the master product code shows up on our site. If that product doesn't exist, I would instead like it to say &quot;invalid configuration.&quot; (Think: You have a shirt sizes and colors, but a green medium does not exist.) I think my answer is in this string of code that I have attached, however, I cannot get the message to populate properly. How should I be rewriting this code?")* was created by *[DylanHika](/forum/user/54202-dylanhika "View DylanHika's Profile")*

Hello,

We have many products with a number of variants, but with those characteristic selections, certain configurations do not exist. When this happens, the master product code shows up on our site. If that product doesn't exist, I would instead like it to say "invalid configuration." (Think: You have a shirt sizes and colors, but a green medium does not exist.) I think my answer is in this string of code that I have attached, however, I cannot get the message to populate properly. How should I be rewriting this code?

- [ ![show.PNG](/forum/attachment/44084) ](/forum/attachment/44084 "show.PNG") [ ](/forum/attachment/44084?download=1 "show.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTE2MC1jaGFuZ2luZy1kaXNwbGF5LW1lc3NhZ2UtdG8taW52YWxpZC1jb25maWd1cmF0aW9uP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

8 years 4 months ago [\#294855](#294855) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing display message to "invalid configuration"](/forum/31-development/895160-changing-display-message-to-invalid-configuration#294855 "Hello,  We have many products with a number of variants, but with those characteristic selections, certain configurations do not exist. When this happens, the master product code shows up on our site. If that product doesn't exist, I would instead like it to say &quot;invalid configuration.&quot; (Think: You have a shirt sizes and colors, but a green medium does not exist.) I think my answer is in this string of code that I have attached, however, I cannot get the message to populate properly. How should I be rewriting this code?")*

Hi,

Normally, when a variant doesn't exist for a combination of characteristic values, the stock (quantity) is 0 and the product variant cannot be purchased. So in such case, instead of the "add to cart" button, you should see a "no stock" message.
If you want to customize that message, you can use a translation override:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)
Note that you can also change the "characteristic selection method" setting in the HikaShop configuration to "list" or "table" which will prevent the customer from being able to select / see variants that don't exist.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTE2MC1jaGFuZ2luZy1kaXNwbGF5LW1lc3NhZ2UtdG8taW52YWxpZC1jb25maWd1cmF0aW9uP3RtcGw9bWFya2Rvd24=) 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.075 seconds

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