WordPress.org

Ready to get started?Download WordPress

Forums

Magento WordPress Integration
Multi store not working (11 posts)

  1. smeagol82
    Member
    Posted 1 year ago #

    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 es
    http://store.com/CA ca
    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/

  2. steefv
    Member
    Posted 1 year ago #

    Same situation here for me...

  3. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    Please let me know what the error says and I'll see what i can do to help.

    Thanks,
    James.

  4. smeagol82
    Member
    Posted 1 year ago #

    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/

    Thanks

  5. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the update, I'll look into a fix for this

  6. ntorras
    Member
    Posted 1 year ago #

    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
    view code: fr
    English: store view url: 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

  7. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all,

    I've just updated the plugin to version 2.1.0 - hopefully this should resolve the error message posted earlier.

    Thanks,
    James

  8. ntorras
    Member
    Posted 1 year ago #

    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!

  9. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  10. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    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

  11. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    Has anyone tested that this now works as expected?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.