[Resolved] Relationship post type with woocommerce product: configure column to be display
This support ticket is created 4 years, 9 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello, I have created a new relationship post type with the woocommerce product data.
I have Course post type, which will have many products data which I created using woocommerce plugin. So to achieve this, I create 1 to many relationship between those data. And now I'm able to select the product from the Course post type like on the 1st screenshot.
And my issue is I cannot configure the column to be displayed from the Product (see the 2nd screenshot).
I want to display the not only the name of the product, but also want to display SKU, price and the status of the product (active or disable)
I've performed some tests and here are my findings.
When you'll visit your course's edit screen, you'll see a cogwheel sign in the post-relationship section, which will show you popup/modal to select the columns from fields:
( screenshot: hidden link )
At the moment, it is possible to include only columns for these WooCommerce fields:
( screenshot: hidden link )
- WooCommerce Product Price
- Product On Sale Status
- Product In Stock Status
That cogwheel selection only supports Toolset Types fields and not the WooCommerce's native product fields.
A workaround can be to add duplicate fields for SKU, price and the status of the product, etc, using Toolset Types plugin and then show their columns in the post-relationship section.