specify currency for the wallet / selected currency symbol2021-12-28T16:43:24+05:30

Home Forums Core specify currency for the wallet / selected currency symbol

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • for.testing.osso
    Participant
    Post count: 6

    Hello,

    I have installed currency switcher for my website and as it’s known that Terawallet doesn’t support multi currency, but still when using the currency switcher the wallet currency symbol change with it.

    I need to specify a currency for the wallet, so if the currency switcher switched the currency that doesn’t effect the wallet currency at all.

    would you help me coding that?

    Subrata Mal
    Keymaster
    Post count: 207

    You can use the attached code to specify wallet currency.

    add_filter('woo_wallet_wc_price_args', 'woo_wallet_wc_price_args_callback');
    
    if(!function_exists('woo_wallet_wc_price_args_callback')){
        function woo_wallet_wc_price_args_callback($args){
            $args['currency'] = 'USD';
            return $args;
        }
    }
    for.testing.osso
    Participant
    Post count: 6
    This reply has been marked as private.
    for.testing.osso
    Participant
    Post count: 6

    That didn’t solve the issue!! the currency symbol still changing.

    *I have added the code to function.php

    for.testing.osso
    Participant
    Post count: 6
    This reply has been marked as private.
    Subrata Mal
    Keymaster
    Post count: 207

    Please let us know which multi currency plugin you are using?

    for.testing.osso
    Participant
    Post count: 6

    I’m using WOOCS multi currency plugin

    for.testing.osso
    Participant
    Post count: 6

    Added to the previous issue that, If you choose USD as your store default currency and then your customer ordered wallet top up from user front end with 10$ then choose to pay via Indian rupee, your customer will pay 744 IR and if this order approved he will get 744 Dollar in his wallet.

    since the data base of the balance is the store default currency I couldn’t thought other than of a code that executed only if the wallet top up item at checkout page to disable the multi currency plugin (WOOCS) and force the customer to pay with dollar (only in the checkout page and only if the purchased item is wallet top up), I will really appreciate your help with coding that too.

    My best regards…

    Subrata Mal
    Keymaster
    Post count: 207
    This reply has been marked as private.
    winningexpo
    Participant
    Post count: 2

    How do I completely remove the currency symbol from woo wallet? I want the value to appear plain without the symbol

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
WhatsApp