Skip Navigation

[Resolved] Extending Woocommerce Product Categories to a CPT

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 5 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1177106

I have Woocommerce installed (with Products added) and I also have a CPT called Videos.

I have created a many-to-many relationship between Products and Videos

I would like to use the Product taxonomy "Categories" and add that same taxonomy to the Videos CPTs.

However, I am not seeing how I can manage the Product Categories. Whsn I click on TOOLSET >> Taxonomies, I can see Categories, but these categories are for Posts.

Where can I manage the Woocommerce Categories assignment?

#1177117
taxonomies.png

See the screenshot for a better explanation

#1177122

Hi, unfortunately that's not possible in the Toolset backend because the Product Category taxonomy is privately managed by WooCommerce. Toolset can't modify the assignment of that taxonomy directly, but you might be able to accomplish it with custom code:
https://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type
https://toolset.com/forums/topic/add-product-category-to-custom-post-type/#post-467531

On the other hand, you could certainly create a different custom taxonomy with Toolset and assign it to both Products and Videos.

#1177123

I guess you were posting a reply as I was adding my image. OK, I understand the limitations.

However, I am fearful of adding a custom Taxonomy and assigning it to both Products and Videos.

Are there any drawbacks to doing this? Will I lose any inherent Woocommerce functionality at all? I can't think of any... but I want to be sure.

#1177134

I'm not aware of any functionality losses resulting from adding a custom taxonomy and associating its terms with Products. However the new custom taxonomy may not be integrated with WooCommerce as fully as its own native taxonomies. I can't say for sure if there are WC features that can only be achieved with its own taxonomy and terms, that's more of a question for WooCommerce.