WordPress.org

Ready to get started?Download WordPress

Forums

Magento WordPress Integration
[resolved] Cannot display Magento blocks (6 posts)

  1. stebcom
    Member
    Posted 1 year ago #

    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/

  2. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. stebcom
    Member
    Posted 1 year ago #

    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!

  4. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. stebcom
    Member
    Posted 1 year ago #

    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!

  6. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.