v1.22 now available- This will be the last minor release (barring any bugs) before the next major update (and writing of the manual).
For those of you that prefer the MySQL change snippet- here it is:1.22a
Improved rounding function so no negative values are returned.
Added 'Display Product Reward Points if Zero' configuration item.
Added New Account Points Award.
It's available from here:PHP Code:
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 , 'Display Products Reward Points When Zero', 'REWARD_POINTS_ALWAYS_DISPLAY', '1', 'Set whether a products reward points are displayed when zero.<br />0= Don\'t display 0 Reward Points.<br />1= Always display reward points even when zero.', @group_id, '12', NULL, now(), NULL , 'zen_cfg_select_option(array(''0'', ''1''), ');
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 , 'Set New Account Reward Points', 'REWARD_POINTS_NEW_ACCOUNT_REWARD', '0', 'Set the amount of points awarded to a customer when an account is created. The points can either be added to \'Earned\' which will allow the customer to redeem the points straight away; Or the points can be added to \'Pending\' in which case the customer will receive the points after their first successful order.', @group_id, '13', NULL, now(), 'UseRewardPointNewAccountAwardFunction' , 'SetRewardPointNewAccountAwardFunction(');
http://www.omnicia.com/Zencart%20Rew...s%20Module.zip
It should be up in contribs shortly.
Announcement
With the announcement of v2.0.0 of ZenCart imminent I'm going to postpone any further major mods and work on migrating this mod to the new version. I'll still be doing debug versions if needed.
Anyway, everyone have a good Christmas and thanks for all your help and feedback for the Reward Point module.
Thank you for your hard work.
Merry Xmas and happy new year
hem: I really must tell you that your mod is excelent and thank you for all the work you have done on it. I hope you had a merry Xmas, you deserved it
I've read many pages in this thread, but couldn't find this question. I'm using ZenCart 1.3.6. (done some heavy modification on it and don't have that much time to migrate it to 1.3.8) and managed to install the mod. It shows the points and everything looks ok, the admin section works perfectly, I can assign points and everything. There is just one problem - customer doesn't get the points after making an order, neither pending or rewarded. I'm not using paypal IPN, it was tested on COD and on Invoice, I also use another payment method called Moneta, but first we have to make it work on CODAnybody have any idea why this happens?
Bye, Crt
Hello Andrew,
I loaded all of the Rwards files into the root folder and then ran the "new.sql" patch under Admin>Tools>Install SQL Patches and the Rewards Mod does not show up.
2 things: I am still learning Zen and am not quite sure where in my template to load the "custom" folders and I have (for security) changed the name of the Admin folder.
Any ideas where I am screwing up?
Alan
Update,
I did find the Rewards points under Modules>Order Total and installed both entries.
Any help as to why it is not showing up in the layout box controller field???
Alan
includes\languages\english\extra_definitions\custom
goes to
includes\languages\english\extra_definitions\
includes\modules\sideboxes\custom
goes to
includes\modules\sideboxes
includes\templates\custom
goes to
includes\templates\your_template
I think thats all.
trigi,
Thank you for the help!!!! Very much appreciated.
I place the "custom" rewards folders in the locations you directed and still I am not seeing the Rewards sidebox in the Layout box controller screen. I ran the "new" sql prior to your directions, should I rerun it? Or is there something else I should check?
Alan
Hmmm ... maybe you should look into ADMIN on the layout sceen there is a path where all the sideboxes are stored.
Copy all the files (two to be exact) into that folder, they should appear right away, without any changes in the database.
Bye, Crt
Bookmarks