Skip Navigation

[Resolved] Display Related products in Single Product page as per custom field value

This support ticket is created 3 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by manishB-2 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1764205

Hi Support team,
I am trying to display a Suggestion Posts (Products) below the single product page content and these suggested products should display only in the color (Custom field) that is for a current product. But I am not sure how I can filter the results in the suggestions products view to display the products in the Same color.

For example. I viewed a product in its page and its color is Red, So below the Product contents, I wanna add another Toolset view that can display all other available products in the same Red color. So if in Database, there are other products in Red from different Categories then those products should be displayed in the Single Product page.

Please watch the video I am attaching URL here.
hidden link

I need help very soon.

#1764369

Shane
Supporter

Languages: English (English )

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

Hi Manish,

Thank you for such a detailed explanation of the issue.

Actually where you have the filter for the Color saying Shortcode Attribute, you can actually type in an attribute that you want to use in your view shortcode to filter for the color.

Lets say you put "color" in that space, then you can filter your view by the color shortcode attribute.
Example

[wpv-view name='my-view' color="[types field='color-field-slug'][/types]"]

Please try this and let me know if this helps.
Thanks,
Shane

#1766801

My issue is resolved now. Thank you so much Shane.

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