Current Woocommerce version under our usage is 2.5.5 I am using following shortcode inside my edit account page.
[woocommerce_edit_account]
But, my page shows home page instead of edit account page. Is some thing new now ?
Current Woocommerce version under our usage is 2.5.5 I am using following shortcode inside my edit account page.
[woocommerce_edit_account]
But, my page shows home page instead of edit account page. Is some thing new now ?
Comments are closed.
They don’t work anymore, they’re only for Woocommerce 2.1 or less. They have been replaced with endpoints, so you would need to do something like this:
If the first line is too long try with this:
You can read more information about endpoints at: https://docs.woothemes.com/document/woocommerce-endpoints-2-1/
You can use instead the native WooCommerce function wc_customer_edit_account_url().
(It’s used in woocommerce
my_account.php
template too).As Skatox mention it,
[woocommerce_edit_account]
doesn’t work anymore.You can use it with a custom self closing shortcode:
Use:
[wc_customer_edit_account text="Editing my account details" /]
On my site (with WooCommerce 3.6.5) this is the code that worked for me:
Instead of editing the function.php or even adding a child theme, I pasted it in a New Snippet using the Snippets plugin.