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

URL problems AND Weglot translation integration problem

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.

Hi

Just setup the pro plugin.

Problem 1) URL problems

After each url in my website, I now get a weird url parameter like this:

kaerbygaard.com/shop/kaerbygaard/?v=dd65ef9a5579

This doesn't look great, and also it doesn't work with my caching plugin (using sitemap and url to define page-optimisation)

 

 

Problem 2) Weglot integration

I use this code provided, but when I switch language, I get an error and currency/price just goes to"zero / 0"

add_filter('wp_head', function() {

    $lang = weglot_get_current_language();

    global $WOOCS;

    switch ($lang)

    {

        case 'en':

            $WOOCS->set_currency('EUR');

            break;

case 'se':

            $WOOCS->set_currency('DKK');

            break;

case 'no':

            $WOOCS->set_currency('DKK');

            break;

case 'de':

            $WOOCS->set_currency('EUR');

            break;

        default:

            $WOOCS->set_currency('DKK');

            break;

    }

});

 

 

Can you help me find the issue here?

 

Thank you,

Best regards

Rasmus

Hello Rasmus

  1. This is a woocommerce setup - https://c2n.me/4ehnZtX.png
  2.  Drop  me  exact  link to the  issue. where did you paste this code? What error text do you get?

Hi.

Thanks! 1) helped.

 

2)

Im using plugin"Code Snippets" to insert the code on alle pages.

https://kaerbygaard.com/produkter/reolsystem-moerk-eg/

Notice that when you switch language, I goes to"€ zero"

Hello

Please  try to watch  a video - https://currency-switcher.com/video#video_1

The rate must not be zero - https://c2n.me/4ei7IRO.png