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

#   Specifications, info disappears when selecting variants

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 9 months ago [\#328495](#328495) by [Buby-it](/forum/user/44516-buby-it "View Buby-it's Profile")  *[Specifications, info disappears when selecting variants](/forum/3-bug-report/901708-specifications-info-disappears-when-selecting-variants#328495 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 88.0.4324.96 -- Error-message(debug-mod must be tuned on) -- : no message  Hi I have some issues with my product layout. I have products with variants where I want some important info shown under specifications but when customers select their required variants the important info under specifications disappears can you help me out ?  Thanks in advance Buby")* was created by *[Buby-it](/forum/user/44516-buby-it "View Buby-it's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4.11
-- Browser(s) name and version -- : Chrome 88.0.4324.96
-- Error-message(debug-mod must be tuned on) -- : no message

Hi
I have some issues with my product layout. I have products with variants where I want some important info shown under specifications but when customers select their required variants the important info under specifications disappears can you help me out ?

Thanks in advance
Buby

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDE3MDgtc3BlY2lmaWNhdGlvbnMtaW5mby1kaXNhcHBlYXJzLXdoZW4tc2VsZWN0aW5nLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

5 years 9 months ago [\#328507](#328507) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Specifications, info disappears when selecting variants](/forum/3-bug-report/901708-specifications-info-disappears-when-selecting-variants#328507 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 88.0.4324.96 -- Error-message(debug-mod must be tuned on) -- : no message  Hi I have some issues with my product layout. I have products with variants where I want some important info shown under specifications but when customers select their required variants the important info under specifications disappears can you help me out ?  Thanks in advance Buby")*

Hi,

A simple solution will be to remove the block of code: Code:

if(!empty($this-&gt;fields)) { ?&gt; &lt;div id="hikashop_product_custom_info_&lt;?php echo $variant_name; ?&gt;" style="display:none;"&gt; &lt;h4&gt;&lt;?php echo JText::_('SPECIFICATIONS'); ?&gt;&lt;/h4&gt; &lt;table class="hikashop_product_custom_info_&lt;?php echo $variant_name; ?&gt;"&gt; &lt;?php $this-&gt;fieldsClass-&gt;prefix = ''; foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) { if(empty($variant-&gt;$fieldName) &amp;&amp; !empty($this-&gt;element-&gt;main-&gt;$fieldName)) { $variant-&gt;$fieldName = $this-&gt;element-&gt;main-&gt;$fieldName; } if(!empty($variant-&gt;$fieldName)) $variant-&gt;$fieldName = trim($variant-&gt;$fieldName); if(!empty($variant-&gt;$fieldName) &#124;&#124; (isset($variant-&gt;$fieldName) &amp;&amp; $variant-&gt;$fieldName === '0')) { ?&gt; &lt;tr class="hikashop_product_custom_&lt;?php echo $oneExtraField-&gt;field_namekey; ?&gt;_line"&gt; &lt;td class="key"&gt; &lt;span id="hikashop_product_custom_name_&lt;?php echo $oneExtraField-&gt;field_id; ?&gt;_&lt;?php echo $variant_name; ?&gt;" class="hikashop_product_custom_name"&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span id="hikashop_product_custom_value_&lt;?php echo $oneExtraField-&gt;field_id; ?&gt;_&lt;?php echo $variant_name; ?&gt;" class="hikashop_product_custom_value"&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$variant-&gt;$fieldName); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php }

from the file product / show.php for your frontend template via the menu Display&gt;Views.
The modification will be saved as a template override and will remove the HTML of the specifications for each variant and thus it will keep the specifications area as you see it by default, even after you change the selected variant.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 9 months ago [\#328510](#328510) by [Buby-it](/forum/user/44516-buby-it "View Buby-it's Profile")  Replied by *[Buby-it](/forum/user/44516-buby-it "View Buby-it's Profile")* on topic *[Specifications, info disappears when selecting variants](/forum/3-bug-report/901708-specifications-info-disappears-when-selecting-variants#328510 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 88.0.4324.96 -- Error-message(debug-mod must be tuned on) -- : no message  Hi I have some issues with my product layout. I have products with variants where I want some important info shown under specifications but when customers select their required variants the important info under specifications disappears can you help me out ?  Thanks in advance Buby")*

Hi Nicolas

Thx I'll try that and update you of the result

Buby

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

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

[](#top)
