I've realised that calling this method sets my most recently saved address to null on my address list, which then doesn't display on the front end. It appears to still be in the backoffice but not showing on the website i'm creating
after calling this method circled in red, my recently saved address is set to null.
Make sure the freshly saved address, is also refreshed inside the cache.
EDIT:
I had the issue that when i called SaveBillToAddress/SaveShipToAddress, my address was deleted from the Database. This is because the customer in the cache is being saved again. When you use those 2 lines, it makes sure that the customer in the cache is being refreshed.
GetShipToAddress setting my recently saved address to null and not displaying on frontend
Hi,
I've realised that calling this method sets my most recently saved address to null on my address list, which then doesn't display on the front end. It appears to still be in the backoffice but not showing on the website i'm creating
after calling this method circled in red, my recently saved address is set to null.
any ideas why this is?
Hi Tolu,
I had the same problem yesterday, but found this solution.
In my case the user is allowed to create a new shipping address during checkout, and be able to select all their addresses and stuff.
When a user creates a new address, this is my code (i am using an ajax call to call this method):
these two lines:
Make sure the freshly saved address, is also refreshed inside the cache.
EDIT:
I had the issue that when i called SaveBillToAddress/SaveShipToAddress, my address was deleted from the Database. This is because the customer in the cache is being saved again. When you use those 2 lines, it makes sure that the customer in the cache is being refreshed.
hope this helps!
Puck
That worked like a charm, Thank you so much
Good to hear! And you're welcome
is working on a reply...