If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Opencart. How to remove “Add To Compare” from the product page

Opencart. How to remove “Add To Compare” from the product page

This tutorial will show you how to remove ‘Add To Compare’ button from the product page in your OpenCart store:

How_to_remove_Add_To_Compare_from_the_product_page_1

  1. Access your server using any ftp software. Open the file catalog/view/theme/themeXXX/template/product/product.tpl.

  2. Back up this file:

    How_to_remove_Add_To_Compare_from_the_product_page_3

  3. Remove the following code from product.tpl file:

    <li>
    	<button class="btn btn-icon" type="button" data-toggle="tooltip"
    	title="<?php echo $button_compare; ?>"
    	onclick="compare.add('<?php echo $product['product_id']; ?>');">
    	<span><?php echo $button_compare; ?></span></button>
    </li>
  4. Save the changes. Clear your browser cache and check your website:

    How_to_remove_Add_To_Compare_from_the_product_page_2

We’ve successfully removed ‘Add To Compare’ button from the product page.

Feel free to check the detailed video tutorial below:

Opencart. How to remove “Add To Compare” from the product page