By default the magento admin path is ‘http://Yourwemsite/admin’. You change this name (admin) with any name while installing. To get…
Magento
Delete the locks files from var/locks or Delete var folder and create it again and give 777 premission then tried…
Create test account and useGo do Magento Dashboard: Go to System -> Configuration Select Sales -> Payment Method (in the…
//To get the subtotal in shipping method (onepage checkout) $subtotal = Mage::getSingleton(‘checkout/session’)->getQuote()->getSubtotal() If cart total is less than 500 flat…
$customer = Mage::getSingleton(‘customer/session’)->getCustomer(); $email = $customer->getEmail(); // To get Email Address of a customer.$firstname = $customer->getFirstname(); // To get Firstname…
$layer = Mage::getSingleton(‘catalog/layer’);$_category = $layer->getCurrentCategory();$currentCategoryId= $_category->getId();
In PHTML<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘yourblockid’)->toHtml(); ?> IN CMS{{block type=”cms/block” block_id=”yourblockid“}}
$collection= Mage::getResourceModel(‘catalog/product_collection’)->addAttributeToSelect(‘*’)->setStoreId($storeId)->addStoreFilter($storeId)->setOrder(‘ordered_qty’, ’desc’)->setPageSize(10) ; foreach($collection as $product){$name=$product->getName();$productId=$product->getId();$price=$product->getPrice();}
Get Base Url :{{store url=””}}Get Skin Url :{{skin url=’images/imagename.jpg’}}Get Media Url :{{media url=’/imagename.jpg’}}Get Store Url : {{store url=’mypage.html’}}





