Home > Uncategorized > Magento eCommerce 1.3.2.4:: Or statement based on variable input on attribute.phtml page – using static block as includes

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
  1. February 4, 2010 at 12:14 am | #1

    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

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.