Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1240681

    Hi,
    On this website I use a page as footer. I translated it in english (second language of the website).
    With wpml I choosed to empty the cart each time a visitor changes the language.

    The issue is : when a visitor adds a product to his cart while visiting the website in english, wpml triggers the popup telling him he’s trying to change language.
    I’ve contacted wplm support about this issue and after searching and doing the classic plugin deactivation process to find where the issue was coming from, we found it was coming from the “page as footer” from enfold so wplm sent me here to find a solution.

    Now in english I put back a classic footer and the issue is gone but it is not an ideal solution. I can provide a staging website so you can see the issue and find a fix.

    Do you have any idea where this incompatibility between Enfold and wpml could be coming from ?

    Best regards.

    • This topic was modified 4 years, 3 months ago by Antoine.
    #1242075

    Hey Antoine,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1242191

    Hi Victoria,

    Please find in the private box your admin access for my staging website where the issue is also visible. To see what is going on, please visite the website in english and add any product to your cart. The wpml popup notice should trigger when the page refreshes.

    Best regards.

    #1243140

    Hi,

    Thank you for the update.

    Could you also include access or an account for the file server (FTP)? Unfortunately, we are not yet sure why this is not working, or why the language switch notification pops up after adding the product to the cart. We’ll forward this thread to our channel and check the issue further.

    Best regards,
    Ismael

    #1243275

    Hey!

    Checking your site I found, that it seems to be a problem with Woocommerce Multilingual. Deactivating this plugin adding to cart works.

    We would need ftp access to your server to add some debugging code to the php files of the plugins to be able to break down the problem.

    Thank you for your assistance.

    Best regards,
    Günter

    #1244237

    Hi,
    It is not surprising that deactivating Woocommerce multilingual makes the issue disappear since it is this plugin that triggers the popup. So it can’t trigger it anymore if you deactivate it. As I said before, changing the footer in english to the default widgets makes the issue disappear.

    Please find attached the ftp details to go further. Please be sure you are working testing on the right server. (several websites are set on this server).

    Best regards.
    Antoine

    #1244370

    Hi,

    Thank you for coming back and the credentials.

    I setup a staging site on my dev server (with a page as footer) – using the 5 basic WPML plugins (Multilingual CMS, Translation Management, String Translation, Media, WC Multilingual) and WooCommerce. I cannot reproduce the problem. I can add a product to cart in both languages without the popup, this appears only when I switch the languages.

    Also deactivating all other plugins on your staging server does not produce the error any longer.

    It is correct, that $post->ID in function wcml_language_switch_dialog() points to the translated footer page ID.

    It seems, that one of the other plugins hooks into the get_posts() query for the footer page and modifies the global $post variable.

    The only way to find out is to deactivate all plugins (except the basic ones mentioned above) and then reactivate one by one until the problem occurs again.

    Best regards,
    Günter

    #1244805

    Hi,

    I have been in contact with WPML compatibility support.

    Please see private content.

    Best regards,
    Günter

    #1248368

    Hello guys,

    Sorry for the delay, I was on vacation. I answered to Ahmed so he can run more tests. I’ll keep you updated.

    Best regards

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.