Forum
Perch Shop Shipping Address Default
I understand that if you leave the shipping address form out of the customer_create_passwordless
template then the shipping address will default to the billing address, but is it not possible to include the shipping form and for the customer to only complete it if the shipping address is different.
You'd use the billing address form and change the labelling.
But I'd be using the billing address form for the billing address?
Ok, then yes, you can do that.
If I use the billing address and shipping address inputs in the customer_create_passwordless template and then test with perch_shop_addresses_set whilst leaving the shipping fields blank, the form doesnt submit.
Please post your template and Diagnostics Report if you are experiencing a problem.
Diagnostics:
Template:
Are you leading the shipping address blank? I've no clear picture of what you're trying to do.
Yes, I want the user to leave the shipping address blank, unless it differs from the billing address.
Then if the shipping address is blank, for the Billing address to be used as the shipping address.
Ok. If that's not working, the solution might be to fill the shipping address with the same details as the billing address.
I'm using some js to duplicate the fields for now, but I think it's an added layer of friction that doesn't need to be there.
Or even a
perch_shop_shipping_addresses_set()
function would be useful here instead.So you having it working?
Yes, but not how we would like – it's only working by filling in the Shipping Address details.
I think that's what we can do currently.