When you are editing some product in Magento admin and want to check it out in frontend of your Magento project, how do you find this particular product? Do you search for it, navigate to it using product url key or just browse to it? Well, however you do it, I’m going to give you the easiest way to get to your desired product in the frontend – view product link.
Sometimes we need to add some static configuration options inside our project that will be accessible from whole project scope.
For example, I wanted to define some custom DateTime format that I will use in more then one bundles to format my output to mobile device.
I didn’t want to write format string again and again in code, because after 2 years as my project expanding, I maybe will not be able to quickly find where I defined that output format to reuse it.
Then I decided to try to put configuration option inside config.yml file and when I change value there, it will be changed elsewhere in the project so I dont need to search and replace this values one by one.
Magento provides some Default classes for validating form elements in frontend. We can make use of those existing
class names for our custom forms and reuse the client side validation code of Magento.
Let’s see a couple of examples from magento source code
1. Adding the required class to any field label will give the asterisk to be appear in red color indicating it is
the mandatory field
Symfony2 support several caching systems and one of them is APC cache.
This article is going to be short …. but, everything in Symfony2 is so developer friendly that do not require some huge knowledge to accomplish …
Magento Provides three different options to sort the catalog products i.e
name, price, position. For a store with more than 1000 products it is not
possible enter position values in backend for each products. We can replace
this with product ids , so that the frontend will display the most recently
Step 1: To Achieve this copy the file Toolbar.php from app/code/core/Mage/Catalog