Support » Plugin: OneClick Chat to Order » Total value is like 82363000

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yep me too facing the same problem, the total value is wrong and alway 82363000.. too bad if not this is by far the most usefull plugin…



    Same problem here. I added a product that cost $500 and it says that the total is $862500

    Plugin Author walterpinem


    Hello there.

    Please update the plugin to the latest version.
    It’s already fixed in the new version, should be.
    Please notify me the result afterwards.

    Thanks in advance.



    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 10 months ago by atempel.
    Plugin Author walterpinem


    Hello @leonardofreitas7 and @atempel

    Thanks for your message and feedback.
    I really appreciate it.
    Let me look up into the code.
    Seems like the current code cannot handle some number in several currencies (had confirmed it from others too).
    @atempel also thanks very much for the input.
    If it’s really working, I’ll try to push the update with the fix.

    Thank you very much. Stay tuned for the future awesome updates.

    Best regards

    Plugin Author walterpinem



    Since a few latest updates, the issues should be fixed.
    So I’m closing this thread.
    If you have any problems or questions to ask, please do not hesitate to open a new topic.

    Thank you very much for using OneClick Chat to Order.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Total value is like 82363000’ is closed to new replies.