Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @breadf,

    If you added into a native WordPress widget or using a different theme does it work? This will let us know if the problem is related to Bricks theme or if something else is happening in your website.

    Also, have you tried any other of the options available in WooCommerce > WooCommerce Multilingual >Multicurrency?

    Thread Starter breadf

    (@breadf)

    Hi @andrescifuentesr,

    Yes I tried. It doesn’t work.
    I tried to get a custom code from Chatgpt as below and it doesn’t work as well:

    function custom_wpml_currency_switcher_shortcode() {
    if (function_exists(‘wpml_currency_switcher’)) {
    ob_start();
    wpml_currency_switcher([
    ‘switcher_style’ => ‘dropdown’ // Adjust based on your WPML backend setting, if necessary.
    ]);
    return ob_get_clean();
    }
    return ”;
    }
    add_shortcode(‘wpml_currency’, ‘custom_wpml_currency_switcher_shortcode’);

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I created the following Sandbox and added a [currency_switcher] shortcode in Appearance > Customize > Widgets and it is working correctly. Could you try something similar in your website?

    Otherwise, could you please try to add your currency switcher in the same Sandbox? In that way, we will be able to investigate it further.

    Thread Starter breadf

    (@breadf)

    In this case, it may be related to Bricks Builder.

    Moderator Support Moderator

    (@moderator)

    @breadf I have removed your offer to send login credentials, please never do that again, even for staging sites.

    Common reasons for edits or suspensions include but are not limited to: […] Posting or accepting offers or requests for login information to a site.

    https://ww.wp.xz.cn/support/guidelines/#we-reserve-the-right-to-manage-the-forums-to-the-best-of-our-ability
    Thread Starter breadf

    (@breadf)

    Oh sorry, I am not aware of this rule. Thanks for telling me this.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I’m afraid it is also working with Bricks, I created a new page and added the shortcode there and it is working fine.

    In that case, it could be either the theme, plugin or a combination of both. Therefore can you do the following: check if this issue appears in your test site when:

    • Only WCML plugin is activated, as it will tell us if there is an interaction issue with other plugin.
    • Theme is set to a WordPress default like Twenty Nineteen as it will tell us if there is an interaction issue with your theme

    If you don’t see the issue happening in the above scenario, can you try to determine whether this is a theme or a plugin issue?

    Thread Starter breadf

    (@breadf)

    I tried again and deactivated all plugins except woocommerce:

    Change theme to default, and only woocommerce plugin activated:

    Hope it helps.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    In that case, let’s try the following:

    • Add the shortcode in a regular page, does it work there?
    • Could you share your settings in WooCommerce > WooCommerce Multilingual > Multicurrency?
    • As you were able to reproduce the issue in a minimal environment, could you please do it on the Sandbox shared?
    Thread Starter breadf

    (@breadf)

    Please check the video: https://www.loom.com/share/fddd8aac70034fb498be5a4c3aaf4366?sid=8007cb97-3834-4630-9c42-59e863225755

    I added it in home page. It doesn’t work. You can find the settings in the video.

    I don’t know how to create the sandbox. I’ll send an email to your support about this issue.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thank you for the video. One thing that you can do is adding a different shortcode (for example, from another plugin or your theme) and test it in the same place. Does it work this time?

    Now, regarding my previous reply, you don’t need to create a Sandbox, you just need to click on this link and reproduce the issue as you did when you deactivate plugins and switch to a different theme.

    Thread Starter breadf

    (@breadf)

    It worked with other plugins from Curcy and Yay multi currency switchers. I’ve bought Curcy multi currency switcher premium. It worked fine.

    I’ve sent an email to your official support and provided a staging site for you to test.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I’m glad your found an alternative that worked for your environment. Don’t hesitate to open a new ticket if you try to use WooCommerce Multilingual in another project.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Shortcode [currency_switcher] doesn’t work’ is closed to new replies.