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…
2013 August
Below is the php code to create an order in magento. It requires a valid customer account with shipping and…
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())…
Below is a php code to create a credit memo for an order in magento.
<?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>’;…
Rename ‘Add New’ buttonHere are the steps to rename the ‘Add New’ text to anything you required (for example, ‘Add…
If you are after a quick method to get all the category ID’s for your categories for some Excel lookups…
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