PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

FOX currency by product/event

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
I use FOX to allow users to select the currency (GBP or Euros) they want for a product as we have some products which are sold across Europe.
My website base currency is GBP.
I need to be able to set a specific (non-base) currency for events in Ireland - which needs to be priced only in Euros.
I have looked at the functionality of the Pro version and I cannot see a way of doing this - can you advise please if this is possible?
Many thanks
Richard

Hello Richard

You want to change the currency depending on the user's location. Did I understand you correctly?

You can try this custom code - https://gist.github.com/PavloBorysenko/3257245000e5c77c98fba754eccd0337

Thanks for your reply Pablo - my base price is GBP but I want a specific event/product to be priced only on Euros, regardless of location - is that possible?

Richard

Unfortunately no. You can set it up so that the currency switches when visiting the contest page. But then the currency will switch globally.

The plugin does not have a feature to display all products in one currency and specific products in another at the same time

I only have a few products/events, if I set the currency for every product and event page, that would be manageable. How do I set it up so that the currency switches when I visit a specific page?

Please read this  - https://currency-switcher.com/force-currency-on-checkout-page  - but you need to replace the currency code and page slug in is_page()

 

Looks very promising - how can I set currency for a specific product?

Hello

You can use ID or slug of product

if ( is_product( 123 ) ) {
// code
}

if ( is_product( 'my-product-slug' ) ) {
// code
}

an example:

  • add_filter('wp_head',function(){    
        if(is_product( 123 )){
            global $WOOCS;
            $WOOCS->set_currency('USD');
        }
    });