Free Addon:[Softsolid] Export Reward Points For User

Hello.

This is a addon that allows export to file actual sum reward points user. This addon expands export users.



I hope it will be useful addon.



Regards

Robert Diak

ss_export_reward_points_user_v4.zip

WOW… I've been asking for this for years now… Gotten ridicules quotes from developers and could never proceed… Thank You…

I am glad that addon is useful for someone :)



Regards

Robert Diak

Thanks for the add-on. Now i can see how many users have how many points.



I would however, be interested in a report that shows orders that have used points. There doesn't seem to be any clear way to know when a user uses their points and monitoring each sale is not really feasible.



Do you have any suggestions on this front? Points are great, but if we can't see how and when they are being used we can only hope they are. Seems like a basic fail on the points system for CSC but maybe a custom solution is available?

Hi YFinder,


[quote name='YFinder' timestamp='1424220734' post='205604']

Thanks for the add-on. Now i can see how many users have how many points.



I would however, be interested in a report that shows orders that have used points. There doesn't seem to be any clear way to know when a user uses their points and monitoring each sale is not really feasible.



Do you have any suggestions on this front? Points are great, but if we can't see how and when they are being used we can only hope they are. Seems like a basic fail on the points system for CSC but maybe a custom solution is available?

[/quote]



If you are looking for a custom solution for this issue we are glad to offer help. Contact us if you'd like to get a quote.



Warmly, Alt-team

Hello.



We can extend this addon with additional functionality.



Regards

Robert Diak

Thank you! If you develop functionality to import points please do let me know. :)

[quote name=‘Angeltown’ timestamp=‘1430112893’ post=‘212660’]

Thank you! If you develop functionality to import points please do let me know. :)

[/quote]



Do you want just import and export amount of reward points on the customer account?

[quote name='eComLabs' timestamp='1430125947' post='212697']

Do you want just import and export amount of reward points on the customer account?

[/quote]



Yes, we are just trying to figure out how to award all of our customers some points for being patient with us during our new site development. But since we have over 22,000 customer accounts there is no way we're going to do something manually. I thought perhaps importing would allow us to add points to all accounts.

OK. Just create the app\addons\reward_points\schemas\exim\users.post.php file with the following content:


```php


function fn_exim_set_user_points($user_id, $amount)
{
$current_amount = fn_get_user_additional_data(POINTS, $user_id);

$action = ($amount >= $current_amount) ? 'A' : 'S';
$diff = $amount - $current_amount;

fn_change_user_points(($action == 'A') ? abs($diff) : -abs($diff), $user_id, __('import'), $action);
}

$schema['export_fields']['Reward points'] = array (
'linked' => false,
'process_get' => array('fn_get_user_additional_data', POINTS, '#key'),
'process_put' => array('fn_exim_set_user_points', '#key', '#this')
);

return $schema;
```

Then clear the cache and check the result.

[quote name=‘eComLabs’ timestamp=‘1430129420’ post=‘212716’]

OK. Just create the app\addons\reward_points\schemas\exim\users.post.php file with the following content:


<br />
<?php<br />
<br />
function fn_exim_set_user_points($user_id, $amount)<br />
{<br />
$current_amount = fn_get_user_additional_data(POINTS, $user_id);<br />
<br />
$action = ($amount >= $current_amount) ? 'A' : 'S';<br />
$diff = $amount - $current_amount;<br />
<br />
fn_change_user_points(($action == 'A') ? abs($diff)  : -abs($diff), $user_id, __('import'), $action);<br />
}<br />
<br />
$schema['export_fields']['Reward points'] = array (<br />
	'linked' => false,<br />
	'process_get' => array('fn_get_user_additional_data', POINTS, '#key'),<br />
	'process_put' => array('fn_exim_set_user_points', '#key', '#this')<br />
);<br />
<br />
return $schema;<br />

```<br />
<br />
Then clear the cache and check the result.<br />
[/quote]<br />
<br />
THANK YOU SO MUCH! <img src="upload://7O47Vg5oKdRIES6TKXXFKIm5Kdf.png" class="bbc_emoticon" alt=":D"> I'll try it out as soon as I get a chance.

You are welcome! If any problem occurs, please let me know.

Hello.
This is a addon that allows export to file actual sum reward points user. This addon expands export users.

I hope it will be useful addon.

Regards
Robert Diak

Hello there..is this add-on still available? I am looking for a way to export our customers and have their reward points displayed in the exported file.

Hello there..is this add-on still available? I am looking for a way to export our customers and have their reward points displayed in the exported file.

Yes. You can download this addon from previews post.

Regards.

Robert.

Hello.
This is a addon that allows export to file actual sum reward points user. This addon expands export users.

I hope it will be useful addon.

Regards
Robert Diak

Will this addon work for older versions of CS-Cart (eg 2.xx)? -- (I didn't want to just try it in case it broke something on an older cart)
thanks

Hello Fishpaste.

This addon works only with version 4x.

Best regards

Robert.