Post by silkcamel » Fri Oct 07, 2016 1:50 am

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.

Attachments

featured products.jpg

featured products.jpg (165.85 KiB) Viewed 3368 times


New member

Posts

Joined
Sun May 01, 2016 6:05 am

Post by imdevlper18 » Fri Oct 07, 2016 2:02 am

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">

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by silkcamel » Fri Oct 07, 2016 10:35 am

WOW, thank you so much for the detailed instruction.

New member

Posts

Joined
Sun May 01, 2016 6:05 am
Who is online

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