Hello there.
Thanks for using this plugin.
Have you tried the latest update?
It should fix this issue already.
Thanks in advance and waiting for your reply.
Same problem here.
Plugin on v0.1.5 and have trouble.
Can you help?
@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 6 years ago by
atempel. Reason: adding information
-
This reply was modified 6 years ago by
atempel.
Hello.
Thanks for reporting this issue guys @leonardofreitas7 @atempel
Also thanks very much for the input @atempel
Please be patient with me for the next update.
Thanks in advance.
Thank you for the update! Is fixed
@misstest Thank you for your confirmation.
Glad it now works for you 🙂