Hello @rebusify ,
Are you trying to put your my account shortcode directly on the template file?
WordPress has a function to allow shortcodes on the template file. You have to use the shortcode like this –
echo do_shortcode( '[woocommerce_my_account]' );
You can learn more about this function here – https://developer.ww.wp.xz.cn/reference/functions/do_shortcode/
It is recommended that you select the correct page with the shortcode as your my-account page in wp-admin > WooCommerce > Settings > Advanced menu.
Thank you 🙂
No, it’s not a template file. This is a custom plugin with a custom page that while it does reside within my wordpress site, it’s not pulling all the necessary details to generate the WooCommerce my account area. I guess what I’m looking for is how to pull those details to show the my account area. Thank you for your reply.
Hello @rebusify ,
I am afraid the requirements require more debugging and understanding of how your custom plugin is working.
If you are the developer of the plugin you can take a look at how the my-account shortcode is generating its content here – https://github.com/woocommerce/woocommerce/blob/master/includes/shortcodes/class-wc-shortcode-my-account.php
If you are using a plugin from another developer, you need to contact the developer to get their suggestion on how can you connect their plugin and WooCommerce functionality.
As you can see, 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. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
If you need a paid solution, you can consider taking help from one of our partner’s website.
Thank you 🙂
Hi there,
We’ve not heard back from you in a while, so I’m marking this thread as resolved.
Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
Thank you 🙂