Title: Multisite redirections
Last modified: August 22, 2016

---

# Multisite redirections

 *  Resolved [rockitman](https://wordpress.org/support/users/rockitman/)
 * (@rockitman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/multisite-redirections/)
 * Dear developer,
 * I am using a multisite (multiple languages) setup with woocommerce installed 
   throughout the entire website. Both Dutch version and UK version currently have
   a menucart button in the header menu. When I add a product to my cart (for example
   on the Dutch page) and later switch to an other language version of the website,
   then the language-settings, the contents and the link to the dutch webshop are
   being transferred to the UK website.
 * For example, I want to buy something from the Dutch webshop and use “add to cart”
   function in woocommerce. The cart-menu-plugin updates in the menubar and tells
   me I have 1 artikel (item) in my shoppingcart. Now I want to read a translation
   of a random post in English, so I use the header-menu-option “to the UK website”(
   uses flag icons as seen on many websites). This link (target=”_blank”) opens 
   in a new tab and displays the UK version of the same website. Somehow, I can 
   now see a Dutch menu-cart in my UK menu bar. When I click it to view the contents,
   I am being transferred back to the Dutch Webshop.
 * Strangely enough, when I ‘right-click and open-in-new-tab’ on the link “to the
   UK website” then the menucart language settings, webshop link and cart contents
   will be updated accordingly.
 * Is there an option to prevent my Dutch shopping cart from being transferred and
   displayed on a UK version of the same site and vice versa?
 * Why won’t it work with target=”_blank” and does it work when I manually load 
   the UK translation of a page in a new tab?
 * I will note that (advised by my hosting provider) I am using a varnish cash plugin.
 * Any help will be much appreciated.
 * [https://wordpress.org/plugins/woocommerce-menu-bar-cart/](https://wordpress.org/plugins/woocommerce-menu-bar-cart/)

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5491949)
 * Hello Rockitman,
    Thanks for contacting us about this issue.
 * I’m afraid there is not much that I can do to help you (within the scope of this
   free plugin), especially because you’re running this in a complex setup with 
   caching. On top of that, WooCommerce AJAX (the part responsible for live updating
   the cart) is quite persistent which could make things worse.
 * That said, perhaps we can narrow down on the issue a bit more: You mentioned 
   multisite, but also multiple languages – does that mean you’re using WPML, or
   is this a different kind of configuration?
    Is it just the menu cart that is 
   transferred, or is it also the regular WooCommerce cart?
 * Kind regards,
    Ewout
 *  Thread Starter [rockitman](https://wordpress.org/support/users/rockitman/)
 * (@rockitman)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5491987)
 * Hi Ewout,
 * Thanks for your reply. About the WPML, i am not using that plugin. I edit my 
   site languages manually within WP settings and edit the translations using po
   and mo editors. I’m not sure that this is the information you were after.
 * From what I have experienced, the menu-cart-button is being transferred between
   sites (cashed perhaps). For example, an item added to the UK-woocommerce cart
   is being transferred to the German website, as soon as I switch from the UK website
   to the German website (left-click on the German-flag-image with a normal href
   and target _blank in the header of the page, top-right-corner).
 * This results in a English menu-cart (the button text is in English) with a link
   to the English woocommerce shopping cart, being displayed in the German header
   menu. And the other way around.
 * When I add items to both woocommerce carts (UK and German version) and manually
   navigate to the shopping cart of either one (even when switching between sites
   along the way) in order to check the contents, then woocommerce appears to keep
   both carts unchanged.
 * It appears (to me) that none of the content is being transferred, but that the
   link provided by the menu-cart-button is not being refreshed when switching between
   sites.
 * What makes it even weirder is the fact that when I ‘right-click-and-open-in-new-
   tab’ on any of the flag-images that link to one of the other sites, this issue
   does not occur.
 * I am using Google Chrome and must admit that I haven’t tried it with any other
   browser, not thinking it would be part of the issue.
 * Your help is much appreciated.
    Bart
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5491991)
 * Hello Bart,
    That information does help, sort of. If I had to put my money on
   the most likely cause, I’d say it’s cache (ajax or server, or both…) Perhaps 
   this will help? The suggestion given there for AJAX may just be what you need.
   [https://wordpress.org/support/topic/woocommerce-and-varnish-cache?replies=8](https://wordpress.org/support/topic/woocommerce-and-varnish-cache?replies=8)
 * Let us know if you find anything else!
    Ewout
 *  Thread Starter [rockitman](https://wordpress.org/support/users/rockitman/)
 * (@rockitman)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5492016)
 * Hi Ewout,
 * Thanks for your reply. I have taken a look at the link you gave me. If I am successful,
   I will let you know.
 * Thanks again.
 * Bart
 *  [philine](https://wordpress.org/support/users/philine/)
 * (@philine)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5492017)
 * Bart,
 * I had the same issue and resolved by :
 * woocommerce/setting/add to cart/ disable AJAX add to cart buttons on archives.
 * I just found it after reading this support. I remembered somethings about ajax
   in setting and tried this. It seems to work !
 * Thanks to you & Ewout 🙂
    Philippe
 *  Thread Starter [rockitman](https://wordpress.org/support/users/rockitman/)
 * (@rockitman)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5492018)
 * Thank you Philippe!
 * Indeed it worked. No more AJAX functionality, but for now this is the best compromise
   I can manage. Thank you for suggesting it. It really helped me!
 * Bart

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

The topic ‘Multisite redirections’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-menu-bar-cart/assets/icon-256x256.png?rev=2190481)
 * [Menu Cart for WooCommerce](https://wordpress.org/plugins/woocommerce-menu-bar-cart/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [WooCommerce Menu Cart](https://wordpress.org/support/topic-tag/woocommerce-menu-cart/)

 * 6 replies
 * 3 participants
 * Last reply from: [rockitman](https://wordpress.org/support/users/rockitman/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/multisite-redirections/#post-5492018)
 * Status: resolved