Skip to main content

Posts

Delete Order ,You can found this code every where ....

require 'app/Mage.php'; Mage::app('admin')->setUseSessionInUrl(false);                                                                                                                  //replace your own orders numbers here: $test_order_ids=array(   '400000032',   '400000031'    ); foreach($test_order_ids as $id){     try{         Mage::getModel('sales/order')->loadByIncrementId($id)->delete();         echo "order #".$id." is removed".PHP_EOL;     }catch(Exception $e){         echo "order #".$id." could not be remvoved: ".$e->getMessage().PHP_EOL;     } } echo "done"; but some time you got an error.:)

Variables that can be used in any transactional email

Variable Description {{store url=""}} Store website address. {{var logo_url}} URL of store logo {{var logo_alt}} Alternative text for store logo if image is unavailable. {{var store.getFrontendName()}} Store name (as defined in system configurations) {{var store url="customer/account/"}} Web address of customer accounts page. {{config path='trans_email/ident_support/email'}} Support email address (as defined in store configuration) {{config path='general/store_information/phone'}} Store phone number (as defined in store configuration) {{config path="general/store_information/address"}} Store address (as defined in store configuration) {{store url="adminhtml/system_account"}} Link address for admin login page. New Order (and New Order for Guest) Variable Description {{htmlescape var=$order.getCustomerName()}} * For New Order only, Name of customer as defined in Customer Information for order {{var order.increment