WordPress.org

Support

Support » Plugins and Hacks » Magento WordPress Integration » [Plugin: Magento WordPress Integration] Attempts to Display Disabled Static Block

[Plugin: Magento WordPress Integration] Attempts to Display Disabled Static Block

  • using the following …

    <?php the_static_block('side_bar_4'); ?>
    <?php the_static_block('side_bar_5'); ?>
    <?php the_static_block('side_bar_6'); ?>

    all blocks defined in magento. 4 is enabled, 5 & 6 are disabled.

    plugin attempts to display block regardless of status resulting in error message.

    So in example above, 4 displays OK, 5&6 produce “Sorry, that block could not be found. Please check your block identifier.”

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

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

    @jamesckemp

    I hadn’t considered this scenario. Would you prefer if the block is found but not enabled that nothing shows at all – then when enabled it does show.

    Possible scenario – sale banners, or advert space

    yes … when the block is disabled it should not be displayed, or with an error but commented out with <!-- side_bar_5 disabled -->. I think this is the way magento behaves. I use static blocks as an “easy” way for the site owner to create some customer content on-the-fly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Magento WordPress Integration] Attempts to Display Disabled Static Block’ is closed to new replies.
Skip to toolbar