Useful Drupal Skills

How to show a block only at front page or homepage? 1. Go to Administration » Structure; 2. Click ‘Add block’, and fill in “Add block”, and your code at “Add block”; 3. Under “Show block on specific pages”, Click… Read moreUseful Drupal Skills

Change mangeto domain name

4 steps: first, upload all files to your new web hosting; second, restore your mysql database to your new one; third, edit /app/etc/local.xml, and update to your new mysql database information, take care the following code:

How to remove magento parent category path from sub category url

How to remove parent category path from sub category url? Instance: http://www.eye4eyeglasses.com/eyeglasses/cheap-eyeglasses I just want the category c url is http://www.eye4eyeglasses.com/cheap-eyeglasses Edit /app/code/core/Mage/Catalog/Model/Url.php Find around line 632 and change: //if (null === $parentPath) { //$parentPath = $this->getResource()->getCategoryParentPath($category); //} //elseif ($parentPath… Read moreHow to remove magento parent category path from sub category url

Zen-Cart Can not Run Admin

When visit zen-cart (V1.3.8a) amdin log in page, it shows: Fatal error: Class ‘notifier’ not found in /home/myhost/public_html/myshop/includes/autoload_func.php on line 79 modify configure.php under admin/includes define(‘DIR_FS_CATALOG’, ‘/home/myhost/myshop);  to   define(‘DIR_FS_CATALOG’, ‘/home/myhost/myshop/’); Always best to run zc_install to build the configure.php… Read moreZen-Cart Can not Run Admin

X-cart v4.4.0 shows Customer Feedback at header

How to show Customer Feedback at header of detailed product page? 1. Go to skin/common_files/modules/Customer_Reviews/, creat a filed called vote_reviews_header.tpl, and open it. 2. Add the following code in vote_reviews_header.tpl: