• Hello all, it has recently been brought to my attention from some of my customers that they are no longer able to add variable products to their cart.

    When a variation is selected and the user hovers over the “Add to Cart” button, the mouse transforms into a red circle with a crossout line and a message is displayed: ‘Please select some product options before adding this product to your cart’.

    Variable products worked fine before and I think the new Woocommerce update is causing issues somehow. I do have plugins installed but nothing that should pertain in any way to the add to cart function or product variations.

    I have tried removing the product attributes and giving it new ones only to find the same error. The one way I have found to make a product function properly again is by going into its variations and selecting an option in the ‘Default form selection’ field.

    Unfortunately, there is no way to bulk edit that field so I would need to update that field for each of my 400 items if there is no solution. If anyone can help it would be greatly appreciated. If you need more info please just let me know.

    Here is a link to a product page on my site: http://oricacard.com/shop/valkyrie-brunhilde/

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    This issue has something to do with this javascript console error: http://cld.wthms.co/iLRw/5U9cZjqj

    Can’t tell what plugin/theme is causing that because of the cached files, but it shouldn’t be hard to find out.

    Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.

    Anonymous User 14900400

    (@anonymized-14900400)

    @princenothing how did you resolve the problem? having similar issues

    dipesh9897

    (@dipesh9897)

    how to remove this message in product page

    please select some product options before adding this product to your cart

    you go to \wp-content\plugins\woocommerce\includes\class-wc-frontend-scripts.php

    and search the “wc_get_template( ‘single-product/add-to-cart/variation.php’ );”

    and you replace

    //wc_get_template( ‘single-product/add-to-cart/variation.php’ );

    • This reply was modified 7 years ago by dipesh9897.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot Add Variable Products to Cart After Update’ is closed to new replies.