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

#   Show contact us button on product listing table next to add to cart

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

9 years 11 months ago [\#257611](#257611) by [greenlizzard](/forum/user/36837-greenlizzard "View greenlizzard's Profile")  *[Show contact us button on product listing table next to add to cart](/forum/26-product-category-display/887921-show-contact-us-button-on-product-listing-table-next-to-add-to-cart#257611 "-- HikaShop version -- : HikaShop Business: 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.22 -- Browser(s) name and version -- : Chrome Version 55.0.2883.87 m  HI , how would I go about adding ght e enquire button next to the add to cart button on the product or categiry listing page, I can add to the product item page but I would like to hhave it on the listing page as well, I am using a table to display the products.")* was created by *[greenlizzard](/forum/user/36837-greenlizzard "View greenlizzard's Profile")*

-- HikaShop version -- : HikaShop Business: 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.22
-- Browser(s) name and version -- : Chrome Version 55.0.2883.87 m

HI ,
how would I go about adding ght e enquire button next to the add to cart button on the product or categiry listing page, I can add to the product item page but I would like to hhave it on the listing page as well, I am using a table to display the products.

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

9 years 11 months ago [\#257616](#257616) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show contact us button on product listing table next to add to cart](/forum/26-product-category-display/887921-show-contact-us-button-on-product-listing-table-next-to-add-to-cart#257616 "-- HikaShop version -- : HikaShop Business: 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.22 -- Browser(s) name and version -- : Chrome Version 55.0.2883.87 m  HI , how would I go about adding ght e enquire button next to the add to cart button on the product or categiry listing page, I can add to the product item page but I would like to hhave it on the listing page as well, I am using a table to display the products.")*

Hi,

You can edit the file "listing_table" of the view "product" via the menu Display&gt;Views and add such code: Code:

$params = @$this-&gt;params; global $Itemid; $url_itemid = ''; if(!empty($Itemid)) { $url_itemid = '&amp;Itemid='.$Itemid; } echo $this-&gt;cart-&gt;displayButton( JText::_('CONTACT_US_FOR_INFO'), 'contact_us', $params, ''.hikashop_completeLink('product&amp;task=contact&amp;cid=' . $row-&gt;product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $row-&gt;product_id.$url_itemid) . '\';return false;' );

after the code: Code:

$this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate();

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

9 years 11 months ago [\#257678](#257678) by [greenlizzard](/forum/user/36837-greenlizzard "View greenlizzard's Profile")  Replied by *[greenlizzard](/forum/user/36837-greenlizzard "View greenlizzard's Profile")* on topic *[Show contact us button on product listing table next to add to cart](/forum/26-product-category-display/887921-show-contact-us-button-on-product-listing-table-next-to-add-to-cart#257678 "-- HikaShop version -- : HikaShop Business: 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.22 -- Browser(s) name and version -- : Chrome Version 55.0.2883.87 m  HI , how would I go about adding ght e enquire button next to the add to cart button on the product or categiry listing page, I can add to the product item page but I would like to hhave it on the listing page as well, I am using a table to display the products.")*

Hi Nicolas,
thank you for this it sort of works but whereever i place it it seems to either break or put it in the same column as the add to cart button so you are seeing the button twice.

Where exactly should I place it?

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

9 years 11 months ago [\#257682](#257682) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show contact us button on product listing table next to add to cart](/forum/26-product-category-display/887921-show-contact-us-button-on-product-listing-table-next-to-add-to-cart#257682 "-- HikaShop version -- : HikaShop Business: 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.22 -- Browser(s) name and version -- : Chrome Version 55.0.2883.87 m  HI , how would I go about adding ght e enquire button next to the add to cart button on the product or categiry listing page, I can add to the product item page but I would like to hhave it on the listing page as well, I am using a table to display the products.")*

Hi,

As I said, you should place it after: Code:

$this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate();

If you have an error when you do, please provide the error message and a screenshot of the code modification.

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

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