• I am not able to get the category listing to display in WordPress (using the php functions). I have

    <div>
    <?php the_block('catalog.topnav'); ?>
    <?php the_block("product_list"); ?>

    The top navigation block shows but not the product listing. Your documentation specifically states that the function can show the product listing, so I don’t know what I’m doing wrong here. I’ve also tried “catalog.product” in lieu of “product_list” but without success. I’m using a new install of Magento 1.9.0.1.
    Any ideas?

    https://wordpress.org/plugins/magento-wordpress-integration/

Viewing 7 replies - 1 through 7 (of 7 total)
  • I just came across this problem myself and resolved it as follows:

    In Magento, create a CMS->Static Block with the content: {{block type="catalog/product_list" category_id="5" name="home.catalog.product.list" template="catalog/product/list.phtml"}} or similar to suit your case.

    Then call the_static_block(‘static_block_identifier’) in WordPress and you’re done.

    There is an alternative method described here that could also be implemented if that doesn’t quite work for your needs.

    I’ve gone back to this problem because I needed to have the toolbar and pager on my list and neither of these solutions helped. What I did was add the following to my theme’s layout XML file inside of the <default> tag:

    <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager" template="page/html/pager.phtml" />
                </block>
                <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
    </block>

    And then simply called the_block('product_list'); from WordPress.

    Marc

    Plugin Author jamesckemp

    (@jamesckemp)

    Have you guys definitely set the correct pack and theme in the settings?

    Hi James,

    All of the other blocks I’ve tried calling have worked, so I presume that the settings are fine.

    Marc

    Hi, we have also implemenetd the MWI into our magento/wordpress crossover, but we are having issues with for example

    <?php the_block('customer_account_dashboard') ?>

    The above posted example to put into a static block works, but im assuming this does not get passed through any session data as when it comes out the other end it has no user details.

    we have tried blocks like header and footer and they work fine.

    We really need this to be displayed to the screen as if you were in the backend of magento.. but we are having no joy.

    Any ideas anyone?

    Hi I have similar problem, I bought the shortcodes plugin just in case my php edits were wrong but still get ‘Sorry, that block could not be found.’ or blank space.

    “footer” does work, but nothing else will.

    I’ve tried pasting every block name from all over the site, both the text from between the quotes at name=”foo.Bar” and as=”fooBar”
    neither work so far. I have tried swapping Default for the custom theme’s name in the WPMI admin/setup but it made no difference.

    I am attempting to show the product home page listing from this page http://www.stovey.co.uk

    Has anyone got any suggestions please?

    Plugin Author jamesckemp

    (@jamesckemp)

    Please submit a ticket at jamesckemp.ticksy.com, I don’t get notified when posts are made here.

    Thanks,
    James

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sorry, that block could not be found.’ is closed to new replies.