Woocommerce is trimming the last 0 from order_total
-
Hello,
I have created a custom woocommerce payment gateway, everything is working smoothly, I set the digits after decimals to two digits but whenever the price end with 0, order_total is being trimmed when its being sent to the gateway.
Example: if the amount is 122.98 the order_total go to the gateway as 122.98 but if the amount is 122.80 the order_total go to gateway as 122.8 and that is an issue with the gateway they need to receive a double digits after decimal. However the prices are showing well on the website the double digits is working even with .00
Please advise
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Woocommerce is trimming the last 0 from order_total’ is closed to new replies.