1. Home
  2. Knowledge Base
  3. OpenCart
  4. How to remove “Add To Compare” from the product page in OpenCart

How to remove “Add To Compare” from the product page in OpenCart

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

 

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

     

  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.

     

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

Was this article helpful?

Related Articles