Skip Navigation

[Resolved] Fields from existing custom type of posts into WooCommerce

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to mix WooCommerce Products with Types custom fields

Solution:
Set up a posts custom fields group as normal and assign this group to the WooCommerce Product custom post type.

The edit screen for the custom fields group has a section "Where to Include These Fields" which can be used to specify that this group of fields is for use with Products.

To display the fields alongside products implies customising the product display using the WooCommerce Views add-on

Relevant Documentation:
https://toolset.com/documentation/user-guides/using-custom-fields/
https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/

This support ticket is created 7 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by tomaszB-4 7 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#405625

I have defined a new type of posts, which has several custom fields.
I use this to present my products on website.

Now I would like to start selling this products and I wonder if I can somehow connect its with WooCommerce.
Is there a way to connect fields from the other types of posts to the products in WooCommerce?

Or maybe the other way:
Can I add the price and add to cart button to my type of posts defined in Toolset?

#405699

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

You can't use WooCommerce for buying and selling other custom post types that the WooCommerce product post type.

Instead of creating a new post type with custom fields attached using Types you can add custom fields to WooCommerce products.

For background about adding custom fields see: https://toolset.com/documentation/user-guides/using-custom-fields/

When you create a group of custom post fields, on the edit screen you will see a section "Where to Include These Fields" which you can use to specify that this group of fields is for use with Products.

Assuming you want to display these fields alongside your products, you will probably want to customise the product display using the WooCommerce Views add-on. (https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/)

#405781

Thanks for fast and substantial reply! 🙂

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.