Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WooCommerce Theme Development Starting a Custom WooCommerce Theme Setting Up the Theme - Part 1

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,845 Points

Which are the core template files Zac talks about?

In this video Zac talks about starting to make custom theme but from one that is WooCommerce comparable out of the box.

"When building a WooCommerce theme, you should start with a theme that already has the necessary core files for a basic WordPress site."

But which files are those?

What do I need to do to make sure when I select which page WooCommerce needs to serve as the basket page to make sure that a basket/cart actually appears. Because I know that products are in fact being added to a basket behind the scenes. I just don't know why I can't see it on the screen.

wordpress custom

1 Answer

Jay Padzensky
Jay Padzensky
4,719 Points

Hey Jonathan,

I haven't taken the course, but often learning materials can be found in the "download" tab below the video. Are these project files not what you're looking for?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,845 Points

Hi Jay,

I've probably downloaded those files for the course itself but I';m doing a completely custom theme.

I got the impression I just had to work with WooCommerce short codes but going from the downloads for the final theme I need to copy the cart.php file and adapt it for my own theme?

That said, when I try it with the default themes the cart will appear. I just wish i could get a handle on what's going on. :(

Thanks for your reply :)