Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent to add new #157

Open
1ucay opened this issue Aug 17, 2024 · 0 comments
Open

prevent to add new #157

1ucay opened this issue Aug 17, 2024 · 0 comments

Comments

@1ucay
Copy link

1ucay commented Aug 17, 2024

Hi, It would be good to prevent save to db, if limit_saved_addresses exceed.
Now there is no "Add new" in select, but if you populated POST data, it will be saved.
So in functions

  1. ajax_checkout_update
  2. woocommerce_checkout_update_customer_data

there should be condition limit_saved_addresses as well.

Also it would be nice to have apply_filters( 'limit_saved_addresses', or something logic for prevent users save new address at all. We are importing address to database and our ecommerce dont allowed edit custom address ( we have b2b customers ).

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant