Viewing 1 replies (of 1 total)
  • Yeah it breaks JSON responses. I hacked this by adding this to includes/functions.php to fix it for the theme I’m using (Shoptimizer):

    if (!isset($_GET['wc-ajax']) && (!isset($_POST['action']) || $_POST['action'] != 'shoptimizer_pdp_ajax_atc')) {
       add_action('woocommerce_add_to_cart', array($this, 'snap_pixel_code_add_to_cart'), 10, 6);
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Add to cart Ajax response is not working, image explain’ is closed to new replies.