Monday, May 7, 2012
Thursday, April 26, 2012
Important Magento: Edit links on Customer Account page in Magento
Important Magento: Edit links on Customer Account page in Magento: When a user log in to a Magento Store, he/ she is taken to the User Account page. It looks like this: There are various items on t...
Saturday, February 11, 2012
Magento...............
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();
Wednesday, November 2, 2011
Subscribe to:
Posts (Atom)