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

#   Variants dropdown list optimization?

##

- **[heikoe](/forum/user/5162-heikoe "View heikoe's Profile")**
- [![heikoe's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/frog.gif)](/forum/user/5162-heikoe "View heikoe's Profile") Topic Author
- [ Offline](/forum/user/5162-heikoe)

Less More

- Posts: 4
- Thank you received: 0
-
-
-
- [](http://www.it-service-namibia.com)
-

14 years 4 months ago [\#55638](#55638) by [heikoe](/forum/user/5162-heikoe "View heikoe's Profile")  *[Variants dropdown list optimization?](/forum/2-general-talk-about-hikashop/55638-variants-dropdown-list-optimization#55638 "Hello,  I have a shop online with about 80 variants per product. The first variant is a color and there are 40 of it. The site itself is loading pretty fast and is displayed well, but I think the dropdown list of the variants needs a bit longer to load (the rotating circle in the explorer shows that).  What happens then is, that a visitor who knows the site could click onto the dropdown list with the colors before the page has finished loading and when the site has finished loading (maybe a second later) the dropdown list flips back down and one has to click it again.  Do you know if there is a solution for that? Something like that the dropdown list will be displayed after the page is loaded completely?  Thank you very much.")* was created by *[heikoe](/forum/user/5162-heikoe "View heikoe's Profile")*

Hello,

I have a shop online with about 80 variants per product. The first variant is a color and there are 40 of it. The site itself is loading pretty fast and is displayed well, but I think the dropdown list of the variants needs a bit longer to load (the rotating circle in the explorer shows that).

What happens then is, that a visitor who knows the site could click onto the dropdown list with the colors before the page has finished loading and when the site has finished loading (maybe a second later) the dropdown list flips back down and one has to click it again.

Do you know if there is a solution for that? Something like that the dropdown list will be displayed after the page is loaded completely?

Thank you very much.

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

14 years 4 months ago [\#55744](#55744) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Variants dropdown list optimization?](/forum/2-general-talk-about-hikashop/55638-variants-dropdown-list-optimization#55744 "Hello,  I have a shop online with about 80 variants per product. The first variant is a color and there are 40 of it. The site itself is loading pretty fast and is displayed well, but I think the dropdown list of the variants needs a bit longer to load (the rotating circle in the explorer shows that).  What happens then is, that a visitor who knows the site could click onto the dropdown list with the colors before the page has finished loading and when the site has finished loading (maybe a second later) the dropdown list flips back down and one has to click it again.  Do you know if there is a solution for that? Something like that the dropdown list will be displayed after the page is loaded completely?  Thank you very much.")*

The solution will be to edit the file 'show' of the view "product" via the menu Display-&gt;Views and remove the blocks of code for information that doesn't change from one variant to another.
For example, if the description is always the same, you can remove that code:
&lt;div id="hikashop_product_description_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;
&lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$variant-&gt;product_description));?&gt;
&lt;/div&gt;

That will reduce the size of the page, its processing and allow browser to download the page much faster

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

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