Please copy this code in functions.php file of your theme function hide_admin_bar_from_front_end(){ if (is_blog_admin()) { return true; } return false;}add_filter(…
Useful Tricks
You have to create a copy of the app/design/frontend/base/default/template/page/switch/stores.phtml template in your custom theme package. Then you have to modify…
FOR PRODUCTS SET FOREIGN_KEY_CHECKS = 0;TRUNCATE TABLE `catalog_product_bundle_option`;TRUNCATE TABLE `catalog_product_bundle_option_value`;TRUNCATE TABLE `catalog_product_bundle_selection`;TRUNCATE TABLE `catalog_product_entity_datetime`;TRUNCATE TABLE `catalog_product_entity_decimal`;TRUNCATE TABLE `catalog_product_entity_gallery`;TRUNCATE TABLE `catalog_product_entity_int`;TRUNCATE…
In Magento quite often you need to get order details from order ID. So in this tutorial I am going…
<?php$category_ids = $this->getCategoryid(); // HERE YOU CAN PUT THE STATIC CATEGORY ID $layer = Mage::getModel(“catalog/layer”); $categoryid = $category_ids; $category =…
Some times you may run into situation where you want to override the core functionality of Magento core controllers. So…
try {Mage::getConfig()->init()->loadEventObservers(‘crontab’);Mage::app()->addEventArea(‘crontab’);Mage::dispatchEvent(‘default’);$observ = Mage::getModel(‘catalogrule/observer’);$observ->dailyCatalogUpdate(“0 1 * * *”);} catch (Exception $e) { Mage::printException($e);}
Learn how easy it is to create a custom column layout for Magento. The tutorial is based on the Magento…
Removing Maintenance mode in Magento 2 is extremely simple as in previous Magento versions. The .maintenance.flag file is located under…
The Clash put it nicely: “If I go there will be trouble… and if I stay it will be double.”…