Skip Navigation

[Resolved] Display View Of Quotation And Product in one loop

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to filter his view by a product ID.

Solution:

This can be done by adding a query filter for the post id to you view and then set that view to be filtered by a shortcode parameter.

Then you can just pass the id into the view like this.

[wpv-view name='My View' product_id='12345']

This support ticket is created 6 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.

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 1 reply, has 2 voices.

Last updated by Shane 6 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#632254
quote.PNG
quote1.PNG

Hi there...

I've made a new post type named as quotation... and I've made a form that contain quote id, buyer name, supplier name, product id, product name and ordered quantity...

The quote.png shows the product displayed in the modal and displayed product details.... buyer, supplier and product id will automatic filled in the form... just need to insert order quantity then submit....

When they submit, the quotation have published.... The quote1.png shows the one of example of quotation... the number at the middle is a product id....

So, I want to display product details based on the product id.... Any suggestion how to display it?

Thanks...

#Note : Product and Quotation is a different post type.

#633056

Shane
Supporter

Languages: English (English )

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

Hi Jack,

Thank you for contacting our support forum.

Are you currently using a shortcode to display the product ID on the quote ?

If so then you can create a view that displays product and add a query filter for that view. The query filter should be for the product id and then set it to be filtered by a shorcode parameter.

Thanks,
Shane