Entries by admin

Get create account url in magento

Get create account url in magento If you want to add create “Register” or “Create an account” link in top navigation section then simply open customer.xml file in layout folder and you have to put below code in <customer_logged_out> area <action method=”addLink” translate=”label title” module=”customer”><label>Creat an acoount</label><url helper=”customer/getRegisterUrl”/><title>Creat an acoount</title><prepare/><urlParams/><position>9</position><liParams/><aParams>id=”register”</aParams></action>

Remove Price Display from Customs Options on Single Products in the Product View in Magento

Remove Price Display from Customs Options on Single Products in the Product View in Magento To sort out this problem simply do below: 1) Open app/design/frontend/default/your theme/template/catalog/product/view/price_clone.phtml 2) Comment out the below code: <?php echo $this->getPriceHtml($_product, false, ‘_clone’) ?> like this <? /* php echo $this->getPriceHtml($_product, false, ‘_clone’) */ ?>

Change column-layout of contact form in Magento

Change column-layout of contact form in Magento Here is simple method to do it : 1. Find contacts.xml in the base layout folder 2. Copy the contacts.xml in your theme layout folder app/design/frontend/default/your theme folder/layout/ and then find below code around line 41 page/2columns-right.phtml and you can change layout as you need.

How to edit Email Templates in Magento

To create a new Email Template you have to go to admin –> system –> transactional emails –> add new template –> choose the base template from the drop down and edit as you want. Then you can assign the newly created template to proper functionality. For e.g. if you want to assign new tempalte […]

Remove Breadcrumbs from all pages in magneto

To remove breadcrumbs from all pages in magneto. Just go to app/design/frontend/default/your theme name/layout/ Open file page.xml and you have to just comment below code around line 82 <!– <block type=”page/html_breadcrumbs” name=”breadcrumbs” as=”breadcrumbs”/> –> Then upload file and remove cache.

Top navigation as submenu in magento

If you would like to show your magento store categories like as in picture then you are on right place. Replace this code in topmenu.phtml <?php $_menu = $this->getHtml(‘level-top’) ?> <?php if($_menu): ?> <div class=”nav-container”> <ul id=”nav”> <?php echo $_menu ?> </ul> </div> <?php endif; ?> with below <?php $_menu = $this->getHtml(0,’level-top’) ?> <?php if($_menu): […]

Exclude categories in magento top navigation

Exclude categories in magento top navigation We can achive this using below code <?php $cats = Mage::getModel(‘catalog/category’)->load(2)->getChildrenCategories(); ?> <ul> <?php foreach($cats as $category): ?> <?php if (!in_array($category->getId(), array(6,7,8,9))) : ?> <li> <a href=” </li> <?php endif; ?> <?php endforeach; ?> </ul> Note : 6,7,8,9 are the categories which you want to execlude, you should replace […]