How to remove the Reward Points feature from OpenCart

lisa Lisa, 28th February 2012

OpenCart is a great piece of Open Source software if you're looking for a cost effective online shop.

We've done a few OpenCart sites lately and it's typically very nice to work with.

However, for some unknown reason, it seems the developers of OpenCart decided that no shop is complete without the ability for a customer to collect Reward Points! When, actually, none of our clients currently offer that to their customers!

So whilst you can turn on and off all sorts of features on OpenCart via the easy to use admin panel, you can't turn off the Rewards Point feature.



I've found a couple of OpenCart extensions you can buy/download and add to your site in order to hide this feature, but I've also written out the instructions for the manual way below.

These instructions are based on the default OpenCart theme, and it does mean you'll have to do it all again if you update the theme but it's fine as a way to just hide this feature until you may need it at a later date.

To do this, you'll need to be comfortable with code and using a text editor and a FTP client - in other words if you have your own OpenCart shop it's probably a job for your web developer.

1) From the file catalog\view\theme\default\template\account\account.tpl, hide line 26:

<li><a href="<?php echo $reward; ?>"><?php echo $text_reward; ?></a></li>

2) From the file catalog\view\theme\default\template\checkout\cart.tpl, hide the following around 53/54 (but not the closing table cell tag):

<?php if ($product['reward']) { ?> <small><?php echo $product['reward']; ?></small> <?php } ?></td>

3) From the file catalog\view\theme\default\template\product\product.tpl, hide line 30:

<span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />

And at around line 43 hide:

<?php if ($points) { ?> <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span> <br /> <?php } ?>

4) You may also want to hide everything in catalog\view\theme\default\template\account\reward.tpl but hopefully doing the above has hidden all links to this file.

More from our blog

18a win Netty 2024 award for Activibees.com

18a win Netty 2024 award for Activibees.com

29.02.24

We are delighted to announce that 18a has been recognised for its outstanding work in the "Web Design Agency of the Year - UK" category at… Read →

Generating an Effective Content Security Policy with your Laravel React App

Generating an Effective Content Security Policy with your Laravel React App

27.02.24

I recently had an interesting problem to solve. I'd built a brand new author website on a shiny installation of Laravel 10, utilising its out-of-the-box… Read →

If your WordPress website looks broken, it could be because of this.

If your WordPress website looks broken, it could be because of this.

15.02.24

WordPress is the incredibly popular blogging-come-full-website platform that powers over 835 million websites* in 2024. It's functionality is extended by plugins, and one such very… Read →