Category Archives: Magento

Stock Quantity on Magento Product Page

Magento Community Edition 1.7.0.2 Warning: This is a quick-n-dirty hack and will not work on all product types. Instead of just showing the “in stock” and “out of stock” messages, we want to have an in-between message to show that stock levels are running low. This is easily done, by editing the following file: app/design/frontend/base/default/template/catalog/product/view/type/default.phtml […]

Only Display Top-Level Categories In Your Magento Theme

Magento Community Edition 1.7.0.2 So you only want to show a list of your top-most categories, not all the children and their own spawn in turn; navigate to a file called Topmenu.php (app/code/core/Mage/Page/Block/Html/Topmenu.php) and look for the following conditional statement (around line 117). 123456789101112if ($child->hasChildren()) {   if (!empty($childrenWrapClass)) {     $html .= ‘<div […]