Magento/PHP: Add static block to end of products list(Grid) on category page? -


i basing code off similar solution displays block every 3 products:

<?php if($i % 3 == 0){ ?> -- static block here --         <?php } ?>  

i display static block once after products vs multiple times, every 3.

if you'd render static block @ bottom of product list, go list.phtml page , scroll bottom. prior bottom , call static block so:

<?php echo $this->getlayout()->createblock('cms/block')->setblockid('block_identifier')->tohtml(); ?>  

that should trick, , outside of if/else statement list/grid render regardless of view mode you're in.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -