Hello All, I have developed an extension and posted on Magento Connect for free. An extension to implement a master password functionality, that allows you to login as any valid registered customer with one master password. Please have a look MasterPassword by DW. Kindly rate and review. Thanks
Hello, There are times when backend developer needs to create a form in admin end and we need to have an input box which accepts data and time. In this post I have explained the code for doing this. Open your form file, will be in app\code\local\[NameSpace]\[Module]\Block\Adminhtml\[BlockName]\Edit\Tab\Form.php There is a function _prepareForm() inside it. Add […]
There are times when we need to use the admin access to execute tasks. For example you want to call admin URLs etc. There is a simple way to do that, you need to change the current store to admin store.
Hello All, I am writing here a simple but important code snippet for getting all the existing product attributes
Hello All, I am writing here a script snippet for getting the credit card type used in the order
Hello All, I am writing here a script snippet for getting the orders count for given customer
I am explaining here the way to display the total quantities ordered in the Product view page. I have used Magento version 18.104.22.168 1) Block file Create a file app/code/local/Mage/Catalog/Block/Product/View/Quantity.php (note the codepool is ‘local’ ) Copy this code in the file and save the file. 2) View File Create a file app/code/design/frontend/default/default/template/catalog/product/view/quantity.phtml I have […]
Hello All, I am writing here the code to get various base directory paths, which might be useful. Assuming the directory is named ‘magento’ where your site is present and its the root directory of the filesystem.
Many of you might have come across the requirement, where they needed to change the order status dynamically. Difference between order state and status State is used by Magento to tell if the order is new, processing, complete, holded, closed, canceled etc.; while Statuses are the one that YOU would be defining at the back-end […]
We the Magento developers work mostly with data collections. For accessing the data we use ‘foreach’ to iterate over collection. What if we need only the first or last item from the collection, Magento gives an alternate way to do this. If you your Collection data as XML, There’s a method for that also If […]