Title: [Plugin: Magento WordPress Integration] Multi store not working
Last modified: August 20, 2016

---

# [Plugin: Magento WordPress Integration] Multi store not working

 *  [smeagol82](https://wordpress.org/support/users/smeagol82/)
 * (@smeagol82)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/)
 * Hello
 * I’m trying to integrate the magento multiview in wordpress and it makes all crash,
   indicating an error in the line 35 of the wp-content/plugins/magento-wordpress-
   integration/mwi.php. I have wordpress installed on my project root (/) and magento
   in a shop subfolder (/shop) inside it. I have a multilanguage wordpress and I
   want to associate each language to a magento view. To do so I’ve indicated in
   the multi store views of the plugin configuration the following:
 * Store view URL Store view code
    [http://store.com/es](http://store.com/es) es
   [http://store.com/CA](http://store.com/CA) ca [http://store.com/en](http://store.com/en)
   en
 * The first column refers to the view of wordpress and the second one refers to
   the code of the magento view.
 * Can anybody tell why is it not working?
 * Thanks!
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

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

 *  [steefv](https://wordpress.org/support/users/steefv/)
 * (@steefv)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903163)
 * Same situation here for me…
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903170)
 * Hello,
 * Please let me know what the error says and I’ll see what i can do to help.
 * Thanks,
    James.
 *  Thread Starter [smeagol82](https://wordpress.org/support/users/smeagol82/)
 * (@smeagol82)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903171)
 * Hello
 * When I look the error at the apache log it says:
 * PHP Fatal error: Using $this when not in object context in /var/www/store/wp-
   content/plugins/magento-wordpress-integration/mwi.php on line 35, referer: [http://store.com/CA/page1/](http://store.com/CA/page1/)
 * Thanks
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903176)
 * Thanks for the update, I’ll look into a fix for this
 *  [ntorras](https://wordpress.org/support/users/ntorras/)
 * (@ntorras)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903185)
 * I have the same problem, could you give us an example of how we have to configure
   the multistore views. In the admin, to configure the different store views you
   are asking for two things for each one:
    Store View URL (full path) Store View
   Code. Can we set the same value in all store view url? for example, if I have
   2 stores one french with code fr and one in english with code en would it be 
   ok to set French: store view url: [http://www.myShop.com](http://www.myShop.com)
   view code: fr English: store view url: [http://www.myShop.com](http://www.myShop.com)
   view code: en If this configuration is correct how do I define the language in
   wordpress, do I need to use one module so I can define the language through the
   url or I need to use another thing.
 * Please, could you help me
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903216)
 * Hi all,
 * I’ve just updated the plugin to version 2.1.0 – hopefully this should resolve
   the error message posted earlier.
 * Thanks,
    James
 *  [ntorras](https://wordpress.org/support/users/ntorras/)
 * (@ntorras)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903217)
 * Thanks for your help, but with the actualization the error is still appearing.
   To solve it I’ve modified mwi.php and changed all $this for self::, then the 
   error don’t appear.
    But I still have one problem, there is anywhere with an 
   example of how to configure the multistores, in the admin you are asking for 
   path and code, what do we have to put in each place? Another thing is that if
   we define that the default store is es, but we are in side magento navigating
   using en, when I enter to a wordpress page I see printed magento modules (for
   example header) as if I where in es, it seems that somewhere is changing magento
   locale value. Could you give me a hand.
 * Thanks!
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903218)
 * Hi ntorras,
 * Thanks for that, I’ve updated $this to self:: and will release later on today.
 * I am also removing the confusing storeview setup, as I’ve figured out a way to
   make it work automatically!
 * Thanks for your patience,
    James.
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903223)
 * OK guys,
 * I’ve had a bit of an overhaul. Store views are now detected automatically. The
   multi store view setup has now been removed.
 * You can now simply enter your Website Code, and store views will all work when
   you switch in Magento. I’ve also updated the addons to use magento translations,
   show/hide out of stock products, default css styles and a few more things!
 * I’m planning to integrate properly with WPML, if some of you are using more than
   one Website in Magento, please hold on for this functionality, as I’d like it
   to be a simple and seamless as possible.
 * Hopefully this solves most issues that you guys may have been having.
 * Thanks,
    James
 *  Plugin Author [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903224)
 * Has anyone tested that this now works as expected?

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

The topic ‘[Plugin: Magento WordPress Integration] Multi store not working’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magento-wordpress-integration_1f262e.
   svg)
 * [Magento Wordpress Integration](https://wordpress.org/plugins/magento-wordpress-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magento-wordpress-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magento-wordpress-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magento-wordpress-integration/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [James Kemp](https://wordpress.org/support/users/jamesckemp/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-multi-store-not-working/#post-2903224)
 * Status: not resolved