Post by demigraphic » Tue Feb 12, 2013 10:08 pm

Hi,

I'm working on my first open cart project and have to say its been a joy to work with so far. I am still relatively new to this and was wondering how do I go about renaming "reward points" to "WAP points"

Is it straight forward?

Thanks in advance

Liam

Newbie

Posts

Joined
Tue Feb 12, 2013 10:05 pm

Post by dirtboy » Wed Feb 13, 2013 3:19 pm

this will change reward points to wp point everywhere, in admin and catalog. everything below the red text will change everything your customer will see. if you only change the files below the red text nothing in admin will be changed.

find these files

admin > language > english > english.php
find and edit these lines of code

Code: Select all

$_['button_add_reward']       = 'Add Reward Points'
$_['tab_reward']              = 'Reward Points';
change them to

Code: Select all

$_['button_add_reward']       = 'Add WP Points'
$_['tab_reward']              = 'WP Points';

then find admin > language > english > catalog > product.php

find this line of code

Code: Select all

$_['entry_reward']           = 'Reward Points:';
change it to

Code: Select all

[code]$_['entry_reward']           = 'WP Points:';
[/code]

find admin > language > english > common > header.php


find and change

Code: Select all

$_['text_report_customer_reward']      = 'Reward Points';
change it to
$_['text_report_customer_reward'] = 'WP Points';


find admin > language > english > mail > customer.php

find

Code: Select all

$_['text_reward_subject']       = '%s - Reward Points';
$_['text_reward_received']      = 'You have received %s Reward Points!';
$_['text_reward_total']         = 'Your total number of reward points is now %s.';

change it to

Code: Select all

$_['text_reward_subject']       = '%s - WP Points';
$_['text_reward_received']      = 'You have received %s WP Points!';
$_['text_reward_total']         = 'Your total number of WP points is now %s.';
find admin > language > english > report > customer_reward.php

find and change

Code: Select all

$_['heading_title']         = 'Customer Reward Points Report';
$_['column_points']         = 'Reward Points';
change it to

Code: Select all

$_['heading_title']         = 'Customer WP Points Report';
$_['column_points']         = 'WP Points';
find admin > sale > english > sale > order.php

find

Code: Select all

$_['text_reward']                             = 'Reward Points:';
$_['text_reward_add']                         = 'Add Reward Points';
$_['text_reward_added']                       = 'Success: Reward points added!';
$_['text_reward_remove']                      = 'Remove Reward Points';
$_['text_reward_removed']                     = 'Success: Reward points removed!';
change it to

Code: Select all

$_['text_reward']                             = 'WP Points:';
$_['text_reward_add']                         = 'Add WP Points';
$_['text_reward_added']                       = 'Success: WP points added!';
$_['text_reward_remove']                      = 'WP Reward Points';
$_['text_reward_removed']                     = 'Success: WP points removed!';
find admin > language > english > total > reward.php

find

Code: Select all

$_['heading_title']    = 'Reward Points';
$_['text_success']     = 'Success: You have modified reward points total!';
$_['error_permission'] = 'Warning: You do not have permission to modify reward points total!';

change it to

Code: Select all

$_['heading_title']    = 'WP Points';
$_['text_success']     = 'Success: You have modified wp points total!';
$_['error_permission'] = 'Warning: You do not have permission to modify wp points total!';
find catalog >language > english > account > account.php

find

Code: Select all

$_['text_reward']        = 'Your Reward Points';
change to

Code: Select all

$_['text_reward']        = 'Your WP Points';

find catalog > language > english > account > reward.php

find

Code: Select all

$_['text_reward']        = 'Reward Points';
$_['text_total']         = 'Your total number of reward points is:';
$_['text_empty']         = 'You do not have any reward points!';
change to

Code: Select all

$_['text_reward']        = 'WP Points';
$_['text_total']         = 'Your total number of wp points is:';
$_['text_empty']         = 'You do not have any wp points!';
find catalog > language > english > checkout > cart.php

find

Code: Select all

$_['text_reward']            = 'Success: Your reward points discount has been applied!';
$_['text_points']            = 'Reward Points: %s';
$_['text_next_choice']       = 'Choose if you have a discount code or reward points you want to use or would like to estimate your delivery cost.';
$_['text_use_reward']        = 'Use Reward Points (Available %s)';
$_['error_reward']           = 'Warning: Please enter the amount of reward points to use!';	
$_['error_points']           = 'Warning: You don\'t have %s reward points!';
change to

Code: Select all

$_['text_reward']            = 'Success: Your wp points discount has been applied!';
$_['text_points']            = 'Reward Points: %s';
$_['text_next_choice']       = 'Choose if you have a discount code or wp points you want to use or would like to estimate your delivery cost.';
$_['text_use_reward']        = 'Use WP Points (Available %s)';
$_['error_reward']           = 'Warning: Please enter the amount of wp points to use!';	
$_['error_points']           = 'Warning: You don\'t have %s wp points!';
find catalog > language > english > checkout > manual.php

find

Code: Select all

$_['error_reward']      = 'Warning: Please enter the amount of reward points to use!';
$_['error_points']      = 'Warning: You don\'t have %s reward points!';
change to

Code: Select all

$_['error_reward']      = 'Warning: Please enter the amount of wp points to use!';
$_['error_points']      = 'Warning: You don\'t have %s wp points!';
find
catalog > language > english > product > category.php

find

Code: Select all

$_['text_points']       = 'Reward Points:'; 
change to

Code: Select all

$_['text_points']       = 'WP Points:'; 
find catalog > language > english > product > manufacturer.php

find

Code: Select all

$_['text_points']       = 'Reward Points:';
change to

Code: Select all

$_['text_points']       = 'WP Points:';
find catalog > language > english > product > product.php

find

Code: Select all

$_['text_reward']       = 'Reward Points:';
$_['text_points']       = 'Price in reward points:';
change to

Code: Select all

$_['text_reward']       = 'WPPoints:';
$_['text_points']       = 'Price in wp points:';
find find catalog > language > english > product > search.php

find

Code: Select all

$_['text_points']       = 'Reward Points:';
change to

Code: Select all

$_['text_points']       = 'WP Points:';
find catalog > language > english > product > special.php

find

Code: Select all

$_['text_points']       = 'Reward Points:'; 
change to

Code: Select all

$_['text_points']       = 'WP Points:'; 
find catalog > language > english > total > reward

find

Code: Select all

$_['text_reward']   = 'Reward Points(%s)';
change to

Code: Select all

$_['text_reward']   = 'WP Points(%s)';

“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford


User avatar
Active Member

Posts

Joined
Wed Mar 07, 2012 3:04 pm

Post by demigraphic » Thu Feb 14, 2013 8:09 pm

Sorry for the delay in response,

Thank you for your reply, i really appreciate your help.

Liam

Newbie

Posts

Joined
Tue Feb 12, 2013 10:05 pm

Post by demigraphic » Thu Feb 14, 2013 8:58 pm

That has worked a treat, thank you very much.

My buttons are slightly weird though they say button_shopping? Any ideas what I need to change to get it back?

Newbie

Posts

Joined
Tue Feb 12, 2013 10:05 pm

Post by BellaBella » Fri Aug 01, 2014 11:29 am

LIFESAVER! Worked excellently. Thank you dirtboy! O0

Change Star Ratings to Hearts


User avatar
Newbie

Posts

Joined
Fri Mar 22, 2013 9:11 am
Location - Racine, WI
Who is online

Users browsing this forum: No registered users and 33 guests