• Hi, I’m using the Terawallet plugin and the Woocs plugin (multi currency). At first, Terawallet couldn’t differentiate one currency from another and gave the same value for 1 USD, 1 Bolivar, 1 COP, or 1 EUR. With this code, I was able to solve the first problem:

    “add_filter(‘woo_wallet_current_balance’, function ($balance, $user_id) { if (class_exists(‘WOOCS’)) { global $WOOCS;

    $balance = $WOOCS->woocs_exchange_value($balance); }

    return $balance; }, 10, 2);

    add_filter(‘woo_wallet_amount’, function ($amount, $currency, $user_id) { if (class_exists(‘WOOCS’)) { global $WOOCS;

    $amount = $WOOCS->woocs_exchange_value($amount); }

    return $amount; }, 10, 3);”

    However, I still have other problems to solve and I want to see if you can help me:

    1. On the page to reload balance (…/woo-wallet/add) Regardless of the currency selected by the user, the box where one enters the amount is always in dollars, however, it does not show the dollar currency symbol. Is it possible for Terawallet to respect the currency selected by the user in the box to reload balance? If not possible, could it at least show the dollar currency symbol in that box and below the subtotal in the currency selected by the user before confirming with the button and moving to the checkout page?

    Thank you in advance for your help.

    • This topic was modified 1 year, 1 month ago by jesmao.
  • The topic ‘Incompatibility between Terawallet and WOOCS (multi-currency).’ is closed to new replies.