Okay
  Public Ticket #3144327
Custom Currency
Closed

Comments

  •  2
    freda21 started the conversation

    We are a training company, so our products are events. We use a bulk-purchase method wherein customers purchase "tickets" and redeem them over time. We would like to implement these as a payment method on our website and have had some success in doing so - we've added the currency to the theme so WooCommerce will see it when it is set to default by a currency switcher and we have a credit plugin that is processing it as a currency. The problem has been showing the correct currency to the correct customer. I hoped B2BKing would be the final piece to direct customers to the correct currency. It sort of works, but it would work better if B2BKing could recognize the currency and base rules on it. Instead, I have set "tickets" as the default currency and used rules to push everyone but the desired group to use USD. Is there a way to get B2BKing to see this custom currency?

  •  1,904
    WebWizards replied

    Hi there,

    Thank you for purchasing our plugin,


    That makes sense but I'm trying to understand more about your implementation and the issue you're having.


    What I am trying to understand is: in what way does B2BKing not recognize the currency?  Do you mean that B2BKing does not see your 'Tickets' currency in "Set Currency" dynamic rules?


    If B2BKing could see the currency in dynamic rules would that solve your issues? But how is that different than what you're currently doing by setting USD for the other groups? Isn't that the same but in reverse? I'm just asking so I can understand the situation.


    Also, if you'd like to share a backend login to a staging site with this setup, that'd be great and we can also check directly to see how all this works.



    Kind regards,

    Stefan

  •   freda21 replied privately
  •  1,904
    WebWizards replied

    Thanks for the login,


    I've added the following code to your functions.php file:

    add_filter('woocommerce_currency_symbols', function($symbols){
        $symbols['TTY'] = __( 'TTY TICKETS', 'woocommerce' );
        return $symbols;
    }, 10, 1);
    


    Now B2BKing can also see that currency in its 'Set currency' rules:

    3642752039.png


    Let me know if that works for you or if you have any issues,


    Kind regards,

    Stefan

  •  2
    freda21 replied

    That definitely works. I created an explicit rule for the desired group. I can’t be sure if this change was the cause, but another problem we had, where the custom currency was showing on the product thumbnails, seems to have gone away. Thank you for a fast resolution.

    Is there a way to have the currency rule take effect when the page first loads or a user logs in? I have a credits plugin that only changes thanks to your dynamic rule, but only when a user goes to checkout.

  •  1,904
    WebWizards replied

    From what I'm seeing, it seems to me that the CURCY - Multi Currency for WooCommerce plugin is taking over the user's currency setting.


    For example I see that:

    with the CURCY plugin INACTIVE:


    The site's default currency is TTY TICKETS.

    5830744769.png

    My current user is B2C and there's a rule that sets B2C users to USD :

    5320085985.png

    Immediately when opening the site, the currency is USD - the rule is applied when the site loads:

    9617962597.png


    If I then activate the CURCY plugin, the right sidebar seems to take over the currency, depending on what's currency selected:

    8280133972.png




  •  2
    freda21 replied

    Thank you for looking at that further. You really went above and beyond. You are absolutely right and I feel pretty stupid for not realizing this sooner, but the problems I was having were caused by having multiple places trying to tell the price and currency. I removed all the default pricing and created a dynamic rule to set the price for guests and everything is stable now. This plugin is awesome. Great support. Thanks again. You can close the ticket.

  •  1,904
    WebWizards replied

    Glad if I could help! If there's anything else we can help with, please let us know.

    Have a nice day!