Get adminhtml Front Name
$adminFrontName = (string)Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
Get Product image path:
$productId = 1;
$product = Mage::getModel('catalog/product')->load($productId);
$path = Mage::helper('catalog/image')->init($product, 'image')->resize(75, 75);
Format a number as price:
$this->formatPrice(10);
Call a .phtml explicitly:
echo $this->getLayout()->createBlock('sales/order_recent')->setTemplate('sales/order/recent.phtml')->toHtml();
Get Currency Code:
Mage::app()->getStore()->getCurrentCurrencyCode();
Get Currency Symbol:
Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
To load the product Tier price details in the product list view
$_productCollection=$this->getLoadedProductCollection();
$_productCollection->addTierPriceData();
$adminFrontName = (string)Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
Get Product image path:
$productId = 1;
$product = Mage::getModel('catalog/product')->load($productId);
$path = Mage::helper('catalog/image')->init($product, 'image')->resize(75, 75);
Format a number as price:
$this->formatPrice(10);
Call a .phtml explicitly:
echo $this->getLayout()->createBlock('sales/order_recent')->setTemplate('sales/order/recent.phtml')->toHtml();
Get Currency Code:
Mage::app()->getStore()->getCurrentCurrencyCode();
Get Currency Symbol:
Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
To load the product Tier price details in the product list view
$_productCollection=$this->getLoadedProductCollection();
$_productCollection->addTierPriceData();
No comments:
Post a Comment