Advertisement
moggiex

Untitled

Feb 19th, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 KB | None | 0 0
  1. /* Old Code: */
  2. $att_bullet1 = $this->htmlEscape( $_product->getData('att_bullet1') );
  3. $att_bullet2 = $this->htmlEscape( $_product->getData('att_bullet2') );
  4. $att_bullet3 = $this->htmlEscape( $_product->getData('att_bullet3') );
  5. $att_bullet4 = $this->htmlEscape( $_product->getData('att_bullet4') );
  6. $att_bullet5 = $this->htmlEscape( $_product->getData('att_bullet5') );
  7.  
  8. /* Replace with this: */
  9. $att_bullet1 = $this->htmlEscape( Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product, 'att_bullet1', $storeId); );
  10. $att_bullet2 = $this->htmlEscape( Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product, 'att_bullet4', $storeId); );
  11. $att_bullet3 = $this->htmlEscape( Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product, 'att_bullet3', $storeId); );
  12. $att_bullet4 = $this->htmlEscape( Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product, 'att_bullet4', $storeId); );
  13. $att_bullet5 = $this->htmlEscape( Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product, 'att_bullet5', $storeId); );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement