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

#   behaviour when changing variant

##

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

Less More

- Posts: 42
- Thank you received: 0
-
-

14 years 8 months ago [\#39356](#39356) by [ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")  *[behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39356 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")* was created by *[ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")*

Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the "contact us for more information" button disappears ("contact" is enabled for all products) and the Tabber that I inserted below the product is not responding..
What am I doing wrong here?
Thanks

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

14 years 8 months ago [\#39506](#39506) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39506 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")*

Hi,

For the image with variants, you might have that issue:
[ www.hikashop.com/forum/4-how-to/32036-th...n.html?lang=en#38414](http://www.hikashop.com/forum/4-how-to/32036-thumbnail-profusion.html?lang=en#38414)

For the contact button, you should look at these two threads:
[ www.hikashop.com/forum/3-bug-report/3784...t.html?lang=en#38103](http://www.hikashop.com/forum/3-bug-report/37842-no-contact-us-button-on-specific-product.html?lang=en#38103)
[ www.hikashop.com/en/forum/3-bug-report/3...isappears.html#38245](http://www.hikashop.com/en/forum/3-bug-report/37646-contact-us-for-more-information-button-disappears.html#38245)

For tabber you have that problem:
[ www.hikashop.com/forum/3-bug-report/1286...d.html?lang=en#12886](http://www.hikashop.com/forum/3-bug-report/12867-tabs-stop-working-when-characteristic-changed.html?lang=en#12886)

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

14 years 8 months ago [\#39658](#39658) by [ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")  Replied by *[ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")* on topic *[Re: behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39658 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")*

Unfortunately I only managed to solve the tabber issue.
For the other issues I&#96;ve tried all options one by one and all together but nothing changed.
Maybe you could have a look at my link?
[ www.body-aces.com/index.php/tattoo-needl...uct/31-round-liner-2](http://www.body-aces.com/index.php/tattoo-needles/product/31-round-liner-2)

Thanks in advance

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

14 years 8 months ago [\#39676](#39676) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39676 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")*

A simple way to fix both issues for you will be to edit the file "show" of the view "product" via the menu Display-&gt;views and remove the code related to the display of the images Code:

if (!empty ($variant-&gt;images)) { ?&gt; &lt;div id="hikashop_product_image_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt; &lt;div id="hikashop_main_image_div_&lt;?php echo $variant_name;?&gt;" class="hikashop_main_image_div"&gt; &lt;?php $image = reset($variant-&gt;images); $height = $this-&gt;config-&gt;get('product_image_y',$this-&gt;config-&gt;get('thumbnail_y')); $width = $this-&gt;config-&gt;get('product_image_x',$this-&gt;config-&gt;get('thumbnail_x')); if (!$this-&gt;config-&gt;get('thumbnail')) { echo '&lt;img src="' . $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path . '" alt="' . $image-&gt;file_name . '" id="hikashop_main_image_' . $variant_name . '" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" /&gt;'; } else { $style = ''; if (count($variant-&gt;images) &gt; 1) { if (!empty ($height)) { $style = ' style="height:' . ($height +5) . 'px;"'; } } ?&gt; &lt;div class="hikashop_product_main_image_thumb" id="hikashop_main_image_thumb_div_&lt;?php echo $variant_name;?&gt;" &lt;?php echo $style;?&gt;&gt; &lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image_'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_'.$variant_name.'_link"', $width, $height); ?&gt; &lt;/div&gt; &lt;?php } if (count($variant-&gt;images) &gt; 1) { ?&gt; &lt;/div&gt;&lt;div id="hikashop_small_image_div_&lt;?php echo $variant_name;?&gt;" class="hikashop_small_image_div"&gt;&lt;?php foreach ($variant-&gt;images as $image) { echo $this-&gt;image-&gt;display($image-&gt;file_path, 'hikashop_main_image_' . $variant_name, $image-&gt;file_name, 'class="hikashop_child_image"','', $width, $height); } } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php }

and the contact button Code:

&lt;div id="hikashop_product_contact_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt; &lt;?php if (hikashop_level(1) &amp;&amp; ($contact == 2 &#124;&#124; ($contact == 1 &amp;&amp; !empty ($this-&gt;element-&gt;product_contact)))) { echo $this-&gt;cart-&gt;displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', @ $this-&gt;params, hikashop_completeLink('product&amp;task=contact&amp;cid=' . $variant-&gt;product_id), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $variant-&gt;product_id) . '\';return false;'); } ?&gt; &lt;/div&gt;

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

14 years 8 months ago [\#39811](#39811) by [ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")  Replied by *[ALEXIAC](/forum/user/5711-alexiac "View ALEXIAC's Profile")* on topic *[Re: behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39811 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")*

Thank you Nicolas!! Are there any consequences after deleting this that I may come accross in the future?

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

Less More

- Posts: 86281
- Thank you received: 14262
-
-

14 years 8 months ago [\#39986](#39986) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: behaviour when changing variant](/forum/2-general-talk-about-hikashop/39356-behaviour-when-changing-variant#39986 "Hello, I have created some characteristics for a product on my website. My problem is that after I change the variant on the frontend, the product image resolution changes, the &quot;contact us for more...")*

No. When you edit a view of hikashop via this interface, the view modification is saved as an override, so you don't loose it when you update hikashop.

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

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

[](#top)
