Post by tzpage » Sat Dec 29, 2018 12:04 pm

Can someone please point out how to remove "add to cart, add to wish list and compare this product" from the homepage?
Please see the image for reference here https://ibb.co/dJKWTBt
Thanks

Newbie

Posts

Joined
Sat Dec 29, 2018 12:00 pm

Post by grgr » Mon Jan 07, 2019 12:22 pm

Can just comment it out of the template.

For that it will be ../catalog/view/theme/default/template/extension/module/featured.twig

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by ostechnologies » Mon Jan 07, 2019 2:37 pm

If you have only featured products on your homepage then navigate to:

/catalog/view/theme/YOUR-THEME/template/extension/module/featured.twig

Search for :
<div class="button-group">
<button type="button" onclick="cart.add('{{ product.product_id }}');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ button_cart }}</span></button>
<button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }}');"><i class="fa fa-heart"></i></button>
<button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>
</div>

Replace with:
<!--<div class="button-group">
<button type="button" onclick="cart.add('{{ product.product_id }}');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ button_cart }}</span></button>
<button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }}');"><i class="fa fa-heart"></i></button>
<button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>
</div>-->

Note: If you have other extensions enabled like Bestseller etc, on homepage then do the same with those files also.

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm

Post by DigitCart » Mon Jan 07, 2019 2:54 pm

Hi
You can use CSS to hide them. if you can share a link to your site, we can help better.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests