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 trialRyan Foote
14,435 PointsWooCommerce
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
Treehouse Guest TeacherMarc and Caroline, thanks for chiming in on this!
Ryan, did that solve the problem for you?
Caroline Hagan
12,612 PointsYes 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
Marc Falk
399 PointsAnother 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
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
14,435 PointsThanks for the input Caroline and Marc. I didn't realize you can create custom fields inside WooCommerce that easily.
Ryan Foote
14,435 PointsI 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.