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?
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?
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
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.