Automatically Update Copyright Year

To show dynamic year on the website we can follow the following steps: Simple: Date range: Next method For the functions.php file: function year_shortcode() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘year_shortcode’); Usage Use [year] in your posts. Source :

Reduce magento database size

Sometime we may face the problem of huge database size even after all product is deleted. Run the following code in the sql, Sometime we may get error so try to run code one by one. And enable cache for folder only not for database during installation. Source :

search by category

Magento Adding search by category in advance search

Sometime we may need to change the options provided by the magento by default. Here are dealing with adding the “Search By Category” in the advance search page. For this case we need to change in the followinf files ➣ app/code/core/Mage/CatalogSearch/Block/Advanced/Form.php ➣ app/code/core/Mage/CatalogSearch/Model/Advanced.php ➣ app/design/yourdesign/yourdesign/template/catalogsearch/advanced/form.phtml At the very end of app/code/core/Mage/CatalogSearch/Block/Advanced/Form.php (before the closing brace), …

Magento Adding search by category in advance search Read More »