Forums / Addon Payment Modules / Reward points module : 0 points earned

Reward points module : 0 points earned

Started by jonnyboy22 on 14 Feb 2012, 12:16 PM · Views: 3,575

Results 1 to 6 of 6
14 Feb 2012, 12:16 PM
#1
jonnyboy22 avatar

jonnyboy22

Zen Follower

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

Reward points module : 0 points earned

Hello, Im having a bit of an issue with my reward points module. Looked though all the reward points thread but cant seem to find a solution.

Ive installed reward points module on 1.3.9h and everything seemed fine. Done sql patch switched on sidebox's etc but when ever I go though checkout it doesn't apply the points.

It just states
0 points earned
0 points pending

Tried switching various settings etc but still no luck. Even tried switching to default template but no joy.

In admin > Customer Reward Points > it just shows the test customer with 0 points earned 0 pending.

Anyone any ideas? any setting i seem to have missed.

(DB prefix is the default for zencart)

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**

14 Feb 2012, 3:48 PM
#2
jonnyboy22 avatar

jonnyboy22

Zen Follower

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

Re: Reward points module : 0 points earned

Fixed, upgraded to 1.5 and re-installed 1.5 mod all works fine now.

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**

22 Feb 2012, 7:52 PM
#3
jonnyboy22 avatar

jonnyboy22

Zen Follower

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

Re: Reward points module : 0 points earned

Just a quick one does anyone know how to display the reward points in the product listing (not product info page)

Take a look at http://www.rmsupply.co.uk/ to see what i mean.

Ive currently told it to echo the price minus the currency symbol, since 1 point is set for 1 pound this works for now.

Any ieads?

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**

23 Feb 2012, 8:14 PM
#4
jonnyboy22 avatar

jonnyboy22

Zen Follower

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

Re: Reward points module : 0 points earned

Fixed it. to add the points for product listing do the following;

To make your points display in your product listing edit the following.

  1. in your product_listing.php file (in includes>modules) find the line
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '';

and replace it with

$rewards = GetProductRewardPoints($listing->fields['products_id']);
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '';

Then where ever you want your rewards to display echo $rewards e.g.

    <div class="rmsfeatureboxpoints">' . $rewards . '</div>

You can do the same to the featured_products.php too.

Hope this helps anyone else as it had me stumped for ages!

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**

10 Mar 2012, 3:22 PM
#5
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: Reward points module : 0 points earned

jonnyboy22:

Then where ever you want your rewards to display echo $rewards e.g.

<div class="rmsfeatureboxpoints">' . $rewards . '</div>
> 
> You can do the same to the featured_products.php too.
> 
> Hope this helps anyone else as it had me stumped for ages!

Great idea however I added this piece of code to correctly display the reward points in the product listing
```php
$lc_text .= '<div class="rmsfeatureboxpoints">' . 'Reward Points ' .$rewards . '</div>';

Now the only thing left is to style that div tag and we are done!
Great job!

5 Jun 2012, 8:52 AM
#6
jonnyboy22 avatar

jonnyboy22

Zen Follower

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

Re: Reward points module : 0 points earned

I have now submitted this to the Zencart team to be included in the plugin section :)

You can download it from http://squirrelhosting.co.uk/hosting-blog/hosting-blog-info.php?id=7 in the meantime.

Want to switch servers? see our how to migrate Zencart guide
Supercharge your website with our **Fast Zencart Hosting**