I’ve been trying unsuccessfully to add a new customer attribute called “group_code” which I can have a new user enter at registration, and will assign the user to a specific store.
I’ve gotten as far as adding the attribute to the eav_attribute table:
5 1 groupcode NULL NULL varchar text Special Access Code validate-accesscode
I’ve also added the following code to /app/design/frontend/MYTEMPLATE/default/template/customer/form/register.phtml:
<label for="coupon_code">Special Access Code (if applicable) </label><br/>
<input type="text" name="groupcode" id="groupcode" value="" title="Access Code" class="validate-accesscode required-entry input-text" />
I’m not sure what to do next, or if there is an easier way to assign a user to a store automatically based on the entry of a specific code?
Thanks in advance for any help you might be able to give.