Zen Cart Logo
Forums / All Other Contributions/Addons / Adding a reward point module/add-on

Adding a reward point module/add-on

Views: 2,770

Results 1 to 3 of 3
8 Nov 2013, 11:35 PM
#1
dawneprochilo avatar

dawneprochilo

New Zenner

Join Date:
Oct 2012
Posts:
31
Plugin Contributions:
0

Adding a reward point module/add-on

Is this all I have to do

Once you have opened up product_listing.php look around line 103 for

$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;

and replace this with

$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$rewards = GetProductRewardPoints($listing->fields['products_id']);
$lc_align = 'right';
$lc_text = '' . $lc_price . '' . $rewards . ' Points';

I compared the info here on the forums versus googling on this site (http://squirrelhosting.co.uk/hosting-blog/hosting-blog-info.php?id=7) and it doesn't seem right and I am leery of uploading and changing my php file

10 Nov 2013, 1:58 PM
#2
jonnyboy22 avatar

jonnyboy22

Zen Follower

Join Date:
Jun 2008
Location:
Sheffield South Yorkshire
Posts:
165
Plugin Contributions:
1

Re: Adding a reward point module/add-on

Hello,

Have you already installed the points module? You will need to install this first before making the coding changes listed on SquirrelHosting. The coding changes are to display the points on the product listing pages.

Don't forget to make any coding changes to your templates file instead of the core file. If you are unsure, make a backup of any file before you edit it.

10 Nov 2013, 4:16 PM
#3
dawneprochilo avatar

dawneprochilo

New Zenner

Join Date:
Oct 2012
Posts:
31
Plugin Contributions:
0

Re: Adding a reward point module/add-on

jonnyboy22:

Hello,

Have you already installed the points module? You will need to install this first before making the coding changes listed on SquirrelHosting. The coding changes are to display the points on the product listing pages.

Don't forget to make any coding changes to your templates file instead of the core file. If you are unsure, make a backup of any file before you edit it.

No I have not installed the points module yet. Where is the points module located at? I uploaded the most recent version of the rewards point module already but according to the directions I found first, I have to upload three different files. Do you have a URL for the directions? I'm still a newbie and floundering through zen cart

Thanks- what I read just seemed too easy.