Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Ecommerce with WordPress and WooCommerce Running an Ecommerce Site Long Term Bonus Video - How to Begin Customizing WooCommerce Template Files

how to call and display the woocommerce login form on my index.php page

Wanted to know how can you can display awoocommerce template on another template in your theme root. Do you use the same get_template part()? or the woocommerce_get_template_part()?Lets say i want to display the user login form on my home page how do l do this? Zac Gordon

2 Answers

Sue Dough
Sue Dough
35,800 Points

Just use the shortcode [[[woocommerce_my_account]]] or echo the shortcode into the template.

Is won't that display both the registration form and the login form? I am working with a design and wanted to customise it all abit further. Moreover like how did it get a gif to work in your display picture ghost code

l have added the short code but it wont display my registration or login form on there. any ideas?

Sue Dough
Sue Dough
35,800 Points

Sorry I don't know where I found that short code. Way too much coffee. You may need another plugin.

There is a lot of login/register plugins.

https://wordpress.org/plugins/zm-ajax-login-register/ https://wordpress.org/plugins/login-sidebar-widget/

Is that possible to connect this login plugin with woo commerce so wen people login they get to the woo commerce my account page.

Sue Dough
Sue Dough
35,800 Points

A lot of login plugins have a setting where to redirect the user after logging in/registering . You just need to look around and test some plugins and see what works for you.