woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output

Actually figured it out, it was due to the way I printed the data in the main function. Instead of simply outputting it, I placed it in a variable using ob_start and ob_get_clean. It’s all fixed and the code now becomes: //Display deposit choice and add to cart shortcode function add_product_display( $atts ) { $atts … Read more