Skip Navigation

[Resolved] Post relationship between Product (WooCommerce) and Events (Events Calendar Pro)

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

Problem:
Can I create a post relationship between WooCommerce Products and Events from Event tribes plugin?

Solution:
If those post types are public you can add any post type to a relationship:
head to the Toolset > Relationships and just create a new relationship with the desired Post Types.

This support ticket is created 6 years, 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by peterJ-3 6 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#871676

I want to allow the custom post type "Event" which is created by the plugin Events Calendar Pro to have a parent of custom post type "Product" which is created by WooCommerce.

I can see that if either of the post were created by Toolset Types then this would be simple top do in the admin through the "Post Types" interface. However, as neither of these are Toolset CPTs, no interface exists in order for me to achieve this.

Can you please assist? I am quite happy to declare the relationship in functions.php if there is a way to do it that way, although the ideal would be that there is a way to do this through the admin.

#872054

This is perfectly possible in the RC-2 release of Toolset.

You would head to the Toolset > Relationships and just create a new relationship with the desired Post Types.

I suggest to try this out on a staging site first, to see if it satisfies your requirements for the project.

#872117

Thank you. I've been quite excited about the new developments, however, we're under a lot of pressure to get this live this week and so I would be very scared to not be using a production release of the plugin.

Do you have a launch date for this functionality in the core?

Otherwise, are you aware of any workarounds in the meantime?

#872667

There are no workarounds in the meantime, as this would require some Custom Code and we do not allow to control other post types with Toolset unless you follow these steps:
https://toolset.com/faq/how-do-i-convert-existing-custom-types-and-fields-to-types-control/

I would not suggest that rather I would suggest to wait for the Production Release and make some tests first to be sure you can achieve the goal.

If you need to develop the Relationships, it is unlikely that within one week your project can go live.
You would still need to design all the templates, test the process, eventually add features.

Creating the relationships is probably one of the first steps.
After, you probably want to display that data, for which you need to create Views and templates.

I think, unless you have all this already finalized, you could build the site on RC versions on a staging site and update to Stable Releases as soon they are out - and ship out the project.

I have no fix ETA for a release, but we are in Quality Control phase, which is the last of a development cycle.

#872846

Thank you Beda,

That is all great advice which I have passed onto my client so that they may decide how we procede.

All the best, and have a wonderful day.

Regards,

Peter