Skip Navigation

[Resolved] multiple products & prices per listing

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

Assisted by: Minesh.

Author
Posts
#1586383

Good day.

I am trying to create multiple products per listing and therefore have prices.
My site will have multiple schools listed. Each school will have multiple courses and each course will have a corresponding price. I am able to achieve this using the repeatable field group however I am unable to search for repeatable groups. Please advise how this can be achieved.

Regards

#1586615

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean you want to build a custom search for the fields that are part of your repeating field group? If yes:
- This is how you can create a view for repeating field group:
=> https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

You can add the custom search (frontend) filters the same way as a normal custom search view.
=> https://toolset.com/documentation/user-guides/views/front-page-filters/

Please let me know if I misunderstood your query.

#1587443
ts.JPG

Hi Minesh,

When I create a search page and insert a search bar view it creates two a view with two parts. 1. View Search 2. view output.
I want to display my schools in the view output. Each school listed will have multiple courses and each course will have a price.
However, when I try to display repeatable fields in my output, it creates a separate view for every variation of the repeatable field.

Basically im trying to figure out how I can create multiple products with multiple prices under a single listing.

#1588387

Minesh
Supporter

Languages: English (English )

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

So, as I understand, you want to list your product as:

Product 1
- repeating field group, item 1
- repeating field group, item 2
- repeating field group, item 3
Product 2
- repeating field group, item 4
- repeating field group, item 5
- repeating field group, item 6
Product 3
- repeating field group, item 7
- repeating field group, item 8
- repeating field group, item 9

And you also want custom search to filter the results?

If you can share problem URL and access details I will have a better idea and please confirm what is your expected output?

*** 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.

#1592447

Minesh
Supporter

Languages: English (English )

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

Yes but unfortunately the access details you shared with me is not working at this end.

Can you please send me working access details as well as tell me:
- what is your Problem URL?
- What is your Expected output? (Maybe a screenshot or test case example will help)

*** 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.

#1593681

Minesh
Supporter

Languages: English (English )

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

I've created the following custom search view that query the intermediary post type and added price filter:
=> hidden link
[ You can add the as many filtres as you want to Search and Pagination Section]

And within the Loop Editor, I've added the following shortcode to display, price with related parent and child post:

 <li> Price: [types field='price-relationship' ][/types]  <br />
               Parent: [wpv-post-link item="@course-relationship.parent"] <br />
               Child: [wpv-post-link item="@course-relationship.child"] 
           </li>

I've created test page for you where I've added the above view I've created:
=> hidden link

As you can see there is a price field dropdown, as soon as you will select the price, it will filter the post and display the related parent and child posts.

You can adjust the filters as you want please refer to our custom search doc;
=> https://toolset.com/documentation/user-guides/views/front-page-filters/