by Shashi Dhar Kumar | Aug 10, 2015 | Magento, Open-Source, PHP, Programming
Here is the example code by which you can get last order details into mangento of using email id. $_customer = Mage::getModel(‘customer/customer’); $_customer->loadByEmail(‘demo@demo.com’); $orders =...
by Shashi Dhar Kumar | Mar 7, 2015 | Magento, Programming
The easiest way to remove any link from the My Account panel in Magento is to first copy: app/design/frontend/base/default/template/customer/account/navigation.phtml to app/design/frontend/enterprise/YOURSITE/template/customer/account/navigation.phtml Open the file...
by Shashi Dhar Kumar | Dec 1, 2014 | Magento, Programming
Go to customer accountcontroller find _welcomeCustomer method. file location must be like app/code/core/Mage/Customer/controllers/AccountController.php Search for protected function _successProcessRegistration(Mage_Customer_Model_Customer $customer) function at...
by Shashi Dhar Kumar | Nov 25, 2014 | Magento, Programming
In one of my Magento projects, on development environment everything was working fine but when the site was live “Invoice” print in magento admin[Admin>>Sales>>Orders>>Invoice>>Open Invoice>>Click print button] was giving Fatal error: Declaration of...
by Shashi Dhar Kumar | Sep 28, 2014 | Magento, Programming
I have problem to show the EMI price for particular product in bundled product in Magento. So I have tried to go through the google and found some interesting forum post to get the bundle product’s price. <?php $product_id = YOUR_PRODUCT_ID; $bundled_product...
by Shashi Dhar Kumar | Jun 9, 2014 | Magento, MySQL, Open-Source, PhpMyAdmin, Programming
Moving magento site from subdomain to main domain (and vice-versa) is quite easy. And you can do it by two different way and you will feel it is more easy when you go through how to do it. Process I: You need to do as per following steps to achieve this: STEP 1: Go to...