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

geoffrey
geoffrey
28,736 Points

Create a functional theme for Woocommerce.

Hi everyone,

I'm here to have your advices and hints for a job I was lately asked. Someone wants me to build a theme for an e-commerce website.

I've seen how to build a basic theme thanks the tutorials available here, but with Woocommerce, I have almost no idea on the way to tackle it. I know there 'll be a tutorial available here on Treehouse but I don't know when.

Have you got ressources to share ? I've looked on the web but till now I'vn't found many useful ressources.

3 Answers

Dan James
Dan James
2,709 Points

Hi Geoffrey,

I'm an Affiliated Woo Worker and have some experience with customising WooCommerce. I've just built a theme for an equestrian training website which includes a complicated WooCommerce implementation with access management and recurring subscriptions.

If you just need to use the off-the-shelf features of WooCommerce and its various extensions (of which you will probably need several as that's how Woo make their money), then it pretty much looks after itself - even down to its CSS styling. As long as the theme you're using, or the one you create if you're creating a custom one, has a sensible structure and the common theme features, then you shouldn't have any trouble. If you do need to customise WooCommerce, it's mostly straightforward; you copy the PHP files you want to override into your own theme's directory and your customised file will be used in preference to the WooCommerce core one. The link Jason provided above will tell you how to do this.

For the site I've just finished, I think I had to customise around 12-15 WooCommerce files, but that was mostly to tweak the layout and change some terms where Woo haven't provided filters. Oh, that reminds me - before you dive in to hacking the WooCommerce files to bits, make sure you read the WooCommerce reference to their hooks and filters, as it's likely there's something in there which will help you and mean you only have to add something to your theme functions.php, rather than doing the messy overriding. It's a long list, so use your browser's find function to search for what you want:

WC Hooks and Filters Reference

WooCommerce is a complicated beast! It's definitely worth learning how to customise it as WooCommerce developers seem to be in demand at the moment.

Good luck!

jason chan
jason chan
31,009 Points

You can learn about woocommerce templatating from the documentation. http://docs.woothemes.com/documentation/plugins/woocommerce/

http://teamtreehouse.com/library/woocommerce-theme-development/upcoming

It's coming in september so hold your horses! It's coming!!!!!!!!!

geoffrey
geoffrey
28,736 Points

Thank you to both of your for your enlightenments. I honestly don't have that much experience with wordpress and woocommerce, I've lately started to learn it as I have indeed some people who asked me to give some help with these ones.

It's very powerful and help people to build projet in no time. Really powerful, but what I dislike a little bit at the moment is the fact that (at least for me till now) you spend most of the time editing files of existing time. You don't have really the feeling you are coding.

I guess that kind of project, could be an opportunity to learn something else, and to really code...