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

#   Need to show all Variant Images at once

##

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

Less More

- Posts: 36
- Thank you received: 2
-
-

14 years 2 weeks ago [\#69981](#69981) by [heart0](/forum/user/9913-heart0 "View heart0's Profile")  *[Need to show all Variant Images at once](/forum/4-how-to/69981-need-to-show-all-variant-images-at-once#69981 "I need to show my variant images like this:    www.ofcentral.com/NEW/apparel/vehicle/pr...when-your-cup-holder  I used Aceshop in that store. But Aceshop isn't working on this other site (I think it's a hosting issue) so I'm trying out Hikashop for the first time. But I need to be able to show my variants like the above example. Is that possible in hikashop as is? Or is there a plugin of some kind I can install?")* was created by *[heart0](/forum/user/9913-heart0 "View heart0's Profile")*

I need to show my variant images like this:

[ www.ofcentral.com/NEW/apparel/vehicle/pr...when-your-cup-holder](http://www.ofcentral.com/NEW/apparel/vehicle/product/112-t-shirt-remember-when-your-cup-holder)

I used Aceshop in that store. But Aceshop isn't working on this other site (I think it's a hosting issue) so I'm trying out Hikashop for the first time. But I need to be able to show my variants like the above example. Is that possible in hikashop as is? Or is there a plugin of some kind I can install?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5OTgxLW5lZWQtdG8tc2hvdy1hbGwtdmFyaWFudC1pbWFnZXMtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#70070](#70070) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Need to show all Variant Images at once](/forum/4-how-to/69981-need-to-show-all-variant-images-at-once#70070 "I need to show my variant images like this:    www.ofcentral.com/NEW/apparel/vehicle/pr...when-your-cup-holder  I used Aceshop in that store. But Aceshop isn't working on this other site (I think it's a hosting issue) so I'm trying out Hikashop for the first time. But I need to be able to show my variants like the above example. Is that possible in hikashop as is? Or is there a plugin of some kind I can install?")*

Hi,

You can edit the file "product / show_default" in HikaShop &gt; Display &gt; Views and try to add the following code: Code:

&lt;?php foreach($this-&gt;element-&gt;variants as $variant){ foreach($variant-&gt;characteristics as $k =&gt; $characteristic){ $char_id = $characteristic-&gt;variant_characteristic_id; $cat_id = $k; } foreach($variant-&gt;images as $image){ echo '&lt;img onClick="document.getElementById(\'hikashop_product_characteristic_'.$cat_id.'\').value = '.$char_id.'; document.getElementById(\'hikashop_product_characteristic_'.$cat_id.'\').focus();" style="height:100px;" src="' . $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path . '" alt="' . $image-&gt;file_name . '" /&gt;'; } } echo '&lt;input type="hidden" onFocus="return hikashopUpdateVariant(this);" id="hikashop_product_characteristic_'.$cat_id.'" value=""&gt;'; ?&gt;

It's an example, you can do it in another way.

Last edit: 14 years 2 weeks ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5OTgxLW5lZWQtdG8tc2hvdy1hbGwtdmFyaWFudC1pbWFnZXMtYXQtb25jZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.087 seconds

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

[](#top)
