Hey as many of the user wants to have this feature and for this just us the following method first…
4x Masonry Grid
TO develop a module for magento first and fore most we have to under stand the directory structure of the…
Hey as many of the user wants to have this feature and for this just us the following method first…
Suppose you have a multi select attribute and you have displayed it in admin grid. You have displayed the multi…
Follow the steps to add column in sales order grid: Here by i am two column called Payment method and…
Magento seemingly makes the most mundane development tasks an exercise in patience. The over engineered PHP beast makes you do…
Below is the php code to create an order in magento. It requires a valid customer account with shipping and…
Go to app/code/core/Mage/Catalog/Model/ Open Url.php and go to line no 632 and comment(//) the below line If you are using…
Below is a php code to create a customer account in magento. $customer = Mage::getModel(‘customer/customer’);$password = ‘test1234’;$email = ‘dtest@gmail.com<script type=”text/javascript”>/*…
Below is a php code to create invoice for an order in magento. $order = Mage::getModel(‘sales/order’)->loadByIncrementId(‘100000001’);try {if(!$order->canInvoice()){Mage::throwException(Mage::helper(‘core’)->__(‘Cannot create an invoice.’));} …
Below is a php code to create a shipment for an order in magento. $order = Mage::getModel(‘sales/order’)->loadByIncrementId(‘100000001’); try { if($order->canShip())…
<?php $rootDir = “”; //include root path include($rootDir.”app/Mage.php”); $rootcatId= Mage::app()->getStore()->getRootCategoryId(); $categories = Mage::getModel(‘catalog/category’)->getCategories($rootcatId); function get_categories($categories) { $array= ‘<ul>’;…
If you are after a quick method to get all the category ID’s for your categories for some Excel lookups…
Rename ‘Add New’ buttonHere are the steps to rename the ‘Add New’ text to anything you required (for example, ‘Add…
Mage::getUrl(‘customer/account/login’); //login urlMage::getUrl(‘customer/account/logout’); //logout urlMage::getUrl(‘customer/account’); //My Account urlMage::getUrl(‘customer/account/create’); // Register urlMage::getUrl(‘checkout/cart’); //Checkout url
Here, I will show you how to track visitor’s data information in Magento. By visitor’s information, I mean information like…
//General Contact echo $name = Mage::getStoreConfig(‘trans_email/ident_general/name’); //sender name echo $email = Mage::getStoreConfig(‘trans_email/ident_general/email’); //sender email //Sales Representative echo $name = Mage::getStoreConfig(‘trans_email/ident_sales/name’); //sender name echo $email = Mage::getStoreConfig(‘trans_email/ident_sales/email’); //sender email //Customer Support echo $name = Mage::getStoreConfig(‘trans_email/ident_support/name’); //sender…
<?phpclass Namespace_Module_DisplayController extends Mage_Core_Controller_Front_Action{public function popupAction(){$block = $this->getLayout()->createBlock(‘core/template’)->setTemplate(‘zipcode/popup.phtml’);$this->getResponse()->setBody($block->toHtml());}}
By default the magento admin path is ‘http://Yourwemsite/admin’. You change this name (admin) with any name while installing. To get…
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…
System->Configuration->Catalog->Frontend You can change the List Mode.
//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…