Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Extra code for showing is a pallet delivered product
- $att_is_pallet = $_product->getResource()->getAttribute('att_is_pallet')->getFrontend()->getValue($_product);
- if( isset( $att_is_pallet ) && !empty( $att_is_pallet ) && $att_is_pallet == "Yes" ) {
- // New header block
- $theBlock = 'block_pallet';
- if(Mage::getModel('cms/block')->load($theBlock)->getIsActive() && $tempHTML = Mage::getModel('cms/block')->load($theBlock)->getContent() ) {
- echo '<div class="is-pallet">';
- echo Mage::getSingleton('widget/template_filter')->filter($tempHTML);
- echo '</div>';
- }
- }
- // /Extra code for showing is a pallet delivered product
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement