When developing the administrative part of a module, it is often necessary to limit text field for the number of characters entered. To indicate the maximum length you can use the attribute of the tag input maxlength. Also you can use the rules of the object Validator: (more…)
From time to time it is necessary to clear users’ unused shopping carts, especially for guest users. This feature has already been added with the last versions of Mаgentо. But for old versions, you can use a cron which would clear users’ shopping carts at the specified time. To do this, you should create a model and set up time to call methods for cleaning shopping carts.
So, let’s create a module with “clearing” methods: (more…)
Sometimes when updating Magento to a new version we need not only to update the database structure, but also save our data. For this reason it is necessary first to back up the database and only then try to update it. In some cases, due to external table restrictions we can not run updates, but we can temporary disable the external restrictions set up for the table data.
Take the configuration file app/etc/local.xml: (more…)
Robots.txt serves as one of the factors in search engine optimization, although in Magento this file is not included by default. So, let’s fix this and create the file ourselves: (more…)
Default Magento settings allow users to track their order status only directly from their user account. But sometimes it is required to allow users to get updated information about the location and status of the order without the necessity to log into the account, just by entering the order reference number and email address on a website. (more…)