OPEN CART TIPS version 2+

Let us talk about scripts, HTML, Perl, PHP, apache, etc.
Post Reply
User avatar
Posts: 1586
Joined: Mon Nov 09, 2009 10:03 am
Location: Japan

OPEN CART TIPS version 2+

Post by Stevyn » Sun Apr 02, 2017 6:48 pm

For our popular open cart tips for versions 1+ (below version 2) check out


OPEN CART TIPS version 2+

OpenCart 2.x. How to remove “Add To Wish List” button from the product page

1. Open catalog/view/theme/themeXXX/template/product directory.
2. edit product.tpl

remove or comment out

Code: Select all

<li><button class="btn btn-icon" onclick="wishlist.add('<?php echo $product_id; ?>');">
<i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm"><?php echo $button_wishlist; ?></span></button>

Remove ‘Wish List’ link from header.

edit catalog/view/theme/default/template/common/header.tpl


Code: Select all

<li><a href="<?php echo $wishlist; ?>" id="wishlist-total" title="<?php echo $text_wishlist; ?>"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_wishlist; ?></span></a></li>

Contact me directly: Ironfeatherbooks (@)


Post Reply