woo-address-book icon indicating copy to clipboard operation
woo-address-book copied to clipboard

prevent to add new

Open 1ucay opened this issue 1 year ago • 0 comments
trafficstars

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

1ucay avatar Aug 17 '24 10:08 1ucay