Search

Aug 10, 2015

Get Custom Attribute in Magento


<?php 

$_product= Mage::getSingleton('catalog/product')->load($_item->getProductId());
echo $_product->getResource()->getAttribute('attributeCode')->getFrontend()->getValue($_product);
        
$product->getData("attributeCode");
$product->getAttributeText("attributeCode");

?>

Aug 4, 2015

Config magento server apache2

<VirtualHost *:80>
   ServerAdmin admin@your-domain.com
   DocumentRoot /var/www/html/madegoods/
   ServerName bluepheasant.com
   ServerAlias www.bluepheasant.com
      <Directory /var/www/html/madegoods/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
         Order allow,deny
         allow from all
      </Directory>
   ErrorLog /var/log/apache2/madegoods.com-error_log
   CustomLog /var/log/apache2/madegoods.com-access_log common
</VirtualHost>