/** Disable Ajax Call from WooCommerce added in functions.php*/
add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_cart_fragments', 11);
function dequeue_woocommerce_cart_fragments() { if (is_front_page()) wp_dequeue_script('wc-cart-fragments'); }
function disable_checkout_script(){
wp_dequeue_script( 'wc-checkout' );
}
add_action( 'wp_enqueue_scripts', 'disable_checkout_script' );
I used above code to disable ajax on checkout page. However there is checkbox on my site when checked it add additional prices and without ajax it do not update additional prices on checkout page but on PayPal it shows additional.
When I do this https://mydomain.com/?wc-ajax=get_refreshed_fragments it just shows homepage.
For the try, I install wordpress on my same server on another domain, installed woocommerce and it was working flawlessly. So issue related to specific wordpress and not to server.
It is on VPS, I have full control over it.