Skip Navigation

[Résolu] Post relationship between Product (WooCommerce) and Events (Events Calendar Pro)

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 6 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par peterJ-3 Il y a 6 années et 6 mois.

Assisté par: Beda.

Auteur
Publications
#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