• acordes

    (@acordes)


    Hi,

    I really want to buy this plugin.

    Firstly, I want to know if I can force the currency symbol shown in product_total_orders_sum and product_crowdfunding_goal to always stay as the base currency (which is USD). When I switch currency for my price variations, the sum and goal symbols change but the amount does not convert. I just want the symbol and value to stay in the base currency for the sum and goal. Everything else works perfectly.

    Is there some code I can apply?

    Can you help please?

    Many thanks in advance,
    Alexandra

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter acordes

    (@acordes)

    Ok, there’s no response so I’m going to use another plugin.

    Algoritmika

    (@algoritmika)

    Hi,

    Sorry for the delay, please give me a moment to check this. Will get back to you shortly.

    Best regards,
    Tom

    Thread Starter acordes

    (@acordes)

    Thank you

    Algoritmika

    (@algoritmika)

    Hi again, Alexandra,

    We’ve just uploaded v2.3.5 – please update. After that you can add code below to your (child) theme’s functions.php file:

    add_filter( 'alg_crowdfunding_output_shortcode_price', 'alg_crowdfunding_output_shortcode_price_set_currency', PHP_INT_MAX, 2 );
    if ( ! function_exists( 'alg_crowdfunding_output_shortcode_price_set_currency' ) ) {
    	function alg_crowdfunding_output_shortcode_price_set_currency( $price_html, $price ) {
    		return wc_price( $price, array( 'currency' => 'USD' ) );
    	}
    }

    Please let me know if it works as expected or if you have any questions. And again – sorry for the initial delay.

    Best regards,
    Tom

    Thread Starter acordes

    (@acordes)

    Thanks,

    It’s ok.

    I’ll have a look and get back to you.

    Cheers,
    Alexandra

    Algoritmika

    (@algoritmika)

    Sure, take all the time you need.

    Thread Starter acordes

    (@acordes)

    Hi Tom,

    I appreciate the code very much, but it hasn’t solved my problem.

    I have 2 currencies, USD and GHS (Ghana). On the campaign page I want the total and goal currency symbols to stay as USD when I switch currency (only those 2 values). At the moment, if I change currency, only the symbols change for these amounts (which doesn’t make sense). I’ve tried a number of currency switcher plugins (I’m using WooCommerce Currency Switcher v.1.1.8) and the same problem every time. I’ve also tried a few crowdfunding plugins too, but I’m happy to settle on yours if I get ongoing support. My project is very significant.

    If you look at the following links, you will get an understanding of what I mean. They are the same campaign, but the currencies are switched. You will see the total and goal values don’t change, just the symbols – which is a misinterpretation.

    https://crowd.fundingghanagraduates.today/product/my-awesome-project-2/?currency=usd
    https://crowd.fundingghanagraduates.today/product/my-awesome-project-2/?currency=ghs

    I hope you can help.

    Just so you know, I updated the plugin version and inserted the code you provided in the theme functions.php file.

    Thanks in advance,
    Alexandra

    Hello , has there been any update on this ? I have searched the internet to find the same solution for the problem as acordes has but no luck. I have crowdfunding project that has to be shown in euros , but i need customers to be able to pay in different currency. My issue is the same , it will only switch currency sign.. Customers are able to pay in their currency , but it won’t get converted on the :
    [product_crowdfunding_total_sum]

    I would appreciate any help. Thank you in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Currency symbol for total and goal’ is closed to new replies.