Forum
Customer address not being stored or passed to PayPal
Hi,
I'm just running through a load of tests to ensure my checkout procedure is ok, but I've noticed that my customer address is no longer being saved.
I've removed any edits I had made to customer_create_passwordless.html
but the issue persists.
I'm unsure what exactly I've done to break this and would appreciate a pointer in the correct direction.
Regards, Chris
Summary information
Perch: 3.0.13, PHP: 7.1.13, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.13), assets (3.0.13), categories (3.0.13), perch_blog (5.6.1), perch_forms (1.10), perch_shop_orders (1.2.5), perch_shop_products (1.2.5), perch_shop (1.2.5), perch_members (1.6.2), pipit_catalog (1.1.0)
App runtimes: <?php $apps_list = [ 'content', 'categories', 'perch_blog', 'perch_forms', 'perch_members', 'perch_shop', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /homepages/21/d688763965/htdocs/utt/perch
PERCH_CORE: /homepages/21/d688763965/htdocs/utt/perch/core
PERCH_RESFILEPATH: /homepages/21/d688763965/htdocs/utt/perch/resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 64M, Memory: 256M, Total max file upload: 64M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: www.***.org.uk
DOCUMENT_ROOT: /kunden/homepages/21/d688763965/htdocs/utt
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
We're going to need to know more about your checkout, such as seeing the code.
Sure.
From the cart I go to a page with this little bit of code, which then redirects to PayPal:
What's changed since it was working?
I wish I knew, Drew. Perhaps a lesson in using source control.
I've looked through everything that I've changed since Friday, when I believe it was working, but I'm just not seeing what it could be.
Is there anywhere in particular I should be/could be looking?
Apologies for the vague rubbishness.
This is part of the debug output from the PayPal payment complete page, does it shed any light on the issue:
Can you create a member successfully?
Yes, an order will create a member and I can manually create a member via Perch Admin. There are no fields for Address details, though.
The form uses this template:
/addons/apps/perch_members/templates/members/member.html
Right, the address is stored as part of the customer record in the shop. You want to use the
shop/checkout/customer_create.html
template.Which form function are you using? Have you tried following the examples in the docs?
I followed the passwordless example in the docs, I'm using:
Ok, so where are you using
templates/members/member.html
?Oh, apologies for the confusion, I'm not using it, it's the form used on the Perch Admin Members page.
I was just wondering if the address should show on that template, as it doesn't on mine.
No, it shouldn't. The Members app is used for authentication accounts. Any information about the customer is stored against a Customer object in the Shop app.
I actually believe I fixed this by deleting and re-adding the perch folder and running setup again. Then adding my templates back in.