Magento search result with full breadcumb

It is very simple. Just alter with following code, file location /your_theme/template/page/html/breadcrumbs.phtml <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * …

Continue Reading

Magento Dirty COW Linux OS Vulnerability

Dirty COW (CVE-2016-5195) is a privilege escalation vulnerability in the Linux Kernel that can allow a local user (like a web hosting account) to gain root access to the server. This can also be a huge problem if your Magento store is compromised and the attacker has the ability to upload files to your server or hosting account. The vulnerability is …

Continue Reading

Magento product delete from CSV

<?php ini_set(‘memory_limit’, ‘2048M’); ini_set(‘max_execution_time’, 180000); require_once ‘../app/Mage.php’; Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); Mage::init(); //echo “TTT”; $app = Mage::app(‘default’); Mage::register(‘isSecureArea’, 1); $row = 0; if (($handle = fopen(“delete.csv”, “r”)) !== FALSE) { while (($data = fgetcsv($handle, 1000, “,”)) !== FALSE) { echo ‘Importing product: ‘.$data0.'<br />’; foreach($data as $d) { echo $d.'<br />’; } $row++; if($row == 1) continue; // first column ignoring of CSV …

Continue Reading

Can’t retrieve entity config: zeon_manufacturer/eav_attribute_option_value

It has a very simple solution app/code/community/Zeon/Manufacturer/Model/Mysql4/Manufacturer/Collection.php need to replace the code array(‘manufacturer_name_table’ => $this->getTable(‘eav_attribute_option_value’)), replace with array(‘manufacturer_name_table’ => $this->getTable(‘eav/eav_attribute_option_value’)), Hope it will work. CAIDA Directory

Continue Reading

Disable compilation from command line

Magento Compilation – Compile, Clear, Enable and Disable from Command Line If you have shell access running just got to shell folder $ php shell/compiler.php Usage:  php -f compiler.php — options state         Show Compilation State compile      Run Compilation Process clear          Disable Compiler include path and Remove compiled files enable       Enable Compiler include path disable      Disable Compiler include path help          This …

Continue Reading

How To Export product with Category Names in Magento

<?php ini_set(‘memory_limit’, ‘2048M’); ini_set(‘max_execution_time’, 180000); require_once ‘../app/Mage.php’; umask(0); // output headers so that the file is downloaded rather than displayed header(‘Content-Type: text/csv; charset=utf-8’); header(‘Content-Disposition: attachment; filename=products.csv’); // create a file pointer connected to the output stream $output = fopen(‘php://output’, ‘w’); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $userModel = Mage::getModel(‘admin/user’); $userModel->setUserId(0); $collection = Mage::getModel(‘catalog/product’) ->getCollection() ->addAttributeToSelect(‘*’); $attributeSetModel = Mage::getModel(“eav/entity_attribute_set”); // $product->getModel(),$product->getProductcode(), //ColorCombination Material foreach($collection as $product) …

Continue Reading