=== AddWeb Woo Multi-address === Contributors: addweb-solution-pvt-ltd Tags: woocommerce, multiple addresses, billing address, shipping address, checkout Requires at least: 6.5 Tested up to: 7.2 Requires PHP: 7.4 Requires Plugins: woocommerce Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.txt Manage and use multiple billing and shipping addresses in WooCommerce — with full support for classic, Elementor, and block-based checkouts. == Description == **AddWeb Woo Multi-address** empowers WooCommerce stores by letting customers manage multiple billing and shipping addresses from their account and easily select them during checkout. Whether your store uses the classic checkout, Elementor-based templates, or the WooCommerce Checkout block, this plugin ensures a seamless experience. It is built on WooCommerce's official checkout APIs and supports High-Performance Order Storage (HPOS). == Features == ✅ **Manage Multiple Addresses from My Account** Customers can add, edit, or delete multiple billing and shipping addresses from their "My Account → Addresses" area, and set default ones for faster checkout. The address form uses WooCommerce's own address fields, so labels, required fields and state lists follow each country's rules. ✅ **Saved Addresses at Checkout** A "Saved addresses" field at the top of the billing and shipping forms lets customers pick one of their addresses; the form is filled in instantly. The default address is pre-selected. New addresses entered at checkout are added to the customer's address book automatically. ✅ **Address Display in Order Details** The address book entries used for an order are shown on the admin order screen. ✅ **Admin Address List and CSV Export** Store administrators and shop managers can search, sort, delete and export all customer addresses from the "Addresses" admin page. ✅ **Supports All WooCommerce Checkout Methods** - Classic WooCommerce checkout - Elementor-powered checkout pages - WooCommerce Checkout block (WooCommerce 8.9 or later for the "Saved addresses" field) - Block-based WordPress themes == Installation == 1. Upload the plugin folder to the `/wp-content/plugins/` directory or install it directly from the WordPress plugin dashboard. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Make sure WooCommerce is installed and activated. 4. Customers will now see a new multi-address management area under **My Account → Addresses**. Existing customers' WooCommerce billing and shipping addresses are imported automatically in the background. == Frequently Asked Questions == = Does this plugin work with custom checkout pages? = Yes! It supports Elementor-based and block-based checkout pages in addition to the default WooCommerce checkout. If a custom page is not detected as a checkout page, developers can load the plugin's checkout script with the `addwwomu_load_frontend_assets` filter. = Which WooCommerce versions are supported? = WooCommerce 7.2 or later. The "Saved addresses" field on the Checkout block requires WooCommerce 8.9 or later; on older versions the Checkout block uses the customer's default address, and the classic checkout and My Account address book work fully. = What happens to saved addresses if I deactivate the plugin? = Nothing is deleted. Each customer's default addresses are copied back to WooCommerce, and the address book is kept. Saved addresses are only removed when you delete the plugin. = Will it affect performance or the checkout process? = No. Its scripts only load on My Account and checkout pages, and it falls back to default WooCommerce behavior when not in use. = Can I customize the address fields or behavior? = Yes. The plugin is built with hooks and filters so developers can extend or modify functionality, for example `addwwomu_save_checkout_addresses` (save new checkout addresses to the address book, default on) and `addwwomu_link_guest_orders_on_registration` (link past guest orders to a newly registered customer, default off). == Screenshots == 1. **Add New Address Button** – When clicked, a form appears to enter a new address. 2. **Add Address Form** – A detailed form to add a new address with all required fields. 3. **Manage Addresses Table** – View all added addresses in a searchable, paginated table with edit/delete actions. 4. **Address Dropdowns at Checkout** – Saved address selectors for both billing and shipping addresses at checkout. 5. **Auto-Fill Shipping Address** – When a shipping address is selected, it auto-fills the shipping fields. 6. **Auto-Fill Billing Address** – When a billing address is selected, it auto-fills the billing fields. 7. **Address in Order Details** – The selected billing and shipping addresses are displayed in the order details. == Changelog == = 1.1.0 = * Compatibility: Tested with WordPress 7.2 and WooCommerce 11. Requires WordPress 6.5+, PHP 7.4+ and WooCommerce 7.2+. * Compatibility: Full support for WooCommerce High-Performance Order Storage (HPOS) and the Cart & Checkout blocks. * Improvement: Rebuilt on WooCommerce's official checkout APIs. On the Checkout block (WooCommerce 8.9+) a "Saved addresses" field appears in the billing and shipping forms and fills the address instantly. * Improvement: The My Account address form uses WooCommerce's own address fields, so labels and required fields follow each country's rules. * Improvement: Scripts load only on My Account and checkout pages. * Improvement: All text is translation-ready. * Security: Address CSV export is now limited to administrators and shop managers. * Security: Customers can only use and manage their own saved addresses at checkout and in My Account. * Security: Removed an unprotected address import endpoint and an unused data endpoint. * Fix: Deactivating the plugin no longer deletes saved addresses (data is removed only when the plugin is deleted). * Fix: Postcodes with letters and international phone numbers can now be saved. * Fix: Possible fatal error on the block checkout. * Fix: Setting or deleting a default address now keeps the customer's WooCommerce default address in sync. * Fix: Duplicate address book entries are no longer created at checkout. * Fix: Admin single and bulk delete of addresses. * Fix: The initial import now covers all customers, without duplicates. * New: Export CSV button on the Customer Addresses admin page. * New: Addresses entered at the classic checkout are also saved to the address book. * Change: Linking past guest orders to newly registered customers is now opt-in (filter: addwwomu_link_guest_orders_on_registration). = 1.0.0 = * Initial release with multi-address management, checkout dropdown selection, and order display support. == Upgrade Notice == = 1.1.0 = Security and compatibility update for WordPress 7.2, PHP 8.4+ and WooCommerce HPOS, rebuilt on WooCommerce's official checkout APIs. Saved addresses are no longer deleted when the plugin is deactivated. == License == This plugin is licensed under the GPL v2 or later. See https://www.gnu.org/licenses/gpl-2.0.txt