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

#   Custom data changing for variants

##

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

9 years 11 months ago [\#255929](#255929) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#255929 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")* was created by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")*

-- url of the page with the problem -- : [ www.halare-test.co.uk/](http://www.halare-test.co.uk/)
-- HikaShop version -- : HikaShop Business 2.6.3 [1605112330]
-- Joomla version -- : 3.6.4 Stable
-- PHP version -- : 5.6.18

Hi

I have several custom fields added to product, which I am showing in an accordion, via a modified show_block_custom_main.php.

This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.

Any guidance would be greatly appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc2MDQtY3VzdG9tLWRhdGEtY2hhbmdpbmctZm9yLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

9 years 11 months ago [\#255933](#255933) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#255933 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Hi,

It's done by the "show" file of the "product" view.

The following user(s) said Thank You: [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")

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

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

9 years 11 months ago [\#255994](#255994) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#255994 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Thank you very much for the quick reply Nicolas.

Much appreciated

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

9 years 9 months ago [\#260982](#260982) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#260982 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

I'm not sure if this is the same question, but I have two characteristics on my products: 1) type of product you want appliqued and the 2) size. If the customer chooses "applique only", the backend is set to only have one second variant "customer provided product" since they are not buying a product. So why are all of the other variants available in the second drop menu if there is only one variant for "applique only" in the back end?

Or worse, they can add the nonexisting variant item to their wishlist but it does not give them an error message; it simply doesn't add anything to the cart.

[ craftingwithbrandy2.cloudaccess.host/ind...t/2443-anita-peacock](http://craftingwithbrandy2.cloudaccess.host/index.php/our-shop/appliques-embroidery/product/2443-anita-peacock)

Virtuemart 3.0.18  [ ![applique-only.JPG](/forum/attachment/35974) ](/forum/attachment/35974 "applique-only.JPG")

- [ ![applique-only.JPG](/forum/attachment/35974) ](/forum/attachment/35974 "applique-only.JPG") [ ](/forum/attachment/35974?download=1 "applique-only.JPG")

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

9 years 9 months ago [\#260984](#260984) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#260984 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

I get that it's the "show" file but I am not a coder. What/Where in the attached file do I change to not show unused variants?

Besides shouldn't this be default Hikashop? If I didn't add the variant the non-used variants shouldn't be showing up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc2MDQtY3VzdG9tLWRhdGEtY2hhbmdpbmctZm9yLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

9 years 9 months ago [\#261018](#261018) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#261018 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Hi,

The dropdowns are not refresh dynamically.
HikaShop do remove the values that are unused. For example, if you have no variants using the value 2T for that product, and that you've turned off the "Display out of stock products" setting of the Hikashop configuration, you should not see it in the dropdown.
But if you have at least one variant which uses it, then the system has to keep ti in the dropdowns and only remove the add to cart button so that you can't purchase it.
A solution to that is to change the "characteristics display method" setting of the HikaShop configuration to either "list" or "table". Both will circumvent the problem as they don't need any dynamic refresh like it would be needed for the dropdowns and only allow the customer to see the available variants.

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

9 years 9 months ago [\#261115](#261115) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#261115 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

These are appliques that are made from scratch so all of the products are set to unlimited (there technically is no inventory). That means the variants would also be set to unlimited.

I will try the list and see if that works.

Thanks

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

9 years 9 months ago [\#261116](#261116) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#261116 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Also the shop is in catalog mode, so the "add to cart" button is confusing

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

9 years 9 months ago -  9 years 9 months ago [\#261117](#261117) by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile")  Replied by *[drfenning](/forum/user/31596-drfenning "View drfenning's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#261117 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Both of these options look absolutely terrible and are not going to work.

The table is squished and hard to understand. The list is worse because it shows two images for all 42 variants and scrolls on forever. And because it's in catalog mode, there is no way to click on any of the options and contact for more information or add to wishlist.
[ ![list.JPG](/forum/attachment/36004) ](/forum/attachment/36004 "list.JPG")

Lastly, the configuration is set to not show out of stock items so not sure what the products are still showing up.

[ ![out-of-stock.JPG](/forum/attachment/36010) ](/forum/attachment/36010 "out-of-stock.JPG")

[ ![categories-display.JPG](/forum/attachment/36011) ](/forum/attachment/36011 "...es-display.JPG")

- [ ![list.JPG](/forum/attachment/36004) ](/forum/attachment/36004 "list.JPG") [ ](/forum/attachment/36004?download=1 "list.JPG")
- [ ![out-of-stock.JPG](/forum/attachment/36010) ](/forum/attachment/36010 "out-of-stock.JPG") [ ](/forum/attachment/36010?download=1 "out-of-stock.JPG")
- [ ![categories-display.JPG](/forum/attachment/36011) ](/forum/attachment/36011 "...es-display.JPG") [ ](/forum/attachment/36011?download=1 "...es-display.JPG")

Last edit: 9 years 9 months ago by [drfenning](/forum/user/31596-drfenning "View drfenning's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc2MDQtY3VzdG9tLWRhdGEtY2hhbmdpbmctZm9yLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

9 years 9 months ago [\#261124](#261124) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom data changing for variants](/forum/26-product-category-display/887604-custom-data-changing-for-variants#261124 "-- url of the page with the problem -- :   www.halare-test.co.uk/  -- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.4 Stable -- PHP version -- : 5.6.18  Hi  I have several custom fields added to product, which I am showing in an accordion, via a modified show&#95;block&#95;custom&#95;main.php.  This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.  Any guidance would be greatly appreciated.")*

Hi,

1. You're talking about an add to cart button being displayed even though you're in catalog mode but I didn't see any add to cart button neither on your link nor on your screenshots so I'm not sure what you mean ?

2. With these many values for each characteristic, they indeed don't look adapted to what you want to do.
It's alsway possible to improve a bit the display with some CSS, but It won't change the fact that it would be bulky in your case.
Then I don't see another way besides either compromizing on one type of display or customizing the dropdown display with a lot of custom code to them dynamically.

3. In your screenshot [ www.hikashop.com/media/kunena/attachments/31596/list.JPG](https://www.hikashop.com/media/kunena/attachments/31596/list.JPG) you can see that each value of each characteristic is used by at least one variant of the product. So the system cannot remove any value from the dropdowns even though the display of out of stock products is turned off. Otherwise, you wouldn't be able to select all the available combinations.
For example, if the system were to remove the T2 choice in the size dropdown, then you wouldn't be able to select the Tshirt/T2 variant. That would only be possible if the dropdowns were reloaded dynamically, but as I explained you before, that's not the case.

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

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