• Resolved firepages

    (@firepages)


    Hi,

    Is there any way to change the current name text in the dropdown – for example, I want to change GBP Pound sterling to GBP Pounds Sterling ?

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi,

    Thank you for reaching out to us.

    Can I ask which specific currency switcher you’re using? It’d be great if you could share some screenshots to demonstrate.

    If you’re using shortcode, please also share me the shortcode you use. Thanks.

    Best regards.

    Thread Starter firepages

    (@firepages)

    Hi,

    The shortcode that I am using is: [woo_multi_currency]

    I want to be able to change the text that I have circled in red.

    Thanks

    Thread Starter firepages

    (@firepages)

    Here’s the screenshot:

    Plugin Support angelagrey

    (@angelagrey)

    You can use this filter wmc_shortcode_currency_display_text to edit the text in the shortcode.

    Thread Starter firepages

    (@firepages)

    OK great – where can Ifind the syntax for that please ?

    Plugin Support angelagrey

    (@angelagrey)

    Please add this snippet:

    add_filter( 'wmc_shortcode_currency_display_text', array( $this, 'wmc_shortcode_currency_display_text' ), 10, 2 );
    function wmc_shortcode_currency_display_text($name, $code) {
       if ($code == 'GBP') return 'GBP Pounds Sterling';
       return $name;
    }
    Thread Starter firepages

    (@firepages)

    Hi,

    I have added the code as a snippet but get the message: Could not create snippet. Request failed with status code 500

    Just to confirm, I am using CURCY – WooCommerce Multi Currency Premium

    Regards

    Plugin Support angelagrey

    (@angelagrey)

    Hi,

    In that case, please open a support ticket on this Support Forum instead: https://villatheme.com/supports/forum/plugins/woo-multi-currency/

    I’m sorry for the inconvenience, it’s just that we’re not allowed to provide premium support on this platform. It’s for free users only.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change Currency Name Text’ is closed to new replies.