How to remove “Add To Wish List” button from the product page in OpenCart

How to remove “Add To Wish List” button from the product page in OpenCart

  1. You should edit product.tpl file in catalog/view/theme/themeXXX/template/product folder. You can use FTP client or File manager in your hosting cPanel to edit this file.
  2. Navigate to File manager in your cPanel and open your root installation folder:

     

  3. Open catalog/view/theme/themeXXX/template/product directory.
  4. Locate product.tpl and open it in the editor:

     

  5. Locate the following code:
    <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>

     

  6. Comment out this line or remove it.
  7. Save changes to the file on your server.
  8. Refresh a product page on your website, “Add to wishlist” button is successfully removed.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.