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

#   Comparison button and placement

##

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

Less More

- Posts: 85
- Thank you received: 1
-
-

13 years 3 months ago [\#112636](#112636) by [Kaffeman](/forum/user/9173-kaffeman "View Kaffeman's Profile")  *[Comparison button and placement](/forum/2-general-talk-about-hikashop/84756-comparison-button-and-placement#112636 "Hi Would it be possible to get the button for comparison to show up above every row or at both bottom and top instead of only at the top as it is now? I have my shop set up so it shows 50 products in 3 columns and it's hard to notice or understand that you have to scroll to the top if you check the compare checkbox. Better yet would be if it showed up beside the choices that you make.")* was created by *[Kaffeman](/forum/user/9173-kaffeman "View Kaffeman's Profile")*

Hi
Would it be possible to get the button for comparison to show up above every row or at both bottom and top instead of only at the top as it is now?
I have my shop set up so it shows 50 products in 3 columns and it's hard to notice or understand that you have to scroll to the top if you check the compare checkbox.
Better yet would be if it showed up beside the choices that you make.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#112667](#112667) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Comparison button and placement](/forum/2-general-talk-about-hikashop/84756-comparison-button-and-placement#112667 "Hi Would it be possible to get the button for comparison to show up above every row or at both bottom and top instead of only at the top as it is now? I have my shop set up so it shows 50 products in 3 columns and it's hard to notice or understand that you have to scroll to the top if you check the compare checkbox. Better yet would be if it showed up beside the choices that you make.")*

Hi there,

You can do so by editing the view you are using (in Display&gt;Views). Just find your layout (for example listing_table) and move the block
Code:

&lt;?php if(JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp; $this-&gt;params-&gt;get('show_compare')) { if( $this-&gt;params-&gt;get('show_compare') == 1 ) { ?&gt; &lt;td class="hikashop_product_compare_row"&gt; &lt;a class="hikashop_compare_button" href="&lt;?php echo $link;?&gt;" onclick="setToCompareList(&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;,'&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;',this); return false;"&gt;&lt;?php echo JText::_('ADD_TO_COMPARE_LIST'); ?&gt;&lt;/a&gt; &lt;/td&gt; &lt;?php } else { ?&gt; &lt;td class="hikashop_product_compare_row"&gt; &lt;input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;" onchange="setToCompareList(&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;,'&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;',this);"&gt;&lt;label for="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;"&gt;&lt;?php echo JText::_('ADD_TO_COMPARE_LIST'); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;?php } } ?&gt;

Where you want it to be.

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

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