OPEN CART TIPS version 2+

Let us talk about scripts, HTML, Perl, PHP, apache, etc.

OPEN CART TIPS version 2+

Postby Stevyn » Sun Apr 02, 2017 3:48 am

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

viewtopic.php?f=12&t=1900

:slayer


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>
</li>





Remove ‘Wish List’ link from header.

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

remove

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 (@) gmail.com

Image
User avatar
Stevyn
SysOp
 
Posts: 1565
Joined: Sun Nov 08, 2009 7:03 pm
Location: Colorado

Return to WEBMASTER CHAT



Who is online

Users browsing this forum: No registered users and 0 guests

cron