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())…
Uncategorized
<?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>’;…
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
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…
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…





