• Resolved SvendK

    (@svendkdk)


    Hi people. I am building a website with shop, running WordPress, WPML and WooCommerce together in a Danish/English web site.

    The Danish language works, I can put items in the shopping cart and go through the payment process. But if I put stuff in the (empty) cart from the English product page, or from a category page and then afterwards show the cart, this one pops up:

    View post on imgur.com

    If I click Stay in English, that cart will be emptied.
    If I click Switch back To Dansk (Danish), it switches to Danish (even though I tried to add items from the English page…). Also, it switches to the danish subfolder, but with the english slug for the shop, so I end up on an 404 page…

    It seems like it thinks, that even though the product, I added, is shown in english, it thinks that we came from the Danish shop.

    If I, from a category page, click the Add to cart-button, the cart (which is shown in a widget below the shop) adds the product, but a few seconds later, it is removed again.

    The page url:
    https://omahara.com/en/shop (english)
    https://omahara.com/da/shoppen (danish)

    I can give you admin access to the page with a user, if you give me an email address I can create a user for.

    Looking forward to your help and comments.

    Status report:

    
    ### WordPress Environment ###
    
    Home URL: https://omahara.com
    Site URL: https://omahara.com
    WC Version: 2.6.14
    Log Directory Writable: ?
    WP Version: 4.7.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.18 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9
    PHP Version: ? 5.5.38 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 256 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.36.0
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: ?
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.14
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Active Plugins (26) ###
    
    Akismet: by Automattic – 3.2
    Better Search Replace: by Delicious Brains – 1.3
    Exclude Pages from Navigation: by Simon Wheatley – 1.92
    Google Analytics: by ShareThis – 2.1
    Collapse-O-Matic: by twinpictures
    baden03 – 1.7.3
    
    Meta Slider: by Matcha Labs – 3.4.1
    My Calendar: by Joseph C Dolson – 2.5.6
    Recent Posts Widget Extended: by Satrya – 0.9.9.6
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    Page Builder by SiteOrigin: by SiteOrigin – 2.4.24
    WPML Multilingual CMS: by OnTheGoSystems – 3.6.3
    SiteOrigin CSS: by SiteOrigin – 1.1.3
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.8.1
    Velvet Blues Update URLs: by VelvetBlues.com – 3.2.7
    WooCommerce Weight Based Shipping: by dangoodman – 4.2.2
    WooCommerce PayPal Express Checkout Gateway: by Automattic – 1.1.2
    Booster for WooCommerce: by Algoritmika Ltd – 2.5.9
    WooCommerce Multilingual: by OnTheGoSystems – 4.0.4
    WooCommerce SellMore: by IndoWebKreasi – 1.1.2
    WooCommerce Set Products Per Page: by SvendK – 0.1
    WooCommerce: by WooThemes – 2.6.14
    WP Broken Link Status Checker: by Pau Iglesias
    SeedPlugins – 1.0.4
    
    WP Media folder: by Joomunited – 3.8.7
    WPML Media: by OnTheGoSystems – 2.1.24
    WPML String Translation: by OnTheGoSystems – 2.5.2
    WPML Translation Management: by OnTheGoSystems – 2.2.7
    
    ### Settings ###
    
    Force SSL: –
    Currency: DKK (DKK)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: –
    
    ### WC Pages ###
    
    Shop Base: #5 - /shoppen/
    Cart: #6 - /shoppen/basket/
    Checkout: #7 - /shoppen/checkout/
    My Account: #8 - /shoppen/my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Vantage
    Version: 1.5.8
    Author URL: https://siteorigin.com/
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter SvendK

    (@svendkdk)

    Hmm, changing the “Switching languages when there are items in the cart” to “Syncronize” from “Prompt” helped out the problem – but if someone has put a purely danish product in the cart and changing to english, then the user is not notified.

    View post on imgur.com

    It would be awesome if you could have options like: “Try to switch products to the new language. If product is not translated to new language, prompt the user with information about the product not being available in that language.”

    If you would like to inspect the site when the problem is there, give me a note here and maybe put a time frame, that I should have the options set to “Prompt…” (which isn’t working). Also, if you need admin access, let me know of an email address.

    Thanks in advance ??
    SvendK

    Hello and thank you for reporting this issue and for your feedback. The dialog should work in Danish too, and this is strange that it is not working for you.
    I will attempt to diagnose the issue and get back to you once I have more information.

    I have tried to reproduce the case here that you explained.
    In my clean test setup I am always getting the notification that my cart is going to be cleared, when I switch my language.
    Perhaps you can provide me with more data on how I can reproduce the issue?

    I tested with both a product created in Danish and one in English.
    When I add a product, and then switch the language – it always offers me to stay in the new language and clear the cart or to get back.
    This is only if the option in WooCommerce > WooCommerce Multilingual > Settings for the clearing on language switch is active.

    Thread Starter SvendK

    (@svendkdk)

    Hi George and thank you for your reply.

    I’m sorry if I have been unclear in my first post. I am NOT changing language. I go direct to the English site, put stuff in the cart and when I view the cart, it thinks that I just came from the Danish site and have switched to English and then telling me, that the cart will be emptied, if I do not switch back. And as noted, if I DO switch “back” to Danish from the prompt, the english shop slug is used with the danish product slug, so I reach a 404 page…

    As this is a production site, I cannot “invalidate” it for long, but if we can setup a time slot where you can test things, we certainly can do this? As noted I can create a WordPress user for you, if you’d like?

    This is very interesting case.
    Because we cannot exchange credentials or any private data here, I would recommend that you open a new ticket in our forum at wpml.org and mention this ticket here and mention me – so you don’t start from scratch.

    Closing this ticket due to inactivity.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Putting items in English cart tries to change lang to Danish, emptiing the cart!’ is closed to new replies.