• Resolved stebcom

    (@stebcom)


    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!

    https://www.ads-software.com/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?

    Thread Starter stebcom

    (@stebcom)

    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?

    Thread Starter stebcom

    (@stebcom)

    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 ‘[Plugin: Magento WordPress Integration] Cannot display Magento blocks’ is closed to new replies.