• If the add to cart form throws an error, the fly cart still opens.

    Additionally, If using WPC AJAX Add to Cart, the product is added (which it shouldn’t be) and the fly cart opens. If not using ajax, the fly cart opens but there is (correctly) no product. But the fly cart shouldn’t open if there are errors.

    In my case I am using https://www.ads-software.com/plugins/flexible-product-fields/ to add a required field to the add to cart form of a particular product. If this field is not filled out, it prevents the product from being added to the cart. This works as expected without this plugin.

    This plugin should check if there are errors when the add to cart form is submitted, and not open the fly cart if there are.

  • The topic ‘Does not work when add to cart form has errors’ is closed to new replies.