Hello All, I am writing here a script for displaying a select box of customers group. There exists a Helper file for Customer at app/code/core/Mage/Customer/Helper/Data.php . We need to extend this class for using the default function Create a sample module inside local I have used the Namespace ‘Decryptweb’ for my custom module. For custom […]
Category: Magento
Everything related to Magento eCommerce
Generate CSV file in Magento
Hello All, You might have seen that Magento provides a functionality to directly export the content from the grids in most of the modules seen in admin end like Sales, Products etc in the form of CSV or XML. Sometimes the need arises to generate a CSV with the custom data. Magento has already a […]
Select Box in Magento
Hello All, I am listing here a useful topic related to Magento. Below is the description to generate a select box using inbuilt functions of Magento. Lets take an example of displaying a select box containing all the catalog products. I am using the existing core files for better understanding, you are recommended make new […]
Filters in Query in Magento
Hello All, When we are filtering data in Magento, time occurs when we want to fetch result after filters like Not equal, greater than, less than, etc. The addFieldToFilter method’s second parameter is used for this. It supports an alternate syntax where, instead of passing in a string, you pass in a single element Array. […]
Product Collection in Magento
Hello All, I am writing here the script to get product collection of the store. Hope this is helpful
Specific Category Products Magento
Hello All, I am writing here the script to get product collection of a required category. For the below mentioned script we must have the category id for which the product collection is needed. Hope this is helpful
Get cart products in Magento
Hello All, I am writing here a script for getting all the product’s id added into cart Hope this is useful
Get customer loggedin status in Magento
Hello All, I am writing here a simple but important script for checking whether any customer is logged in or not in Magento site’s frontend Hope this is useful .
Get Products categories in Magento
Hello All, I am writing here the script to get category ids , for the given product. Hope this is useful
Get child categories in Magento
Hello All, I am writing here a script for getting all the child categories of the required category id Hope this is useful