[Done v155a] Cannot change shipping/billing address from address book
I have been working on my test v1.5.5 site hoping to go live soon.
One problem I have found is that I can not change the address for billing and shipping by picking one in my address book.
The form insists on me filling out the form.
I am using the responsive classic template and it does the same with the green classic one.
Nothing in my log files.
I have addons: COWOA, giftwrap & Ultimate URLs.
My test site is password protected but I can take it off if someone wants to check the site.
Any ideas?
Re: Cannot change shipping/billing address from address book
Quote:
I have found is that I can not change the address for billing and shipping by picking one in my address book.
Are you meaning that when logged in as a customer that you can not change shipping address??
Re: Cannot change shipping/billing address from address book
Yes logged in as a customer. I can change it if I type it all in. I can change the radio button to the address in the address book but when I hit continue it has the fields red that i have not filled in.
I am running the test site without SSL would that affect it?
Re: Cannot change shipping/billing address from address book
Hmmm ... Looks like a bug.
The HTML5 form attributes for "required" fields are clashing with the use of the radio-buttons to choose pre-defined addresses using the same <form>.
I'm guessing it's probably best to split the form into two separate forms.
Re: Cannot change shipping/billing address from address book
Re: Cannot change shipping/billing address from address book
Yes it worked until I tried logging in as a new customer with no addresses in my address book.
Added a new shipping address OK but there are now 2 "continue" buttons at the bottom.
Only the top one works if there are not already some addresses.
The second "continue" button needs to only be visible if there are addresses in the address book. Or the default address is always in the address book.
Re: Cannot change shipping/billing address from address book
Fixed it (I think):
Changed:
Code:
<?php
}
if ($addresses_count > 1) {
?>
to:
Code:
<?php
}
if ($addresses_count > 0) {
?>
in tpl_checkout_shipping_address_default.php & tpl_checkout_payment_address_default.php
The default address now appears and all the "continue" buttons work how they should.
Re: Cannot change shipping/billing address from address book
Apologies for the delayed response.
The proper fix for the double-continue button is here: https://github.com/zencart/zencart/pull/904/files
Re: Cannot change shipping/billing address from address book
Thank you very much for the fix. I have replaced the 4 files and all is right now. I see that in version 1.5.5a there are more changes and fixes of 1.5.5.
How do we upgrade from 1.5.5. to 1.5.5a? The classic way or is it enough to replace the core files? What files have changed? Sorry but I didn't find that info in docs folder as I usually do. Best regards!
Re: Cannot change shipping/billing address from address book
Quote:
Originally Posted by
mario75
Thank you very much for the fix. I have replaced the 4 files and all is right now. I see that in version 1.5.5a there are more changes and fixes of 1.5.5.
How do we upgrade from 1.5.5. to 1.5.5a? The classic way or is it enough to replace the core files? What files have changed? Sorry but I didn't find that info in docs folder as I usually do. Best regards!
See the list of v155a changed files at: https://www.zen-cart.com/docs/changed_files-v1-5-5.html