Forum
Shop customer form and registration
Hi
On a Perch Shop site I'm working on, the client will be selling memberships to access certain areas of the site. It doesn't make sense for them to be able to register an account if they are not joining and paying, so I've replaced any calls to the register form to a join button instead (which takes them to the product to buy).
But I would like to collect additional info about the customer. I've added some additional fields to the customer_create template, for example...
<div class="form-group">
<perch:label for="dob">Date of birth</perch:label>
<perch:input class="form-control" type="text" id="dob" required="true" label="Date of Birth" placeholder="DD/MM/YY" />
<perch:error for="dob" type="required">Please add your date of birth</perch:error>
</div>
...along with a few others, but I've noticed this doesn't get stored along with the Members info.
Without the initial register form, am I unable to add any more information into their profile?
Diagnostics
Perch: 2.8.29, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_shop_orders (1.0.6), perch_shop_products (1.0.6), perch_shop (1.0.6), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', 'perch_shop', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Volumes/FFD Web Work/Euro Med/root/perch
PERCH_CORE: /Volumes/FFD Web Work/Euro Med/root/perch/core
PERCH_RESFILEPATH: /Volumes/FFD Web Work/Euro Med/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: euromed
DOCUMENT_ROOT: /Volumes/FFD Web Work/Euro Med/root
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
It doesn't get stored, or isn't being displayed?
It's not stored when I click on the Member in the Member app, or in the Invoice in Orders.
Just noticed this when logging in with debug on...
So again by stored do you mean displayed?
Have you added the fields to your
member.html
master template?I hadn't added the fields to the member.html template. So now I have;
in member.html
and this in customer_create.html
The fields show in members, but are empty
I am getting the following error on the success page;
I've checked the success.php page and there is no white space at the start of the file which normally causes headers already sent errors.
What's on
shop/success.php
at line 5?Just some meta data
Just removed everything so I just have the following on my success.php;
Which doesn't now error, but the DOB, College and Facebook fields are still empty
Hi Drew
I'm picking up on this from Friday.
I've currently got the following templates;
members/member.html
customer_create.html
success.php
The fields show in members, but are empty
Should the fields fill in from the customer_create form, or am I trying something that isn't possible?
EDIT: Adding the fields to the profile form and updating the fields on the members profile page works OK, its just the initial form when the customer is creating their account...
Hi Drew
I've tried adding perch_members to the form;
Still no joy. Do you have any suggestions I could try, as I'm running out of ideas to try...
Thanks Wayne