• Resolved Masoud Mahdian

    (@arvandwp)


    hello.
    First of all, i apologize to my poor English.
    I created a separate user panel plugin from WooCommerce and i want to use WooCommerce pages in my plugin. I correctly added the order and download pages properly. But I have a problem adding the “My Address” and “Edit Address Form” page. The problem is that I do not know the correct way to add address pages (WC_Shortcode_My_Account -> edit_address methods) and have trouble saving address fields (shipping fields).
    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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Use edit address page in my user account plugin’ is closed to new replies.