Hi All:
I'm hoping that there is an easy way to automatically give customers shopping groups. Let me explain my use-case.
I will be offering shopper-group specific pricing for a product. The pricing will be:
Product A
-New Customer Attribute 1 Cost = 3
-Existing Customer Attribute 1 Cost = 2
-"student" customer attribute 1 cost = 1
The basic idea here is that pending on who the customer is, we will be giving them a different price. I have all of this working with the attribute pricing for shopper groups. But I'm hoping to automate the tasks a bit. Meaning, after a new customer's first successful checkout, they should automatically be moved to the existing customer group. For students, I rather expect a manual process (we will be checking for .edu email addresses).
Is there an easy built in way in redShop to move users between groups without admins having to edit the user account?
--
If this feature doesn't exist, any pointers on doing this manually is an acceptable solution. I've already looked at some of the controllers in redShop. What I'm thinking of doing is modifying the checkout.php controller and writing an SQL query to update the logged in user's shopper group ID. I could also detect their email address and update based on the .edu pattern.
If anyone has any tips on how best to do this with a core code hack (even though I'm aware it's not exactly an approved method!), I would be interested in that feedback as well. I'm comfortable with PHP / SQL / Joomla API t do this if necessary.
Thank you for the feedback!