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 :

Automatically Update Copyright Year Read More »

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 »