Best practice? Variable product add to cart on catalog page
-
Looking to generate a drop down based on product variations on my catalog page. I am using a plugin called MagicBox right now to augment my product loop with a few overlay features. I now want to add a “simple_variable_add_to_cart” shortcode to my layout.
I am hitting a wall because when I generate the HTML for the add to cart button using default built-in
woocommerce_after_single_product_summary()
it doesn’t correctly add products to the cart. The error is that you need to ‘select product options’, which doesn’t make any sense because the dropdown is being generated.In short, is there a
woocommerce_variable_simple_add_to_cart()
hook/function or will I need to write it by hand? I just want customers to be able to select variations from the catalog page and add to cart. Seems not that difficult. WTF. Help
- The topic ‘Best practice? Variable product add to cart on catalog page’ is closed to new replies.