We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Custom fields for new perch shop customers
I know this is a subject already broached by others, but we are working on a Perch shop with Runway and we are trying to add a couple of extra fields to the shop registration process.
What has us a bit confused is that we are using a combination of shop and member functions with different results.
When a new customer registers they use the perch_shop_registration_form(); using the template customer_create.html
We've added two new fields: Phone Number, and Date of Birth, so:
<div class="row"> <div class="col-md-6"> <perch:input type="text" id="phone_number" required="true" label="Phone Number" placeholder="Phone number" /> <perch:error for="phone_number" type="required">Please add your phone number</perch:error> </div> <div class="col-md-6"> <perch:input type="text" id="date_of_birth" required="true" label="Date of Birth" placeholder="Date of birth" /> <perch:error for="date_of_birth" type="required">Please add your date of birth</perch:error> </div> </div>
We've also added these fields to member.html and customer.html. When filling out the registration form however these are not saved to the database.
We have also added these same fields to the profile.html template for updating the member created by the shop function, and when they are filled in here, they are saved and outputted to the control panel under the individual member.
Therefore we can see that any custom member fields added to the shop registration do not get saved. Is this a bug?
I saw a similar thread here:
So we can see this may be an issue others are having. If so is it a case of having to create a separate page with a separate submission to save any custom fields? This can work with some fields, but it looks odd with obvious ones like telephone / mobile number that people would expect at the initial registration.
Any clarity on this would be greatly appreciated!
Want to reply to this thread?Login with Perch