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 for New Order confirmation email then you can assign as follows.
Go to admin –> system –> configuration –> Sales (in left section) –> Sales Emails –> Order

Then select new template in “New Order Confirmation Template” and “New Order Confirmation Template for Guest” dropdwons.

Finally you have to clear cache then it will work.

Remove breadcrumb from homepage in Magento

To remove breadcrumb from homepage in Magento

Try adding this to the layout update of your home cms page:
<remove name=”breadcrumbs” />

then clear cache and that’s done!

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.

How to limit the number of products on home page in Magento

How to limit the number of products on home page in Magento

To limit the number of products displayed on the homepage in Magento, you can modify the home page’s widget settings or edit the associated CMS block. If you’re using the “Catalog Products List” widget, navigate to Content > Pages, edit the “Home Page,” and adjust the widget settings to specify the “Number of Products to Display.” Alternatively, if products are being fetched dynamically via code, modify the corresponding .

html file, typically located in your theme’s template directory (app/design/frontend/YourTheme/Magento_Catalog/templates/product/list.phtml).

Use the ->setPageSize() method in the product collection query to define the limit.

This approach ensures a controlled number of products appear while maintaining site performance and user experience.

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.
navigation_as_submenu

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): ?>
<div class=”nav-container”>
<ul id=”nav”>
<li class=”level0 nav-1 first level-top parent” id=”home”>
<a class=”level-top” href=”<?php echo Mage::getBaseUrl();?>”>
<span>Home</span></a>
</li>
<li class=”level0 nav-1 first last level-top parent” id=”products”>
<a class=”level-top”><span>Products</span></a>
<ul class=”level0″>
<?php echo $_menu ?>
</ul>
</li>
<li class=”level0 nav-1 last level-top parent” id=”contact_us”>
<a class=”level-top” href=”<?php echo Mage::getBaseUrl().’contacts’;?>”>
<span>Contact Us</span></a>
</li>
</ul>
<?php endif ?>

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 with yours

Remove callouts (sidebar banners) in Magento

Remove callouts (sidebar banners) in Magento

Left Callout banner (the dog)

Find in app/design/frontend/*/*/layout/catalog.xml

Right Callout banner (back to school)

Find in app/design/frontend/*/*/layout/catalog.xml