Use edit address page in my user account plugin
-
hello.
First of all, apologize to my poor English. I created a separate user panel plugin from WooCommerce and plan to use WooCommerce pages in my plugin. I did the plugin modification correctly for my plugin and added the order and download pages well. But I have a problem adding the "My Address" and "Edit Address Form" pages. The problem is that I do not know the correct way to add address pages (WC_Shortcode_My_Account -> edit_address methods) and had trouble saving address fields (submission fields). With thanks for your attention.
my code in my plugin functios (methods)
static public function woo_address() { if ( isset( $_REQUEST['edit-address-form'] ) ) { WC_Form_Handler::save_address(); if ( $_REQUEST['edit-address-form'] === 'billing' ) { WC_Shortcode_My_Account::edit_address(); } else { WC_Shortcode_My_Account::edit_address( 'shipping' ); } } else { WC_Shortcode_My_Account::edit_address( false ); } }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Use edit address page in my user account plugin’ is closed to new replies.