Blog: Extra-ordinary

What is LDAP?

LDAP is a Lightweight Directory Access Protocol. A directory contains objects; generally those related to users, groups, computers, printers.LDAP gives you query methods to add, update and remove objects within a directory.LDAP is also used to store your credentials in a network security system and retrieve it with your password and decrypted key giving you access to the services. For …

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

After compilation magento site is broken

It’s very simple. don’t be worry. Just go to includes/config.php and edit with below code. #define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’); #define(‘COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’); After edit site will be active.

Continue Reading