Skip Navigation

[Resolved] Outputting selected product variations after clicking a button

This support ticket is created 5 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 – 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by StanleyT8485 5 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#1247569

Tell us what you are trying to do? Output the selected product variations after clicking a button

Is there a similar example that we can see? hidden link

What is the link to your site?

#1248031

Hi Stanley,

Thank you for waiting.

I've performed some tests and noticed that the way WooCommerce saves product variations and the attached attributes, it is not possible to use a post view to show a search form with results only from the current single product's variation.

In a post view's filter, it is possible to add a taxonomy search filter for the available attributes ( screenshot: hidden link ), but that will cycle through all products and not just the variations of a specific product.

You're welcome to submit a feature request for this at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

For personalized assistance around complex custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

Note: If you'd like to show a form to select the available attributes and the add to cart button on a single product page, you can use the "wpv-woo-buy-options" shortcode:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-buy-options

regards,
Waqar

#1248771

My issue is resolved now. Thank you!