• Resolved Masoud Mahdian

    (@arvandwp)


    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)
  • Hello,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    Thread Starter Masoud Mahdian

    (@arvandwp)

    Thank you for your attention and guidance

    Thread Starter Masoud Mahdian

    (@arvandwp)

    Thank you for your previous answer.
    Another question I have is: now all pages and sections of WooCommerce can be edited well using “template override” and coding in the themes, we can in next woo updates to edit and add “My Account” pages outside of WooCommerce My Account by other plugins?

    • This reply was modified 3 years, 5 months ago by James Huff.
    • This reply was modified 3 years, 5 months ago by Masoud Mahdian.
    • This reply was modified 3 years, 5 months ago by Masoud Mahdian.
    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Thanks for getting back to us.

    we can in next woo updates to edit and add “My Account” pages outside of WooCommerce My Account by other plugins?

    Please open a new topic for this question, as we would like to discuss it separately, and leave this thread for your more development-oriented question open a little more to see if anyone is able to step in to help you out.

    Cheers.

    Thread Starter Masoud Mahdian

    (@arvandwp)

    thanks for your attension.

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.