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

  1. Ircsome
    Posted 3 years 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."


  2. jamesckemp
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • Magento WordPress Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.