• Resolved ryanbednar

    (@ryanbednar)


    While testing this plugin with Firefox and Safari, we discovered that the “notice” message does not display when the user clicks on the Add to Cart button from the SHOP or product category pages. If a user clicks on the Add to Cart button from the SHOP or product category page, the user is redirected to the appropriate product page, but the error/notice does not appear. If the user clicks the Add to Cart button from the single product page, the notice message DOES appear.

    I have disabled all plugins except for WooCommerce and the Product Dependencies plugin, using only the WooCommerce Storefront theme, and the problem persists in Safari and Firefox. I have tried clearing browser cache and the server cache (WP Engine), but nothing seems to work.

    Everything seems to work great in Google Chrome.

    Thanks in advance for any help.

Viewing 1 replies (of 1 total)
  • Plugin Author SomewhereWarm

    (@somewherewarm)

    Hey @ryanbednar — That’s because you have probably enabled AJAX add-to-cart in catalog pages: There’s no easy way to validate this add-to-cart action and return a message there. Customers will still see a notice in the cart, though — so checking out is still not possible.

    One way around this would be to disable AJAX add-to-cart for these specific products, but for some dependency types this would be possible only if the customer is logged in. Additionally, doing this for all products in an archive view could have performance implications in some cases.

    This is one of those cases where deciding upon the right “default behavior” is not easy. While we have no plans to change this behavior soon, you are welcome to discuss this under the GitHub repo of the plugin and maybe submit a proposed solution/PR if you end up working with a developer to build this for you.

    Cheers,
    Manos

Viewing 1 replies (of 1 total)
  • The topic ‘Notice not displaying in Safari/Firefox’ is closed to new replies.