• panda

    (@alejorostata)


    I tried using WC_Shortcode_My_Account::edit_account();, I was able to show the Edit the information, but upon saving, it’s just refreshing the page. Do I need another thing to make it work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @alejorostata,

    Please provide more information on this case. What are you aiming for? And where and how have you added the function call WC_Shortcode_My_Account::edit_account();?

    Thread Starter panda

    (@alejorostata)

    Hello!

    From the My-Account > Address, I don’t want to show the Billing and Shipping options. Instead, when I clicked the Address, the form for Billing should be displayed, I need the form directly.

    So what I did is override the my-address.php, then replace its content with:

    <?php
    defined( 'ABSPATH' ) || exit;
    echo WC_Shortcode_My_Account::edit_account('billing');
    ?>

    The form for billing is working and displayed, however, I wasn’t able to save the changes.

    • This reply was modified 4 years, 3 months ago by panda.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using WC_Shortcode_My_Account::edit_account(); information not saving’ is closed to new replies.