You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to do?
I would allow registered users to edit/delete addresses but I prefer to use the UID field in the querystring param rather than ID to hide the total of addresses that exists in the db table. Like: /addresses?id=123123ba-12fc-123f-12e1-12c1c12e1234 instead of /addresses?id=4
This is already available for customer's user and order but not for addresses.
This discussion was converted from issue #1875 on July 21, 2021 15:07.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What are you trying to do?
I would allow registered users to edit/delete addresses but I prefer to use the UID field in the querystring param rather than ID to hide the total of addresses that exists in the db table. Like:
/addresses?id=123123ba-12fc-123f-12e1-12c1c12e1234
instead of/addresses?id=4
This is already available for customer's user and order but not for addresses.
A method to retrieve a customer's address by UID could also be useful, like
getAddressByUid
https://github.com/craftcms/commerce/blob/develop/src/models/Customer.php#L157
Beta Was this translation helpful? Give feedback.
All reactions