Skip Navigation

[Resolved] Show Woocommerce product variations on category view

This support ticket is created 7 years, 3 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 7 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#562079

I have created a view with woocommerce views to show products, is there a way to show the variations (drop down) of a variable product next to the add to cart button instead of the default 'Select Options' button?

#562093
Screen Shot 2017-08-21 at 1.32.04 PM.png

Hi, could you show a screenshot of the View on your site?

How have you added the "Add to Cart" button to your View?

If you disable all other plugins except Toolset and WooCommerce, and activate a default theme like Twenty Seventeen, does the behavior change?

Here's a screenshot showing the default dropdown for a variable product Add to Cart button added to a View using this shortcode:

[wpv-woo-buy-or-select add_to_cart_text='Add to cart' link_to_product_text='Add to cart' group_add_to_cart_text='' external_add_to_cart_text='' show_quantity_in_button='no' show_variation_options='yes']

Nothing special needs to be done to display this as a dropdown, it's the default behavior. So I must be missing something in your setup. Any ideas?

#562095

Ok thanks, it didn't provide me with those arguments initially but fixed now thanks. Is it possible to make the variable add to cart button AJAX? the page is reloading in my case.

Cheers

#562119

There's an AJAX button implementation for normal products right now, but unfortunately not for variable products. It seems like a good idea though. If you'd like to submit this idea as a feature request, please create a separate ticket using the "I'd like to suggest an improvement" button at the bottom of the forums homepage. Add a description of the issue so we can submit that to our Views developer liaison for review. He will consider the request and let you know the next steps.