Page 1 of 3

[1.5] how to REMOVE reward points program

Posted: Tue Jun 21, 2011 5:17 am
by merry
There doesn't seem to be a place in the Admin to remove the Reward Points from a store without programming... is this true?
It must be removed manually from at least product.tpl and account.tpl?

TIA,
Merry

Re: [1.5] how to REMOVE reward points program

Posted: Tue Jun 21, 2011 1:57 pm
by rph
Extensions -> Order Totals -> Reward Points -> Uninstall.

Re: [1.5] how to REMOVE reward points program

Posted: Tue Jun 21, 2011 3:39 pm
by ronnieb
But it still shows reward points on product.tpl so this will need to be removed manually

Re: [1.5] how to REMOVE reward points program

Posted: Wed Jun 22, 2011 1:08 am
by rph
That's probably worth a bug report.

Re: [1.5] how to REMOVE reward points program

Posted: Fri Jun 24, 2011 12:11 am
by merry
Wow, double thanks, Ryan. I'll drop in the bug report.

Re: [1.5] how to REMOVE reward points program

Posted: Fri Jun 24, 2011 12:34 am
by merry
Actually, it remains on both product.tpl AND account.tpl also after admin uninstall in Extensions -> Order Totals -> Reward Points -> Uninstall:

Image

Re: [1.5] how to REMOVE reward points program

Posted: Sun Jun 26, 2011 10:08 am
by Degsey
You will probaly have to edit them out of both the corresponding php files.

Re: [1.5] how to REMOVE reward points program

Posted: Mon Jun 27, 2011 12:09 pm
by rph
Yep, but that's not really the way it should work from a design standpoint.

Re: [1.5] how to REMOVE reward points program

Posted: Wed Aug 17, 2011 8:49 am
by avanoire
Hi! I've gotten rid of all reward points(that I've found) in the frontend, not commenting out the php but by putting the reward lines in a span and then creating a class with display:none.

First put

Code: Select all

span.rew{display:none;}
in your theme's stylesheet.
Then on cirka line 56 in theme's template/product/product.tpl replace:

Code: Select all

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

Code: Select all

<span class="rew"><?php echo $text_reward; ?> <?php echo $reward; ?></span>
Then cirka line 26 in theme's template/account/account.tpl replace:

Code: Select all

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

Code: Select all

<span class="rew"><a href="<?php echo $reward; ?>"><?php echo $text_reward; ?></a></span>
(and removing the <li> and the </li> on both ends )

Have'nt found any other sections with the reward points but maybe there is.

Cheers
/Jessica

Re: [1.5] how to REMOVE reward points program

Posted: Thu Aug 18, 2011 3:43 pm
by gbisqit
Nil

Re: [1.5] how to REMOVE reward points program

Posted: Thu Aug 18, 2011 3:47 pm
by opencartisalright
gbisqit wrote:Hey avanoire, thank you for the help, but for some reason it doesn't work for me. I have opencart 1.5.1.1 with the shoppica theme, and I followed your instructions but it didn't work. Should I just delete those lines instead?
You could delete them or just comment them out. Personally I prefer commenting code out in the event you ever change your mind and want to easily add it back in. One of the below ways will work to comment out code.

<!-- Code here -->

/* Code here */

// Code here

Re: [1.5] how to REMOVE reward points program

Posted: Thu Aug 18, 2011 4:09 pm
by gbisqit
Awesome, I just deleted them and saved the code in a notepad for possible use later. It completely removed it. Thanks for the help!

Re: [1.5] how to REMOVE reward points program

Posted: Fri Aug 19, 2011 2:31 am
by mwd
I've been loving all the VQmods lately so I thought I would try my hand at making one for this.
So far it seems to be working like a charm on the default template.

If you aren't using the default template, you'll have to make two small changes to the paths in the xml file to replace "default" with the name of your template.

Here on line 6:

Code: Select all

<file name="catalog/view/theme/default/template/product/product.tpl">

change to

<file name="catalog/view/theme/Your-Template-Name/template/product/product.tpl">
and here on line 12:

Code: Select all

<file name="catalog/view/theme/default/template/account/account.tpl">

change to

<file name="catalog/view/theme/Your-Template-Name/template/account/account.tpl">
This is my first attempt at a VQmod so let me know if it doesn't work for you.

Re: [1.5] how to REMOVE reward points program

Posted: Tue Aug 30, 2011 8:38 am
by Degsey
I have never been a fan of reward points so deleting the line in both product.tpl and account.tpl does the job easily.

Re: [1.5] how to REMOVE reward points program

Posted: Fri Sep 09, 2011 1:46 am
by lostjeepsgear
that VQmod above works perfect if you are using default templates
Thanks MWD

Re: [1.5] how to REMOVE reward points program

Posted: Sat Oct 22, 2011 10:52 am
by joy
I also thought that uninstall the Reward Points means the whole things related would be gone, because it is meaningless to still have the Reward Points showing at the product page and in the customer account when it is not in use.

That would be great if this can be implemented with the uninstall function, but it is an easy fix so I am not really complaining.

Not sure if this extension works with 1.5.1.3.1 or not...

Re: [1.5] how to REMOVE reward points program

Posted: Mon Oct 31, 2011 1:06 am
by pitkin2020
mwd wrote:I've been loving all the VQmods lately so I thought I would try my hand at making one for this.
So far it seems to be working like a charm on the default template.

If you aren't using the default template, you'll have to make two small changes to the paths in the xml file to replace "default" with the name of your template.

Here on line 6:

Code: Select all

<file name="catalog/view/theme/default/template/product/product.tpl">

change to

<file name="catalog/view/theme/Your-Template-Name/template/product/product.tpl">
and here on line 12:

Code: Select all

<file name="catalog/view/theme/default/template/account/account.tpl">

change to

<file name="catalog/view/theme/Your-Template-Name/template/account/account.tpl">
This is my first attempt at a VQmod so let me know if it doesn't work for you.
that worked perfectly thanks!!!

Re: [1.5] how to REMOVE reward points program

Posted: Sat Nov 12, 2011 1:58 pm
by dianacdiana
Sorry but I am very new at this. I know I need to delete the code and I found the file but could anyone be more specific and tell me what exactly do I need to remove and from which file? The only file I found was the theme/product/product.tpl

Also a bit off topic, how do I remove the product model on the product information? I don't think I need to overwhelm my customer with this extra information.

Thanks

Re: [1.5] how to REMOVE reward points program

Posted: Tue Nov 22, 2011 10:03 pm
by missjames
THANK YOU for your Mod!!!! :)

Re: [1.5] how to REMOVE reward points program

Posted: Tue Dec 27, 2011 10:40 pm
by yekxmerr
Thanks the mod worked :)