Skip Navigation

[Closed] Create post listing that has multiple products and a price for each product

This support ticket is created 4 years, 7 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.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 4 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1587551

Hi,

Can you please let me know how I can create multiple products under a listing and also have a separate price for each listing?

For example, in your example for gyms, how would you go about adding different prices to the different classes that the gym offers?

#1588041

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

With the Gyms and Trainers reference site we offer, we created many-to-many relationships between post types "Gyms" and "Personal Trainers".

When you create many-to-many relationship, it will create a intermediary post type that seat between the two post types between which you will create a many-to-many post-relationship. To this intermediary post type, you can add custom fields.

Please check the following Doc where we added the example for songs and albums.
=> https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/#relationship-fields-in-many-to-many-relations

Have you created many-to-many post-relationship with your post types? If you can elaborate more with your current structure and what exactly you want to display as a result I will be in a better situation to guide you in the right direction. Maybe a few screenshots will help as well.

#1588119
2.JPG
1.JPG

Hi Minesh,

Thanks for your reply.

My site has a custom post type where I list different diving school. Each diving school offers multiple courses (Class IV, Class III, Class etc) and each one of these courses has a different price.
I have a search page where all the dive schools displayed below the search bar (Image, location, courses & their prices) and the user can filter the dive schools. I created multiple courses and prices on the dive school posts by using the repeatable field option (See screenshot 1). However, I am unable to display the repeatable field option because that would required a view field within a view field which is not supported.

I am just trying to find the easiest pay to display multiple courses and prices per listing which is searchable and can be displayed.

#1588141

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

First thing, you can not search by the fields of repeating field group.

As nested views are not supported yet with the blocks, what I suggest is:
- Create a view using legacy view to display information from your repeating field group:
=> https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

And once you create the view, what if you try to add "Fields and Text" block within your original block that displays the information of diving school and add the view you just created to "Fields and Text" block.

#1589031
2.2.JPG
1.5.JPG
1.3.JPG
1.1.JPG

Hi,

I have added the "fields and text" block to my search page block and added my "Courses and prices" view to the "fields and text" block.

#1589599

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please send me a problem URL where you added the view and temporary admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Create post listing that has multiple products and a price for each product’ is closed to new replies.