Skip Navigation

[Resolved] Filter view with variation post id

This support ticket is created 5 years, 11 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by jelle-jacobd 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1171719

Hi Luo,

Thanks. In the end I managed to get it working the way I want by passing 2 variables f.e.: hidden link

I'm not sure if this the correct way to work, but it works so guess it's oke. Please let me know I should do this differently.

The first one sets the parent product/post and the second one the correction variation. Now if you click on an SKUof a variation in the product table @ hidden link the datasheet page loads with the correct variation. Thanks so far. Now I only need to show formatted data instead of raw data. How should I do this?

[wpv-post-taxonomy type="pa_beam-angle"] f.e. doesn't work or shows nothing?

#1172099

As I mentioned above:
and there isn't such a built-in feature to display the attribute value in "product_variation" post, you might consider custom codes.

So it is expected result:
[wpv-post-taxonomy type="pa_beam-angle"] won't work in your case.

You will need to consider custom codes.

See my suggestion above:
https://toolset.com/forums/topic/filter-view-with-variation-post-id/#post-1169519
in the single "product_variation" post, there is a custom field "attribute_pa_color-housing", value is attribute's term slug, so you can use it to display it in the child view, for example:
[wpv-post-field name="attribute_pa_color-housing"]

#1172212

My issue is resolved now. Thank you!