Virtuemart login redirection needed:
If the user is in shopper_group_id=5 (default)
They see a form that if they wanted to join loyalty program for discount? Yes / No
If yes, they see a form that they fill in, and the system puts them automaticly in shopper_group_id=6
(thats made with CK forms, and a custom PHP which makes them shopper group 6 - thats already done )
The issue is, that they need a unique "Loyalty id" starting from given number and ascending - this should be inculeded in the form they sent, and should be assigned to the user in a given virtuemart table (vm_torzsvasarlo2 )
If the user is already in Loyalty program, they just simply gets redirected to the shop, because they already filled in the form )
So the user logs in, if he is not shopper_group_id6, they see the choose form (want to join? yes / no ) if yes they see the form, they fill it in, and the php makes the given string: sends the unique id (simply ascending number) in the email, and puts it in the custom table for virtuemart user.
Next time he logs in, dont see the form, just get redirected to the shop.
How to solve:
mod_login - redirection if function: if shopper group id 5 - redirect to form - if shopper group id 6 redirect to shop.
com_ckforms: forms has an ID - that can be the unique number - display form id in sent mail
custom php: add form id to virtuemart user table vm_torzsvasarlo2
Maybe it seems complicated, it's not. Quite urgent, immediate start would be nice.
11 freelancers are bidding on average $197 for this job
HI , i am representing we4traders team. we have expertise in joomla , virtumart , PHP we can handle this work perfectly . You can try with us . Looking forward for a good business relationship .