<?php
//call on any page and any place
$attribute_code ="139";
echo $attribute_value = $product->getResource()->getAttribute($attribute_code)->getFrontend()->getValue($_product);
?>
//On Catalog Page
<?php $_product = $this->getProduct(); ?>
<?php echo $_product->getData('attributename'); ?>
//On List page
To display a product manufactures attribute on the product list page
Go Admin -> Catalog -> Attributes -> Manage Attributes
Set "Used in Product Listing" to Yes
Then in 'list.phtml'
<?php echo $_product->getAttributeText('manufacturer') ?>
Get Custom attribute value by name
<?php echo $attributeValue = Mage::getModel('catalog/product')
->load($_product->getId())
->getAttributeText('attributename');
?>
//call on any page and any place
$attribute_code ="139";
echo $attribute_value = $product->getResource()->getAttribute($attribute_code)->getFrontend()->getValue($_product);
?>
//On Catalog Page
<?php $_product = $this->getProduct(); ?>
<?php echo $_product->getData('attributename'); ?>
//On List page
To display a product manufactures attribute on the product list page
Go Admin -> Catalog -> Attributes -> Manage Attributes
Set "Used in Product Listing" to Yes
Then in 'list.phtml'
<?php echo $_product->getAttributeText('manufacturer') ?>
Get Custom attribute value by name
<?php echo $attributeValue = Mage::getModel('catalog/product')
->load($_product->getId())
->getAttributeText('attributename');
?>
How to convert Excel to CSV Python Pandas
ReplyDeleteHow to read data from excel file using Python Pandas
How to install NLTK for Python on Windows 64 bit
How to read data from excel file in Python
How to install NLTK for Python on Windows 64 bit