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)
Re: Reward points module : 0 points earned
Fixed, upgraded to 1.5 and re-installed 1.5 mod all works fine now.
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?
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
Code:
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '';
and replace it with
Code:
$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.
Code:
<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!
Re: Reward points module : 0 points earned
Quote:
Originally Posted by
jonnyboy22
Then where ever you want your rewards to display echo $rewards e.g.
Code:
<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 Code:
$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!
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...-info.php?id=7 in the meantime.