Page 1 of 1
Can we disable product description and "add to cart"
Posted: Fri Oct 07, 2016 1:50 am
by silkcamel
Opencart 2.3.
Two questions:
(1) Is that possible to remove the Product description and "add to Cart" part on the featured products?
(2) Can we change default 4 feature products per line to 2 feature products per line? I tried to enlarge the image size, but didn't work.
Thank you.
Re: Can we disable product description and "add to cart"
Posted: Fri Oct 07, 2016 2:02 am
by imdevlper18
You have to work on this file:
You can open this file when you are below opencart 2.3 version
Code: Select all
catalog/view/theme/default/template/module/featured.tpl
or if you are on 2.3+ version then this file
Code: Select all
catalog/view/theme/default/template/extension/module/featured.tpl
(1) Is that possible to remove the Product description and "add to Cart" part on the featured products?
Ans)
You can remove the line
Code: Select all
<p><?php echo $product['description']; ?></p>
And also
Code: Select all
<button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
(2) Can we change default 4 feature products per line to 2 feature products per line? I tried to enlarge the image size, but didn't work.
Change below line:
Code: Select all
<div class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12">
To
Code: Select all
<div class="product-layout col-lg-6 col-md-6 col-sm-6 col-xs-12">
Re: Can we disable product description and "add to cart"
Posted: Fri Oct 07, 2016 10:35 am
by silkcamel
WOW, thank you so much for the detailed instruction.