Skip Navigation

[Résolu] Question.

This support ticket is created Il y a 5 années et 9 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.

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.

This topic contains 2 réponses, has 2 voix.

Last updated by jasonw-2 Il y a 5 années et 9 mois.

Auteur
Publications
#921897

Hi. Please forgive me for having a few questions lately but here's another.

What I'm trying to achieve is to be able to have cars that are for sale and cars that are for rent, but I only want the customer to have to list the car once and then check either one or the other boxes 'for sale', 'for rent' or a box where the car is both for sale and for rent, where the car can live in both places.

Can I do this with just the one 'cars' taxonomy? and then query the checked box to return either the ones for sale or the ones for rent? My guess is that I can and then make content template for each to where the car that is both for sale and for rent will show up in either search but with different content templates pulling only the different needed custom fields from the same exact 'cars' post.

I am just looking to understand if what I'm wanting to do can be achieved like I'm thinking it can. I don't have any specific code questions at this point. I just don't want to continue and then have to re-do my approach.

Thank you for any thoughts on this matter and have a great one!

JHW

#921957

Seen from the raw point of view yes, you can set up a Post type "Cars", a Taxonomy "Deal" (with terms "sell" and "rent") and then tag your cars with the proper terms.

Later, in a View that queries Cars, you can add a Custom Filter by that taxonomy and let the user (on the front end) choose what to display.
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

Styling the posts accordingly their deal, could be done with 2 different templates as you plan to, which you load conditionally with HTML Conditions:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

The quest is more how you actually plan to let the user pay/rent - will you use WooCommerce to to this, or do you have other plans?

In case you use WooCommerce, it may be easier to use their Inbuilt product classifications.

We offer some integration with WooCommerce:
https://toolset.com/reference-site/toolset-woocommerce/

#922080

Got it. Thank you very much. 🙂

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.