Articles in the Magento Category
Magento »
If you are developing a module which needs to give access to its content only to logged in user then the preDispatch function will be very useful. This dispatches event before action. Just write the following function in your module’s controller and customer log in is checked before each of your controller action.
Magento »
This article will show you how to get best selling products. You will see how to get overall best selling products as well as best selling products by category and by date time range. Here is the code:-
Magento »
A new secret key is created every time you login to Magento Admin. So, there will be a unique key (32 chars long) for each session of your Magento admin login. This key is appended to the admin URL as http://your-admin-url/key/743c37b1…adf6588/ This is basically added for security reason. In their release note, Magento say that [...]
Magento »
Here is a quick guide on how to change admin url path in Magento. This need to be done for security reason to be safe from hacking/cracking issue. Basically, this is done not to let any general user to access the admin page. Generally, we do have ‘admin‘ as the administrator path for Magento. So, [...]
Magento »
This article will show you how to create shopping cart price rule in Magento through code. Shopping Cart Price Rules are applied when the customer reaches the shopping cart. To create a Shopping Cart Price Rule from Admin Panel, we go to Promotions -> Shopping Cart Price Rules and select Add New Rule.
Magento »
Here, you will see how to create Catalog Price Rule in Magento through code. Catalog Rules are applied on products before they are added to the cart. To create a Catalog Price Rule from Admin Panel, we go to Promotions -> Catalog Price Rules and select Add New Rule.
Magento »
Suppose, you have added a new extension to MagentoConnect. You may have situation to delete that extension later on. However, there is no delete option in Manage Extension section in MagentoCommerce (My Account -> Extensions and Languages -> Manage Extensions). You can Edit your extensions yourself but you cannot delete them. To delete you extension, [...]
Magento »
Here is a quick tip to sort/order latest product by both created date and new from date. Created At date is automatically added when you add a new product. However, you have to set New from Date manually while adding or editing product. You may have product with same new from date. And, then you [...]
Magento »
In Magento, Transactional Email Templates can be created from System -> Transactional Emails. This article shows how we can send transactional emails programmatically. There are few necessary things for any transactional email in Magento. They are:-
Magento »
Magento has a default feature of Tell a Friend or Email a Friend (whatsoever we say :)). To enable this feature,
Magento, PHP »
Magento works fine in PHP 5.3 from versions 1.4 and later. But, error is displayed in different pages when we use older versions (prior to 1.4) of Magento in PHP 5.3. This is because some php functions are deprecated in PHP 5.3 and those functions have been used in Magento Older Versions.
Magento »
You have built a custom magento extension (magento module) and you want to package it and submit it to magento connect (magento extension directory). This article shows how to create Magento extension package. I have included images for every step which I followed while creating extension package for my module (Auto Currency Switcher).
Magento »
Problem: I have a payment method which is displayed well in general Magento checkout. But it is not displayed in Multiple Addresses Checkout. Solution:
Magento, Zend »
Here is a quick function code to send email in Magento. I am using the Zend_Mail class. Hope this helps. Thanks.
Magento »
Here, I will show you how you can assign different shipping rate for different country in Magento. Like, there might be different shipping rate for US and Canada. Moreover, there might be different shipping rate for various regions within US as well. Like, there might be different shipping rate for Florida and California. In Magento, [...]