Currency Conversion Issue in Woocommerce: Conversion Error for Values Above 1000
-
Hello,
First of all, I’d like to express my gratitude for creating such a useful plugin. However, I seem to have encountered a slight issue which I believe requires your expertise.
I’m currently using the shortcode [convert number=50 from=”usd” to=”try”] within a different Woocommerce plugin. Under normal circumstances, this shortcode efficiently converts the American Dollar to the target currency and displays the result correctly. However, when attempting to use this shortcode within a different Woocommerce plugin, I’m facing an unexpected error when the total price of the product surpasses 1000 Turkish Liras.
The problem lies in the fact that when the value exceeds 1000 Turkish Liras, the conversion result is displayed as either 1 or another nonsensical number. In order to diagnose the underlying cause of this behavior, I’ve taken various steps. For instance, I’ve tried downgrading the PHP version from 8.0 to 7.4, but the issue persists.
I kindly request your assistance in shedding light on the mechanism behind the conversion process within your plugin and explaining potential scenarios that could lead to such a conversion error for values above 1000. Additionally, any suggestions you may have for resolving this issue would be greatly appreciated.
To provide a better understanding of my problem, I’m including an example of the shortcode I’m attempting to use:
[convert number=50 from="usd" to="try"]
I eagerly await your guidance on this matter. Thank you in advance for your help.
Best regards,
- The topic ‘Currency Conversion Issue in Woocommerce: Conversion Error for Values Above 1000’ is closed to new replies.