I'm developing a plugin to allow custom shipping taxes added by wp-admin.
Everything seems good except the fact, that the hooks wp_ajax_nopriv_woocommerce_update_order_review and wp_ajax_woocommerce_update_order_review seems not to work from inside the plugin code.
I mean, whan I call this hooks from theme's functions.php it all works perfectly, but when I call inside the plugin, something like //add_action( 'wp_ajax_woocommerce_update_order_review', array( &$this,'add_custom_shiptax'),10,2);
//add_action( 'wp_ajax_nopriv_woocommerce_update_order_review',array( &$this,'add_custom_shiptax'),10,2); it works before the ajax update the shipping calculator, but when it is done, it deletes my custom ship tax.
Any help, please?
Thanks in advance!