@walterpinem I was having the same problem and started looking your code, and in “wa-button.php” around line 508 there is:
$total_amount = floatval( preg_replace( '#[^\d.]#', '', WC()->cart->get_cart_total() ) );
On the preg_replace you used get_cart_total
, I just tested using cart_contents_total
instead and it worked perfectly.
The final line of code becomes this:
$total_amount = floatval( preg_replace( '#[^\d.]#', '', WC()->cart->cart_contents_total ) );
Also, thanks a lot for the plugin <3 really well done and awesomely handy!
-
This reply was modified 4 years, 10 months ago by
atempel.