If you are searching for the professional web development, app development company in Vadodara then Cloudswift Solutions is the name on which you can trust. Visit our website for more information.
Friday, 17 August 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');
Monday, 13 August 2012
Magento display date format
$strReviewDate = $_review->getCreatedAt();
$arrReviewDate = explode(' ',$strReviewDate);
$intReviewDate = strtotime($arrReviewDate[0]);
$dtReviewDate = date('d F, Y',$intReviewDate);
echo " - ".$dtReviewDate;
?>
$arrReviewDate = explode(' ',$strReviewDate);
$intReviewDate = strtotime($arrReviewDate[0]);
$dtReviewDate = date('d F, Y',$intReviewDate);
echo " - ".$dtReviewDate;
?>
Sunday, 12 August 2012
How to display manufacturer attributes on product listing page in magento?
Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('manufacturer');
Thursday, 9 August 2012
magento custom add to cart link
getLayout()->createBlock('catalog/product_list')->getAddToCartUrl($_product) ?>
Wednesday, 8 August 2012
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, 7 August 2012
Magento solve enable cookies
http://ka.lpe.sh/2011/07/09/magento-cant-loginadd-items-in-chrome-and-ie/
Monday, 6 August 2012
Remove Price from Custom Options
catalog.xml
Comment following line
Comment following line
<reference name="content">
<remove name="product.clone_prices"/>
reference>Thursday, 19 July 2012
To Be implement in magento?
http://www.rapidcommerce.eu/blog/2012/05/magento-product-list-ajax-scroll/
http://bluezeal.in/ccavenue4magento/ccavenue-payment-module-for-magento
http://keertikiran.blogspot.in/2012/05/display-date-in-specified-format-in.html
product question extension....
http://www.magentocommerce.com/magento-connect/cueblocks-zoom.html
Mturbo cache management
http://www.tonecruisers.com/OurMusic.html (to create playlist)
http://www.magentocommerce.com/magento-connect/cueblocks-zoom.html
http://www.magentocommerce.com/magento-connect/gala-color-swatches-free-9787.html
http://www.uniformadvantage.com/
http://bluezeal.in/ccavenue4magento/ccavenue-payment-module-for-magento
http://keertikiran.blogspot.in/2012/05/display-date-in-specified-format-in.html
product question extension....
http://www.magentocommerce.com/magento-connect/cueblocks-zoom.html
Mturbo cache management
http://www.tonecruisers.com/OurMusic.html (to create playlist)
http://www.magentocommerce.com/magento-connect/cueblocks-zoom.html
http://www.magentocommerce.com/magento-connect/gala-color-swatches-free-9787.html
http://www.uniformadvantage.com/
Wednesday, 18 July 2012
How to play youtube videos in magento website?
Create an attribute "video_embed_code"
Now go to attribute set : Default
assign this attribute to general.
When you add product it shows on left side label Video Enbed Code : 12AvSETQ
Now save the product
While displaying product on product detail view page :
getData('video_embed_code')): ?>
getResource()->getAttribute('video_embed_code')->getFrontend()->getValue($_product); ?>
Tuesday, 17 July 2012
How to get Subtotal of current cart in magento?
$objCheckout = $this->getLayout()->createBlock('checkout/cart_sidebar');
$intTotal = $objCheckout->getSubtotal();
$intTotal = $objCheckout->getSubtotal();
Sunday, 15 July 2012
How to implement ajax in magento? (frontend side)
ajax.phtml
------------
app/code/local/companyname/helloworld/controllers/indexController.php
---------------
class Companyname_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action
{
public function AjaxAction()
{
$this->loadLayout();
$this->renderLayout();
}
}
app/design/frontend/default/themename/layout/helloworld.xml
-----------------------
page/ajax.phtml
app/design/frontend/default/themename/template/page/ajax.phtml
--------------------------------
getChildHtml('content'); ?>
app/design/frontend/default/themename/template/helloworld/ajaxresponse.phtml
--------------------------------
echo "response of ajax is executed";
?>
------------
app/code/local/companyname/helloworld/controllers/indexController.php
---------------
class Companyname_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action
{
public function AjaxAction()
{
$this->loadLayout();
$this->renderLayout();
}
}
app/design/frontend/default/themename/layout/helloworld.xml
-----------------------
app/design/frontend/default/themename/template/page/ajax.phtml
--------------------------------
getChildHtml('content'); ?>
app/design/frontend/default/themename/template/helloworld/ajaxresponse.phtml
--------------------------------
echo "response of ajax is executed";
?>
How to implement module creater in magento?
Download module creater from following link
--------------------------------------------------------------------------------
www.magentocommerce.com/magento-connect/modulecreator.html
install into local server and execute by folllowing url
--------------------------------------------------------------------------------
http://127.0.0.1/modulecreater/
Namespace : Your company name
Module : module name
Root Directory : ..\magento_blank (magento project name)
Design : default
--------------------------------------------------------------------------------
www.magentocommerce.com/magento-connect/modulecreator.html
install into local server and execute by folllowing url
--------------------------------------------------------------------------------
http://127.0.0.1/modulecreater/
Namespace : Your company name
Module : module name
Root Directory : ..\magento_blank (magento project name)
Design : default
Friday, 13 July 2012
How to get attribute details from attribute in magento?
$intAttributeId = '672';
$intAttributeLabel = 'color';
$objAttributeInfo = Mage::getModel('eav/entity_attribute')->load($intAttributeId);
$strFrontendLabel = $objAttributeInfo->getFrontendLabel();
$intAttributeLabel = 'color';
$objAttributeInfo = Mage::getModel('eav/entity_attribute')->load($intAttributeId);
$strFrontendLabel = $objAttributeInfo->getFrontendLabel();
Thursday, 12 July 2012
How to display mysql query in magento?
$objCategoryProducts = Mage::getModel('catalog/category')->load($intCategoryId)->getProductCollection()->addAttributeToFilter(array(array('attribute' => 'product_status','eq' => '126'),array('attribute' => 'product_stock_status','eq' => '486')))->setPageSize(1);
//echo $objCategoryProducts->printLogQuery(true);die;
//echo $objCategoryProducts->printLogQuery(true);die;
Monday, 9 July 2012
in_array example
$arrDefaultArray = Array ( [0] => 64 [1] => 66 [2] => 62 [3] => 61 [4] => 60 )
$intProductCategoryId = 66;
if(in_array($intProductCategoryId,$arrDefaultArray))
{}
$intProductCategoryId = 66;
if(in_array($intProductCategoryId,$arrDefaultArray))
{}
How to get prarent category id from current category in magento?
$objParentCat = 20;
$objCurrCat = Mage::getModel('catalog/category')->load($objParentCat->getParentId());
$objCurrCat = Mage::getModel('catalog/category')->load($objParentCat->getParentId());
How to fetch all categories of product in magento (on product details page)?
$product_model = Mage::getModel('catalog/product');
$_product = $product_model->load($intCurrentProductId);
$arrAllCurrentProductCategories = $product_model->getCategoryIds($_product);
$_product = $product_model->load($intCurrentProductId);
$arrAllCurrentProductCategories = $product_model->getCategoryIds($_product);
How to getch all root categories and its subcategories in magento?
$intRootCategoryId = Mage::app()->getStore()->getRootCategoryId();
$objParentCategories = Mage::getModel('catalog/category')->getCollection()->addAttributeToFilter('parent_id',$intRootCategoryId)->addAttributeToFilter('is_active',1)->setOrder('position','ASC');
foreach($objParentCategories as $objSpecParentCategory)
{
$objFinalCategory = Mage::getModel('catalog/category')->load($objSpecParentCategory->getId());
$objSubCategories = Mage::getModel('catalog/category')->getCollection()->addAttributeToFilter('parent_id',$objSpecParentCategory->getId())->addAttributeToFilter('is_active',1)->setOrder('position','ASC');
if ($objSubCategories->count())
{
foreach($objSubCategories as $objSpecSubCategory)
{
$objFinalSubCategory = Mage::getModel('catalog/category')->load($objSpecSubCategory->getId());
$objFinalSubCategory->getUrl();
$objFinalSubCategory->getName();
}
}
}
$objParentCategories = Mage::getModel('catalog/category')->getCollection()->addAttributeToFilter('parent_id',$intRootCategoryId)->addAttributeToFilter('is_active',1)->setOrder('position','ASC');
foreach($objParentCategories as $objSpecParentCategory)
{
$objFinalCategory = Mage::getModel('catalog/category')->load($objSpecParentCategory->getId());
$objSubCategories = Mage::getModel('catalog/category')->getCollection()->addAttributeToFilter('parent_id',$objSpecParentCategory->getId())->addAttributeToFilter('is_active',1)->setOrder('position','ASC');
if ($objSubCategories->count())
{
foreach($objSubCategories as $objSpecSubCategory)
{
$objFinalSubCategory = Mage::getModel('catalog/category')->load($objSpecSubCategory->getId());
$objFinalSubCategory->getUrl();
$objFinalSubCategory->getName();
}
}
}
Sunday, 8 July 2012
Some Useful links
torrent like for download http://torrentz.eu/
resume format http://speckyboy.com/2010/05/05/10-free-professional-html-and-css-templates/
for upload n number of files http://www.mediafire.com/myfiles.php?r=hjyye
torrent like for downloads http://www.picktorrent.com/
rajesh blog http://linuxopensourceindia.blogspot.com/
magento extension link http://www.magentocommerce.com/magento-connect/
vizualize me resume update site http://vizualize.me/
online recharge http://www.paytm.com/
for buying domain http://www.godaddy.com/
jobs website http://www.jobrapido.co.in/
online shopping link http://www.homeshop18.com/
xml and rss feed links http://www.w3schools.com/php/php_ajax_rss_reader.asp
for good sms http://www.feelings2share.com/
links for download serial keys http://www.serials.ws/index.php
light box important link http://orangoo.com/labs/GreyBox/
javascript key event code link http://www.webonweboff.com/tips/js/event_key_codes.aspx
trace mobile number (check mobile number is of which state and city) http://trace.bharatiyamobile.com/
websites ratings http://www.seomoz.org/web2.0
website for download document http://www.docstoc.com/
mysql cookbook http://www.freeopenbook.com/mysqlcookbook/mysqlckbk-chp-5.html
calculate internet speed http://pcnineoneone.com/speedtest.php
sms sending site with no site name come on footer http://www.site2sms.com/user/send_sms_next.asp
online tshirt purchase http://www.tshirts.in/
pick torrent http://www.picktorrent.com/
torrent links for download http://www.torrentportal.com/
torrent links for download http://extratorrent.com/
jquery slider carhousies http://www.designdim.com/2011/01/19-outstanding-jquery-sliders-and-carousels/
http://thomaslanciaux.pro/jquery/jquery_carousel.htm
resume format http://speckyboy.com/2010/05/05/10-free-professional-html-and-css-templates/
for upload n number of files http://www.mediafire.com/myfiles.php?r=hjyye
torrent like for downloads http://www.picktorrent.com/
rajesh blog http://linuxopensourceindia.blogspot.com/
magento extension link http://www.magentocommerce.com/magento-connect/
vizualize me resume update site http://vizualize.me/
online recharge http://www.paytm.com/
for buying domain http://www.godaddy.com/
jobs website http://www.jobrapido.co.in/
online shopping link http://www.homeshop18.com/
xml and rss feed links http://www.w3schools.com/php/php_ajax_rss_reader.asp
for good sms http://www.feelings2share.com/
links for download serial keys http://www.serials.ws/index.php
light box important link http://orangoo.com/labs/GreyBox/
javascript key event code link http://www.webonweboff.com/tips/js/event_key_codes.aspx
trace mobile number (check mobile number is of which state and city) http://trace.bharatiyamobile.com/
websites ratings http://www.seomoz.org/web2.0
website for download document http://www.docstoc.com/
mysql cookbook http://www.freeopenbook.com/mysqlcookbook/mysqlckbk-chp-5.html
calculate internet speed http://pcnineoneone.com/speedtest.php
sms sending site with no site name come on footer http://www.site2sms.com/user/send_sms_next.asp
online tshirt purchase http://www.tshirts.in/
pick torrent http://www.picktorrent.com/
torrent links for download http://www.torrentportal.com/
torrent links for download http://extratorrent.com/
jquery slider carhousies http://www.designdim.com/2011/01/19-outstanding-jquery-sliders-and-carousels/
http://thomaslanciaux.pro/jquery/jquery_carousel.htm
Subscribe to:
Posts (Atom)