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

Ryan Foote
Ryan Foote
14,435 Points

WooCommerce

I watched the newly released Treehouse video on how to build an e-commerce site with Wordpress & WooCommerce and it taught me a few things I didn't know already. Great work by Zac.

My question revolves around how to go about adding additional product fields (ie. SKU, Price, Weight) to each product. I'm looking to have an input for things like Power, Input & Output Voltage. I know you can add custom fields to posts, can you do the same with a WooCommerce product page? Or is this something I should use the product attributes section in WooCommerce for?

Thanks for any suggestions or help.

6 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Marc and Caroline, thanks for chiming in on this!

Ryan, did that solve the problem for you?

Caroline Hagan
Caroline Hagan
12,612 Points

Yes it is possible Ryan - I've just had to do the same thing for a recent website I built using WooCommerce:

http://www.suprabeam-professional.com/shop/

Just use the custom fields to apply what extras you would like to utilise.

Better yet, you can use a plugin to manage the fields, such as Just Custom Fields

Another plugin for managing custom fields is Advanced Custom Fields (it's free). It is by far the most useful plugin for Wordpress I've stumbled upon (together with Yoast's SEO plugin). I have not used it with WooCommerce yet but you could check it out.

Caroline Hagan
Caroline Hagan
12,612 Points

+1 @Marc - I use that one a lot, especially with the (paid for) repeater add-on - invaluable to my business!

Personally I would happily for pay for that plugin, as he puts so much in it, for well, no return besides the add-ons!

Ryan Foote
Ryan Foote
14,435 Points

Thanks for the input Caroline and Marc. I didn't realize you can create custom fields inside WooCommerce that easily.

Ryan Foote
Ryan Foote
14,435 Points

I got a chance to test this out and it works great. I ended up trying Advanced Custom Fields because I've heard of it before and I'm currently reading through the documentation.

Thanks again for the help.