Skip Navigation

[Resolved] Setting relationship in "quick add" screen

This support ticket is created 4 years, 4 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by jacoboG-2 4 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1779979
strains-prices-suppliers.png

Hi!

The idea for the project is to have each 1 Strain (plant) linked to N Prices. Each Price is from a different Supplier.
- I have created the following CPTs: Strain , Supplier, Price.
- I have created the following Relationships: Strains-Prices(1:N), Suppliers-Prices(1:N).

Ideally we would be able to set a new Price (with all its info) when adding a new Strain.

I can do this and the Strains-Prices relationship is set ok, BUT I can't set which Supplier the price belongs to from that screen as there isn't a field showing to select the Supplier (no dropdown/whatever to set that second relationship).

Is there any way to activate this or a different approach that allows for that so that the admin can add all the info from a single screen?

Thanks!

#1780117

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacob,

Thank you for getting in touch.

Given that this is a relationship between 3 different post types it won't be possible to connect the Supplier to a Price from the Strains CPT.

Types only handles direct relationships when doing a one to many. If it were a Many to Many you would've had the option to add a Price intermediary CPT where you can add the price as a custom field.

However given that it is a 1-M it would need to be done from the Suppliers side. I hope this clarifies your issue for you.

Thanks,
Shane

#1780311

Hey Shane!

Thanks a lot for the answer. It's a shame, as it would have really speed up the data input process. Hope you guys can implement that in the future.

Meanwhile, is it too bad of an idea to create a N:M relationship with a Price intermediary CPT even when I only plan to use it as 1:N? I don't know the implications performance wise or other problems we could face.

Thanks a ton!

#1780505

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacob,

Meanwhile, is it too bad of an idea to create a N:M relationship with a Price intermediary CPT even when I only plan to use it as 1:N? I

I wouldn't advise switching to a Many to Many relationship unless you will be actually designing a many to many type setup because the relationship is different and how it is handled with views is also different and a bit more complex.

Hope I was able to clear this up for you.

Thanks,
Shane

#1780949

My issue is resolved now. Thank you!