Tráthnóna dea Andrew from Dublin, this is George from Athens.
I am doing some final work on my Athens Collectibles Zen Cart store (under construction) and looked in the forums for a Reward Point module. I downloaded and installed your "Reward Point Full Suite" Version 1.33a.
To be honest, I had some trouble at the beginning but found my way. You may want to make a note of the following points for a future update:
-
Readme.txt : refers to Version 1.32a
-
/includes/templates/custom/templates/tpl_document_product_info_display.php : Version id in RP module is 5369/23.12.2006 while latest Zen Cart version is 16242/08.05.2010. Files differ in line 18:
RP module line 18:
```php
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
Zen Cart line 18:
```php
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
```
- /includes/templates/custom/templates/tpl_product_info_display.php : Version id in RP module is 5369/23.12.2006 while latest Zen Cart version is 16242/08.05.2010. Files differ in line 19:
RP module line 19:
```php
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
```
Zen Cart line 19:
```php
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
```
Additionally, the RP file is missing a whole block of code as reported in post #1740 above (thanks dropbob for pointing this out). The missing code makes the reward points appear in each product listing page.
Details of my installation are as follows, in case it matters:
Host: Bluehost
Apache Version 2.2.17
PHP Version 5.2.16
MySQL Version 5.1.47-community-log
Zen Cart Version 1.3.9h
Other add-on modules installed:
- Automated currency update
- Add page to information box
- Blank sidebox
- Greek language pack
- Language-Currency links in header
The module works fine and I'm very pleased with it. It is exactly what I needed and **my only (very serious) issue is that it doesn't work with PayPal IPN** although the readme file suggests that this was solved in version 1.30a.
I will detail what exactly happens in case this could help in solving the PayPal issue. Apologies in advance if this post is becoming too long.
- I set a product named "Test Book" with a price of €1.
- I created a customer with first name=Test and last name=Customer
- Test Customer purchased the Test Book and paid with cheque. 5 points were automatically added to the customer's account as "Pending" and were transferred to "Earned" when I changed the order status to "shipped".
-So far, so good. The same customer purchased the same "Test Book" for a second time. The customer redeemed the previously earned 5 points for €0.05 and the order total of €0.95 (after redemption of points) was paid with a credit card via PayPal.
- The credit card was accepted by PayPal and the transaction was completed with the customer returning to my "Thank You" page.
- The customer received the following email from PayPal (I have masked some details for security purposes):

- The merchant (me) received the following email from PayPal:

The order shows as follows in my Administration (Customers>Orders):
http://athenscollectibles.info/images/zen_cart_forums/order_status.jpg
- In Customers>Reward Points the customer has **zero points earned and zero points pending**!
- My Configuration>Reward Points settings are:
> Reward Point Mode: 1
> Reward Point Sidebox Display: 0
> Reward Point Status Track: Pend: [Pending] Earn: [Processing, Shipped]
> Reward Point Sunrise Period: 0
> Reward Point Redeem Minimum: 0
> Reward Point Redeem Maximum: 0
> Reward Point Rounding: 0.0
> Max Transactions to Display in Customer Admin: 12
> Delete Old Reward Transactions Period: 180
> Adjust Reward Points for Sales/Specials: 1
> Allow Reward Points on Free Products: 0
> Allow Redeem of Reward Points on Order Total or Subtotal: 0
> Set Minimum Order Value to Redeem Points Against: 0
> Limit Maximum Customers on Listings: 50
> Display Products Reward Points When Zero: 1
> Set New Account Reward Points: 300 points added to earned
> Advanced Reward Point Calculation Rules: Advanced Rules Enabled
- As you can see in the third line of settings, points should go to "earned" when the order status is "Processing" but this doesn't happen when payment is via PayPal although it does with Cheque or Cash on Delivery payments.
- Customers>PayPal IPN shows the above order as Transaction Type=**unique** and Payment Status=completed. Although two previous test orders were shown with Transaction Type=**cart** and Payment Status=completed, none of the three test orders assigned the reward points to the customer's account. I don't obviously know the reason for the different transaction types but I hope that you do.
Finally, when I try to get your diagnostic tool from <http://www.omnicia.com/rpd.zip> as advised in the readme file or even access omnicia.com, I get a Forbidden error.
Again, apologies for the very long post. Rather than just advising that the mod does not work properly with PayPal IPN, I tried to give you all the facts and settings hoping that this might help in identifying and correcting the issue. I haven't seen you around in this support thread since January but I hope that you will read this and say hello.
Please understand that it is vital for me to know if the PayPal issue can be fixed or not (preferably the first)!
Wishes for "Oíche mhaith" from Greece.
George