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

#   Custom button to link to products page

##

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

Less More

- Posts: 50
- Thank you received: 0
-
-

10 years 1 month ago -  10 years 1 month ago [\#253271](#253271) by [edward68](/forum/user/32595-edward68 "View edward68's Profile")  *[Custom button to link to products page](/forum/26-product-category-display/887087-custom-button-to-link-to-products-page#253271 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.6.3 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : firefox nightly 52.0a1  Hello, When I open the shop page the Category image view is displayed. I have created a div that drops down over the top of the category image on hover. In the drop down div I have the logo, category name and a button that points to nowhere. I would like to be able to have the button link to the products page for that category but don't know which view to edit and how to go about it. I would really appreciate it if someone could please tell me how to best go about making this happen. I realise that I need to update Hikashop Business and will be doing so once this page is finished. Thanks.")* was created by *[edward68](/forum/user/32595-edward68 "View edward68's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.6.3
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : firefox nightly 52.0a1

Hello, When I open the shop page the Category image view is displayed. I have created a div that drops down over the top of the category image on hover. In the drop down div I have the logo, category name and a button that points to nowhere. I would like to be able to have the button link to the products page for that category but don't know which view to edit and how to go about it. I would really appreciate it if someone could please tell me how to best go about making this happen. I realise that I need to update Hikashop Business and will be doing so once this page is finished. Thanks.

Last edit: 10 years 1 month ago by [edward68](/forum/user/32595-edward68 "View edward68's Profile"). Reason: problem solved. changed icon

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

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

Less More

- Posts: 50
- Thank you received: 0
-
-

10 years 1 month ago -  10 years 1 month ago [\#253274](#253274) by [edward68](/forum/user/32595-edward68 "View edward68's Profile")  Replied by *[edward68](/forum/user/32595-edward68 "View edward68's Profile")* on topic *[Custom button to link to products page](/forum/26-product-category-display/887087-custom-button-to-link-to-products-page#253274 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.6.3 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : firefox nightly 52.0a1  Hello, When I open the shop page the Category image view is displayed. I have created a div that drops down over the top of the category image on hover. In the drop down div I have the logo, category name and a button that points to nowhere. I would like to be able to have the button link to the products page for that category but don't know which view to edit and how to go about it. I would really appreciate it if someone could please tell me how to best go about making this happen. I realise that I need to update Hikashop Business and will be doing so once this page is finished. Thanks.")*

Hi All, Sorry but I solved this one myself:

&lt;?php $link = $this-&gt;getLink($this-&gt;row);?&gt;
&lt;span class="hikashop_category_name"&gt;

&lt;a href="&lt;?php echo $link;?&gt;"&gt;&lt;button&gt;Read More

&lt;?php
if($this-&gt;params-&gt;get('number_of_products',0)){
echo ' ('.$this-&gt;row-&gt;number_of_products.')';
}
?&gt;
&lt;/button&gt;&lt;/a&gt;

&lt;/span&gt;

Last edit: 10 years 1 month ago by [edward68](/forum/user/32595-edward68 "View edward68's Profile").

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

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