What is LDAP?
-
admin
-
October 19, 2016
-
System Administration
-
0 Comments
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
-
admin
-
October 11, 2016
-
Magento
-
664 Comments
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
-
admin
-
October 6, 2016
-
Magento
-
65 Comments
<?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
Magento dashboard charts not working
-
admin
-
September 19, 2016
-
Magento
-
250 Comments
It’s very simple just follow the below code Locate this file: app/design/adminhtml/default/default/template/dashboard/graph.phtml And change: “getChartUrl()” to “getChartUrl(true)”
Continue Reading
Programmatically remove order in Magento
-
admin
-
September 19, 2016
-
Magento
-
2 Comments
<?php require_once ‘app/Mage.php’; umask(0); Mage::app(); Mage::register(‘isSecureArea’, true); $orders = Mage::getModel(‘sales/order’)->getCollection(); foreach ($orders as $order) { $order->delete(); }
Continue Reading
After compilation magento site is broken
-
admin
-
September 8, 2016
-
Magento
-
0 Comments
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