1. If you need to add class to the parent of an element has specific. Example: <ul class="parent_element"> <li class="normal_class">First</li> <li class="normal_class child_element_specific_class">Second</li> <li class="normal_class">Third</li> </ul> <ul class="parent_element"> <li class="normal_class">First</li> <li class="normal_class">Second</li> <li class="normal_class">Third</li> </ul> You can do this way to add class to the UL has child with class "child_element_specific_class" jQuery(".parent_element:has(.child_element_specific_class)").addClass("wanted_element"); 2. If Full Article…
Search the Wiki
Magento – User manual for Delivery Extension
Delivery Schedule User Guide Admin can easily configure the Delivery Schedule module at Backend => Delivery Schedule => Configuration. Configuration Format Date: Allow admin to choose format date. At Frontend, each time slot will be displayed as the selected format. Weeks: Maximum number of weeks that customers can select delivery date. For example: When admin inserts 4 in this field, Full Article…
Magento – Update admin routers of custom module for patch
I managed to change my custom module to use the Magento new way as recommended with the patch 6788. So I give here as a reference for other. Change to router in the config.xml file: Before: <admin> <routers> <adminhello> <use>admin</use> <args> <module>Pulsestorm_Adminhello</module> <frontName>admin_adminhello</frontName> </args> </adminhello> </routers> </admin> After <admin> <routers> <adminhtml> <args> <modules> <adminhello before="Mage_Adminhtml">Pulsestorm_Adminhello_Adminhtml</adminhello> Full Article…
Magento – Truncate Magento sales_flat_quote* tables
Recently, we have run into a few stores where the sales quote tables have grown beyond all proportion and resulted in the store grinding to a halt. The worst that we have seen so far is a Magento Enterprise installation that had 17 million entries, consuming a huge amount of space and locking dozens of Full Article…
Magento – Access Denied errors after installing SUPEE-6285
After installing the SUPEE-6285 patch on our Magento 1.7.0.2 store the system is showing an "Access Denied" error when attempting to access all custom modules for users who have selective permissions (not all permissions). Screenshot below. ————————————————————————————– Solution: If you use restricted admin accounts, some menus of third party extensions might not work Full Article…
Apache – php files can’t work in SSL mode
When you install SSL, if you face the issue: php files can't work when you enable SSL for your website. This issue doesn't occur in http protocol, it only occurs in https protocol. You can fix this issue by adding this line into your <Directory>…. AddHandler application/x-httpd-php .php Hope it will help you ^^
Magento – Get order detail from order id
Magento get order details : If you are working with magento order and looking for order details you can load order in two ways – Order – Load By Increment Id Order – Load By Entity Id You can use either method to load order in magento. We are going to explain the magento order Full Article…
Magento – How to optimize
Magento’s cache system Magento & Zend Framework Before we go on with various optimization points, it is needed for everyone to understand truly and in depth the Magento two level cache mechanisms. The Magento cache system inherit from Zend Framework‘s (ZF) one. Nothing really surprising there, Yoav has always been close to Zeev & Andy and like this Framework Full Article…
Magento – Check if the SKU is exist
<?php $sku = 'Your Product Sku'; $id = Mage::getModel('catalog/product')->getIdBySku($sku); if ($id){ echo "SKU {$sku} exists"; } else{ echo "SKU {$sku} does not exist"; } ?>
Ubuntu Warning: require_once(HTTP/Request2.php)
If you see this error when you access your source code: Warning: require_once(HTTP/Request2.php) It is saying that you lack some PHP extensions. You need to install 2 extensions: Pear and Http_request2 You can do it by the following commands: sudo apt-get install php-pear sudo pear install http_request2