Research and Development work on PHP, MYSQ,JQuery,Angular Js,React Native,Laravel,Wordpress,Magento,Joomla
Saturday, August 18, 2012
Magento get store config
$strFbLink = Mage::getStoreConfig('banner/socialnetworking/banner_facebook_url');
$strTwLink = Mage::getStoreConfig('banner/socialnetworking/banner_twitter_url');
$strLiLink = Mage::getStoreConfig('banner/socialnetworking/banner_linkedin_url');
Tuesday, August 14, 2012
Magento display date format
<?php
$strReviewDate = $_review->getCreatedAt();
$arrReviewDate = explode(' ',$strReviewDate);
$intReviewDate = strtotime($arrReviewDate[0]);
$dtReviewDate = date('d F, Y',$intReviewDate);
echo " - ".$dtReviewDate;
?>
$strReviewDate = $_review->getCreatedAt();
$arrReviewDate = explode(' ',$strReviewDate);
$intReviewDate = strtotime($arrReviewDate[0]);
$dtReviewDate = date('d F, Y',$intReviewDate);
echo " - ".$dtReviewDate;
?>
Monday, August 13, 2012
How to display manufacturer attributes on product listing page in magento?
Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('manufacturer');
Thursday, August 9, 2012
magento custom add to cart link
getLayout()->createBlock('catalog/product_list')->getAddToCartUrl($_product) ?>
How to display final price on listing page in magento?
$_coreHelper = $this->helper('core');
$_taxHelper = $this->helper("tax");
$_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true);
$_finalPriceFormated = $_coreHelper->currency($_finalPriceInclTax,true,false);
echo $_finalPriceFormated;
//echo $this->getPriceHtml($_product, true) ?>
$_taxHelper = $this->helper("tax");
$_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true);
$_finalPriceFormated = $_coreHelper->currency($_finalPriceInclTax,true,false);
echo $_finalPriceFormated;
//echo $this->getPriceHtml($_product, true) ?>
Tuesday, August 7, 2012
Magento solve enable cookies
http://ka.lpe.sh/2011/07/09/magento-cant-loginadd-items-in-chrome-and-ie/
Remove Price from Custom Options
catalog.xml
Comment following line
Comment following line
<reference name="content">
<remove name="product.clone_prices"/>
reference>
Subscribe to:
Posts (Atom)