Magento eCommerce 1.3.2.4:: Or statement based on variable input on attribute.phtml page – using static block as includes
I used this statement below to get either static block for a variable input on the attributes.phtml page
<?php if ($_product->getData(‘upac_features’)): ?>
<?php $_upac_features= $_product->getResource()->getAttribute(‘upac_features’)->getFrontend()->getValue($_product); ?>
<?php if (($_upac_features==’ipod_sat_hd’) or ($_upac_features==’ipod_hd’)){
echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘upac-ipod-no-sirius’)->toHtml()
; }
else {
echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘upac-ipod-sirius’)->toHtml()
; } ?>
<?php endif; ?>
Advertisement
Categories: Uncategorized
I enjoyed the article and thanks respecting posting such valuable info at verge on conclusion unsettled of all of us to skim, I adorn upon it both profitable and instructive and I method to do homage it as on the other side of as I can.
ray ban 3025