Magent Version > 1.5
1. Easy Tabs: http://connect20.magentocommerce.com/community/magento_easy_tabs
2. CueBlock Zoom: http://connect20.magentocommerce.com/community/CueBlocks_Zoom
3. Vert Navigation: http://connect20.magentocommerce.com/community/RicoNeitzel_VertNav
4. Tell A Friend: http://connect20.magentocommerce.com/community/Mp_Tell_A_Friend
5.Multiple Table Reates
http://connect20.magentocommerce.com/community/Pw_Multipletablerates
6. Magento easy lightbox : http://connect20.magentocommerce.com/community/magento_easy_lightbox
FACEBOOK CONNECT:http://inchoo.net/ecommerce/magento/facebook-connect-magento-extension/
http://www.magentocommerce.com/magento-connect/eitai2001/extension/1468/order-status
http://www.magentocommerce.com/magento-connect/FOOMAN/extension/957/fooman_sameorderinvoicenumber
http://www.magentocommerce.com/magento-connect/i960/extension/1477/admin-custom-shipping-rate
http://www.magentocommerce.com/magento-connect/centerax/extension/2927/automatic-db-backups
http://www.magentocommerce.com/magento-connect/plieninger/extension/2586/editable-order
http://www.magentocommerce.com/magento-connect/MageParts/extension/1621/commercial-extension-manager
http://www.magentocommerce.com/magento-connect/bleulliette/extension/7619/bl_customgrid
http://www.magentocommerce.com/magento-connect/ifuel/extension/7302/seevolution_connector
http://www.google.com/support/merchants/bin/answer.py?answer=188494#GB
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.
Sunday, 8 July 2012
contact us email settings on magento..
system/configuration/contacts/ --------- contactus and email options
system/configuration/system/ ----------- mail sending settings
app/code/core/mage/core/model/email/template.php
public function getMail() { if (is_null($this->_mail)) { $my_smtp_host = Mage::getStoreConfig('system/smtp/host'); $my_smtp_port = Mage::getStoreConfig('system/smtp/port'); $config = array( 'port' => $my_smtp_port, //optional - default 25 'auth' => 'login', 'username' => 'test@sankhalainfo.co.in', 'password' => 'info#1234' ); $transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config); Zend_Mail::setDefaultTransport($transport); /*End Hack*/ $this->_mail = new Zend_Mail('utf-8'); } return $this->_mail; }
system/configuration/system/ ----------- mail sending settings
app/code/core/mage/core/model/email/template.php
public function getMail() { if (is_null($this->_mail)) { $my_smtp_host = Mage::getStoreConfig('system/smtp/host'); $my_smtp_port = Mage::getStoreConfig('system/smtp/port'); $config = array( 'port' => $my_smtp_port, //optional - default 25 'auth' => 'login', 'username' => 'test@sankhalainfo.co.in', 'password' => 'info#1234' ); $transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config); Zend_Mail::setDefaultTransport($transport); /*End Hack*/ $this->_mail = new Zend_Mail('utf-8'); } return $this->_mail; }
Change Magento Admin URL
All you need is to properly set your custom admin url in the config file /app/etc/local.xml. In this file change this:
to this:
How to change the Magento Admin Panel Title?
Edit the main.xml file located at "/app/design/adminhtml/default/default/layout/main.xml"
Magento Admin
how to fetch all states of country in magento?
$countryList = Mage::getResourceModel('directory/country_collection') ->loadData() ->toOptionArray(false);
$regionCollection = Mage::getModel('directory/region') ->getResourceCollection() ->addCountryFilter('IN')->load();
how to display all countries in magento ?
$countryList = Mage::getResourceModel('directory/country_collection')->loadData()->toOptionArray(false); print_r( $countryList);
how to view recent products in magento?
getCollection()->addAttributeToFilter('status',1)->addAttributeToFilter('visibility',4); $objRecentProducts->getSelect()->order('entity_id DESC'); $objRecentProducts->setPage(1, 5); ?>
- getIdBySku($objRecentProduct['sku']); $_product = $objProduct->load($productId); if($intI == 4) break; $intI++; ?>
- getName();?>
how to check home page in magento?
if(Mage::getSingleton('cms/page')->getIdentifier() == 'home' &&Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' )
how to view all brands in magento containing products?
setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())->addFieldToFilter('attribute_code', 'manufacturer');
$objSpecAttribute = $objManufacturers->getFirstItem()->setEntity(Mage::getModel('catalog/product')->getResource());
$arrAllManufactuers = $objSpecAttribute->getSource()->getAllOptions(false);
$i=0;
foreach($arrAllManufactuers as $objBrands)
{
$objProduct = mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('manufacturer',$objBrands["value"])->addAttributeToFilter('status','1')->addAttributeToFilter('visibility','4');
if($objProduct->count())
{
?>
">
}
}?>
How to view recent sold product of current category in magento?
load(3);
$_productCollection = $cats->getProductCollection() ->addAttributeToFilter('visibility',4);
$intNumRecord = Mage::getStoreConfig('banner/carousel_configuration/bestseller_number_product');
$_productCollection = $_productCollection ->setPageSize($intNumRecord);
if($_productCollection->count()) { ?>
load($_products->getId());?>
how to view popular products in magento? or maximum sold products in store
getStore()->getStoreId(); $this->_productCollection = Mage::getResourceModel('reports/product_collection');
if ($this->getTimeLimit())
{
$product = Mage::getModel('catalog/product');
$todayDate = $product->getResource()->formatDate(time());
$startDate = $product->getResource() ->formatDate(time() - 60 * 60 * 24 * $this ->getTimeLimit());
$this->_productCollection = $this->_productCollection ->addOrderedQty($startDate, $todayDate);
}
else
{
$this->_productCollection = $this->_productCollection ->addOrderedQty();
}
$intNumRecord = Mage::getStoreConfig('banner/carousel_configuration/bestseller_number_product');
$this->_productCollection = $this->_productCollection ->addAttributeToSelect('*') ->setStoreId($storeId) ->addStoreFilter($storeId) ->setOrder('ordered_qty', 'desc') ->setPageSize($intNumRecord);
$_productCollection = $this->_productCollection ->setPageSize($intNumRecord);
if($_productCollection->count())
{ ?>
load($_products->getId());?>getShortDescription();if(strlen($strproductdescription)>82) $strproductdescription = trim(substr($strproductdescription,0,81)."...");$strProductName = $_product->getName(); ?> 22){$strProductName = substr($strProductName,0,21)."...";}?>
__('More...');?>
How to display total reviews of product in magento?
$intTotalReviewPerProduct = $objCategoryBanners->fnGetTotalProductReview($_product);
How to display average ratings of product in magento?
public function fnGetTotalProductReview($objCurrentProduct)
{
$objReview = Mage::getModel('review/review');
return $objReview ->getTotalReviews($objCurrentProduct->getId(),true);
}
{
$objReview = Mage::getModel('review/review');
return $objReview ->getTotalReviews($objCurrentProduct->getId(),true);
}
$intTotalReviewPerProduct = fnGetTotalProductReview($_product);
if($intTotalReviewPerProduct > 0){echo $this ->getLayout() ->createBlock('catalog/product_list') ->getReviewsSummaryHtml($_product);
}
}
How to get the customer login, logout, register and checkout url?
Mage::getUrl('customer/account/login'); //login url
Mage::getUrl('customer/account/logout'); //logout url
Mage::getUrl('customer/account'); //My Account url
Mage::getUrl('customer/account/create'); // Register url
Mage::getUrl('checkout/cart'); //Checkout url
Mage::getUrl('customer/account/logout'); //logout url
Mage::getUrl('customer/account'); //My Account url
Mage::getUrl('customer/account/create'); // Register url
Mage::getUrl('checkout/cart'); //Checkout url
How to show all the manufactures or brand list in magento?
$product = Mage::getModel('catalog/product');
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
->setEntityTypeFilter($product->getResource()->getTypeId())
->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
->setEntityTypeFilter($product->getResource()->getTypeId())
->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
foreach ($manufacturers as $manufacturer)
{
echo Mage::getBaseUrl(); ?>catalogsearch/advanced/result/?manufacturer[]=$manufacturer['value']
echo Mage::getBaseUrl(); ?>catalogsearch/advanced/result/?manufacturer[]=$manufacturer['label']
}
set or get magento session
//Setting session
Mage::getSingleton('core/session')->setMySessionVariable('value');
//Getting session
Mage::getSingleton('core/session')->getMyDesignProductVariable()
//Unset session
Mage::getSingleton('core/session')->setTestingMagento();
Mage::getSingleton('core/session')->setMySessionVariable('value');
//Getting session
Mage::getSingleton('core/session')->getMyDesignProductVariable()
//Unset session
Mage::getSingleton('core/session')->setTestingMagento();
//(Use customer or core session in frontend. Use adminhtml session in the backend.)
Core Session:- Mage::getSingleton(‘core/session’)
Customer Session:- Mage::getSingleton(‘customer/session’)
Admin Session:- Mage::getSingleton(‘adminhtml/session’)
Core Session:- Mage::getSingleton(‘core/session’)
Customer Session:- Mage::getSingleton(‘customer/session’)
Admin Session:- Mage::getSingleton(‘adminhtml/session’)
How To fetch all categories and subcategories in magento?
$_helper = Mage::helper(‘catalog/category’)
$_categories = $_helper->getStoreCategories()
$currentCategory = Mage::registry(‘current_category’)
if (count($_categories) > 0)
{
foreach($_categories as $_category)
{
echo $_category->getName()
$_category = Mage::getModel(‘catalog/category’)->load($_category->getId())
$_subcategories = $_category->getChildrenCategories()
if (count($_subcategories) > 0)
{
foreach($_subcategories as $_subcategory)
{
echo $_subcategory->getName()
}
}
}
}
$_categories = $_helper->getStoreCategories()
$currentCategory = Mage::registry(‘current_category’)
if (count($_categories) > 0)
{
foreach($_categories as $_category)
{
echo $_category->getName()
$_category = Mage::getModel(‘catalog/category’)->load($_category->getId())
$_subcategories = $_category->getChildrenCategories()
if (count($_subcategories) > 0)
{
foreach($_subcategories as $_subcategory)
{
echo $_subcategory->getName()
}
}
}
}
How to get cms content from cms id in magento?
$objCmsPage = Mage::getModel('cms/page')->getCollection()->addFieldToFilter('identifier','next-day');
foreach($objCmsPage as $objCmsPageContent)
{
break;
}
$objCmsHelper = Mage::helper('cms');
$objProcessor = $objCmsHelper->getPageTemplateProcessor();
echo $objProcessor->filter($objCmsPageContent->getContent());
foreach($objCmsPage as $objCmsPageContent)
{
break;
}
$objCmsHelper = Mage::helper('cms');
$objProcessor = $objCmsHelper->getPageTemplateProcessor();
echo $objProcessor->filter($objCmsPageContent->getContent());
Subscribe to:
Posts (Atom)