Categories

Featured templates

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

Kate Daniels May 4, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial will show you how to remove “Add to wishlist” button from the product page in OpenCart.

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

  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:

    Opencart_how_to_remove_add_to_wishlist

  3. Open catalog/view/theme/themeXXX/template/product directory.

  4. Locate product.tpl and open it in the editor:

    Opencart_how_to_remove_add_to_wishlist_1

  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>
    

    Opencart_how_to_remove_add_to_wishlist_2

  6. Comment out this line or remove it. Feel free to check this link for more details on using comments How to add/use comments in HTML, CSS, PHP, JS.

  7. Save changes to the file on your server.

  8. Refresh a product page on your website, "Add to wishlist" button is successfully removed.

Feel free to check the detailed video tutorial below:

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

OpenCart Website Templates
This entry was posted in OpenCart Tutorials and tagged list, opencart, product, wishlist. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket