Adminhtml Frontname in Magento
I am writing here a code snipet for fetching the name (alias) used to access admin end, which is set to ‘admin’ by default Below code for creating an admin URL
Opensource Web Solutions
I am writing here a code snipet for fetching the name (alias) used to access admin end, which is set to ‘admin’ by default Below code for creating an admin URL
As you already might have noticed, there are many modules in Magento which has file uploading facility in admin end. I had to make a custom form for file uploading in Magento in frontend, I am explaining here the way to upload a file. Magento has a class (Varien_File_Uploader) defined for this purpose. The class […]
In one of my post I explained the basics of SOAP API, please refer Magento SOAP API before proceeding further I am listing here the methods to create Categories and Products using SOAP API 1) Category a) Category Creation b) Category deletion 2) Product a) Product Creation b) Product Updation b) Product Deletion 3) Assigning […]
These days I am working on Payment Module. I am writing here the code which is useful and related to Payment module 1) To fetch the existing Payment Methods There is a payment module helper file existing in default Magento, which is really very helpful. Path – app/code/core/Mage/Payment/Helper/Data.php 2) To fetch only enable Payment Methods […]
I am writing here a small but useful snippet of code, for getting the table name of any module (whose table name are defined in config file). This is very useful when using joins in query. Suppose my module is ‘vendor’.
Hello, I am describing here the way to 1) Encode image to generate a string 2) Decode image from a given encoded string 1) Here you need to specifiy the path of your image in variable ‘$image_path’ 2) Here I am using the string produced from the executing the code seen above, it can be […]
Hello All, I am posting here code for fetching website information from Store Group Id. Also useful code showing relations between Stores, Groups and Websites.
There are some instances when we are required to use Ajax features in Magento. Prototype javascript library used in Magento has inbuilt functionality for Ajax. I am describing here the basic method to use ajax. I have used version 1.6.0.0 of Magento. I am using the existing Contacts module for explanation, you can make any […]
In Magento, products are assigned to Website, though we can disable the product in independent store, but this is very lengthy procedure as you need to edit each and every products. So I came up with the solution to restrict the display of categories and products, though if you assign different Root Catalog to different […]
I am explaining here the way to add a Profit column in Order grid seen in admin-end This column will show the profit gained per order (i.e, the difference between Cost and Selling Price) 1) Copy the app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php file to app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php, by maintaining the directory structure 2) There is a protected function _prepareColumns, kindly paste […]