-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Reported from https://wordpress.org/support/topic/uing-vnd-but-cant-get-one-pay-to-work/
This is not a bug. It's the intention to support VND with OnePay only.
Issue:
- Main currency store - USD, but setup in WPML/WCML with VND also.
- See the VNese products, VND displays.
- But in the back end, see this error
Your store currency is USD. This gateway is not active on your site. Because OnePay supports VND only.
Code:
you can tweak true/false to enable the OnePay gateway (by changing the ‘VND’ to ‘USD’).
-
Line 146 in d6ecbfe
AND 'VND' == get_woocommerce_currency() -
woo-viet/inc/class-wooviet-admin-page.php
Line 106 in d6ecbfe
if ( 'VND' == get_woocommerce_currency() ) {
Bigger issue:
The OnePay class I wrote is good, just the issue with sending the correct amount value of the order and its currency.
Solution:
- Check how WPML sends the amount of money and currency during the checkout process.
- Check how to enable the settings in the back-end, "code" section above.