WordPress.org

Support

Support » Plugins and Hacks » Magento WordPress Integration » [Resolved] [Plugin: Magento WordPress Integration] Cannot display Magento blocks

[Resolved] [Plugin: Magento WordPress Integration] Cannot display Magento blocks

  • Hi,
    I’m sorry to come with a noob question again, but I don’t get it: how exactly am I supposed to display Magento blocks, or anything from Magento, on the WordPress side? I tried the function the_block in page.php of my WordPress theme with both default blocks (such as catalog.topnav) and custom static bocks, but nothing is being displayed. What am I missing?

    The Mage.php file path was entered correctly and I’m using default Magento theme.

    Thank you!

    http://wordpress.org/extend/plugins/magento-wordpress-integration/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author jamesckemp

    @jamesckemp

    Can you show me the exact code you’re putting in page.php, and also, any indication of what does happen?

    Ok, I managed to display blocks from Magento inserting the code (for example the_block(‘top.links’);) in my content.php page. Still, I don’t have any custom php code working when I put it in page.php.
    Well, althought I have a bit of experience with Magento, I’m totally new to WordPress, so I think my problems are WordPress related.

    Thanks for the great job!

    Plugin Author jamesckemp

    @jamesckemp

    Are you sure what you are looking at is using the page.php template?

    No, my problem is that I’ve just approached WordPress and I still have to learn how it works. Browsing the code, I found out that content.php is my actual template (for main contents), while page.php lies on a higher level. I’ll keep exploring that, thanks!

    Plugin Author jamesckemp

    @jamesckemp

    Ah OK, I’ll mark as resolved for now – feel free to come back with any questions though!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Magento WordPress Integration] Cannot display Magento blocks’ is closed to new replies.
Skip to toolbar