how to override an Ajax function in woocommerce?

Viewed 19

I have to override update_order_review function from class-wc-ajax.php and disable this two code:

WC()->cart->calculate_shipping();
WC()->cart->calculate_totals();

how should I do that,also here is class-wc-ajax.php :

class-wc-ajax.php

0 Answers
Related