Zen Cart Logo
Forums / All Other Contributions/Addons / Reward Points Module for ZC v13x

Reward Points Module for ZC v13x

Locked

Views: 470,646

Results 1,741 to 1,760 of 2,476
This thread is locked. New replies are disabled.
2 Mar 2011, 3:10 PM
#1741
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Reward Points Module for ZC v13x

I just figured the reason for hanginf on the page that says its processing the order has something to do with Fast and Easy Checkout, just in case anyone else is having same issue.

I will see if I can sort it, and if I do I will post my findings here.

2 Mar 2011, 3:25 PM
#1742
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: Reward Points Module for ZC v13x

Just in case anyone else is having same issue, if you set Configuration > Fast and Easy Checkout > One Page Checkout to **false **it works fine then.

5 Mar 2011, 6:38 PM
#1743
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

hem:

Okay- go to Admin->Tools->Install SQL Patch and paste in the following:

SET @group_id = '';
SELECT (@group_id := `configuration_group_id`) FROM `configuration_group` WHERE `configuration_group_title` LIKE 'Reward Points';

REPLACE INTO `configuration`
(`configuration_id` ,`configuration_title` ,`configuration_key` ,`configuration_value` ,`configuration_description` ,`configuration_group_id` ,`sort_order` ,`last_modified` ,`date_added` ,`use_function` ,`set_function`)
VALUES (NULL , 'Allow Redeem of Reward Points on Order Total or Subtotal', 'REWARD_POINTS_ALLOW_TOTAL', '0', 'Allow points to be redeemed against the full order (including shipping) or only against the subtotal.<br />0= Against the subtotal.<br />1= Against the full order.', @group_id, '9', NULL, now(), NULL , 'zen_cfg_select_option(array(''0'', ''1''), '); 

I tried this code but I still get the error when running rpd.php:
Allow Redeem of Reward Points on Order Total or Subtotal- record missing in configuration!!!

Any help here?

7 Mar 2011, 1:08 PM
#1744
rorrock avatar

rorrock

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I have instaleld this setup, version 1.28a. Howver now instead of displaying anything.. the pages seem to break when they reach the code...
and stop loading any further... I've heard that 1.33 is broken so I chose the version that was said to be working in this forum.

9 Mar 2011, 7:31 PM
#1745
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

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): ![](http://athenscollectibles.info/images/zen_cart_forums/paypal_email_to_customer.jpg) - The merchant (me) received the following email from PayPal: ![](http://athenscollectibles.info/images/zen_cart_forums/paypal_email_to_merchant.jpg) 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
10 Mar 2011, 3:10 AM
#1746
day2 avatar

day2

New Zenner

Join Date:
Jul 2010
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

many many post ago somebody put in a wish list that reward point can only redeemable toward selected categories.

Has this been done??

Thanks

10 Mar 2011, 6:43 AM
#1747
writeathome avatar

writeathome

New Zenner

Join Date:
Dec 2008
Posts:
50
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Fabulous Mod Andrew, Thank you!!!!

I've implemented Version 1.40a, and everything works great so far. I do have a couple changes I would like to make if anyone has a quick answer for me.

I am not offering reward points for purchases, but only manually giving points for people who send me testimonial pics and other items outside the shopping cart.

On the product_info_display page is there an easy code change that would change the "number of points earned from purchasing this product" to "the number of points this product costs"?

Another workaround could also be setting up the correct point system so it will display the points on the product info page as usual, then somehow disabling the "points earned" section when checking out. Visually, it would look the same as the previous idea, but definitely my second choice.

I may also want to change the shopping cart sidebox info from "the number of points earned from this subtotal" to "the number of points they've earned and can use for this order".

These items aren't must-haves, just something that could help my marketing efforts.

Thank you in advance!

Kim :D

10 Mar 2011, 9:11 AM
#1748
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Kim,

Fabulous Mod Andrew, Thank you!!!!Couldn't agree more, it's really great! :smile:

I've implemented Version 1.40aUnless my glasses need changing :cool: I can't see a version 1.40 offered. Do you have a secret source and, if so, could you share it with us please? :huh:

From your Administration page select Tools>Developers Tool Kit. go to the last row of boxes, enter the text you want to change in the left box, All Files - Catalog/Admin in the second box and click the Search button. This will show you where the "unwanted text" is. If I get hold of version 1.40 I could be more specific.

Anxious to see yours and Andrew's reply. Have a nice day.

11 Mar 2011, 1:30 PM
#1749
dawl avatar

dawl

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I'm having a devil of a time with this.

I just installed it on a site for a customer, we're unable to edit a variety of the options - status track, new acct rewards points, and the advanced reward point calculation. In addition to that...there is no link for the reward point system under the catalog menu or in the customer menu either :(

Anyone have any ideas why this might be happening ?

11 Mar 2011, 3:49 PM
#1750
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I'm not an expert on this mod but I find that it works perfectly (with the exception of PayPal IPN as you will see in my post above) and is highly configurable. I had similar problems when I installed it and took me a long time reading the first 600 posts of this thread before I realised that I had not copied some files from the admin folder. Everything was clear and working after I identified and copied the missing files. Are you probably in a similar situation?

11 Mar 2011, 9:28 PM
#1751
writeathome avatar

writeathome

New Zenner

Join Date:
Dec 2008
Posts:
50
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi George,

I downloaded the mod yesterday from Andrew's site. The version number was straight off the readme file. It didn't specifically say on the title of the zip file that it was 1.40, which is why I went to the readme to verify the version when making my previous post.

You mentioned removing unwanted text. I've disabled everything that talks about points earned when purchasing items (product info template and the sidebox options). But, what I wanted is some replacement code to change those sections I mentioned above to pull how many points it would cost for the product or subtotal, not how many points earned.

I've been playing around with it some more and think I have a solution without changing the code. Here is my workaround so far:

  1. I disabled the "Reward Points Earned" module under Admin:Modules:Order Total. This removed the calculation and reference to points earned in the shopping cart subtotal.
  2. I left tpl_product_info_display code exactly how Andrew created it, but then added my own wording "This product costs" right before the coding (ie, "This product costs 2 reward points).
  3. Under Admin:Catalog:Reward Points, I set the same ratio of points that I set up in Admin:Customer:Group Reward Redeem

I'm still playing with the ratio to make sure the redemption value doesn't exceed the product subtotal, but I'm very happy with the way it is running so far.

11 Mar 2011, 9:53 PM
#1752
writeathome avatar

writeathome

New Zenner

Join Date:
Dec 2008
Posts:
50
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Update to my previous post . . .

I set the ratio back to .01 which is the default. So, my redemption value is 1 point=1 penny.

In order to make the ratio show correctly on my tpl_product_info_display, instead of making the ratio .01 as well, I had to make it 100.0 (Admin:Catalog:Reward Points). Now it displays: FREE with 199 reward points

You can see it in action at: http://cricketvinylsupplies.com/index.php?main_page=product_info&products_id=3

I hope this is of use to others . . .

Kim

11 Mar 2011, 10:17 PM
#1753
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi Kim,

Thanks for coming back. When you say you downloaded the mod from Andrew's site, do you mean the omnicia.com which gives me a "Forbidden" error? I found a cached page in Google with the Reward Points 1.40 offered for download but the link doesn't work.

The design of your Zen Cart site is fantastic, especially the drop-down menu. Very professional job! (just thought to mention a typo discovered accidentally: You have RELIGION & SPRITUALITY under the QUOTE GALLERY tab of the menu).

With regard to modifications, I've followed the same route as you mentioned for the tpl_product_info_display file with this and a few more files. I also added Greek language files as my site is bi-lingual (I added a languages/greek folder where I copied the files from languages/english folder and sub-folders and then edited to replace English definitions with the corresponding Greek.

As I was typing this reply, I received notice of your next post. I see what you have done with the "FREE with xxx reward points". I have followed a different approach with "xxx reward points" in the item description and the side column box showing all the time. Your site is live but mine http://athenscollectibles.info is under construction with 4-5 test products so you are welcome to see how the mod works from loading the home page to the end of checkout (I have made extensive amendments with CSS).

If you visit my site and since I cannot load Andrew's site, would it be a big trouble for you to send me the zip file downloaded? If not, you may upload it to the form in my Contact us page as long as it's not over 8MB. I would be grateful :bigups:

A final question for you: do you use PayPal IPN and, if yes, have you checked whether the mod works with it?

It's past midnight here so I have to go to bed as a good young boy old guy should. Have a nice evening and congratulations for the design of your sites (mine pales in comparison).

12 Mar 2011, 11:22 AM
#1754
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

How long does it take for reward point to appear in Admin > Customers > Reward Points? I installed the module, did a test checkout, and nothing appears.

12 Mar 2011, 11:57 AM
#1755
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

They should appear immediately as pending or earned!

12 Mar 2011, 12:53 PM
#1756
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hmm, strange. I installed the New.sql file and added the modules under Admin > Modules > Order Total. Is there something that I could have missed? Thank you.

12 Mar 2011, 4:58 PM
#1757
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

It seems that you have installed it correctly. As I had some problems at the beginning and they turned out to be caused by missing files, double check that all files in /includes and /admin folders and sub-folders have been copied. I know it sounds silly, but I had missed some files and everything was normal as soon as I copied everything in the right place.

12 Mar 2011, 6:12 PM
#1758
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

It is still not working. Can you think of anything else that may be wrong? I have all the files an installed the New.sql file. Thank you for the help.

12 Mar 2011, 6:31 PM
#1759
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Don't you see something like in the attached when you select Customers>Reward Points? If you do, something in the other settings might be preventing addition of points to customer accounts.

12 Mar 2011, 9:02 PM
#1760
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

The points are neither showing up under "Pending" nor under "Earned". Thank you for the help so far.