Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15845

    Hi,

    The Moneris payment gateways requires that I display my shop prices in Canadian price format. The WooCommerce team recommend I add the following customization to the Abundance theme function.php file. I did and it works fine. However, could this be built into the Abundance theme as a setting so that I don’t have to update this every time the theme us updated?

    /* customized currency display on online store */

    add_filter( ‘woocommerce_currencies’, ‘add_my_currency’ );

    function add_my_currency( $currencies ) {

    $currencies = __( ‘CAD$’, ‘woocommerce’ );

    return $currencies;

    }

    add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2);

    function add_my_currency_symbol( $currency_symbol, $currency ) {

    switch( $currency ) {

    case ‘CAD’: $currency_symbol = ‘CAD$’; break;

    }

    return $currency_symbol;

    }

    Much appreciated,

    Lyse

    #89228

    Hi Lyse,

    I’m tagging Kriesi to this post. Thanks for the suggestion.

    Regards,

    Mya

    #89229

    Hi Mya,

    Thank you!

    Lyse

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Currency display on shop’ is closed to new replies.