WordPress.org

Ready to get started?Download WordPress

Forums

Magento WordPress Integration
Attempts to Display Disabled Static Block (3 posts)

  1. Ircsome
    Member
    Posted 1 year ago #

    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/

  2. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Ircsome
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.