Home » Magento Themes » 5 Quick Magento Tips You Wish You Knew Earlier

5 Quick Magento Tips You Wish You Knew Earlier

When working with Magento template, there’s some of specific tasks that you will encounter . In this article, I will write about solutions for some frequent tasks you will probably meet.

1. How to display category title only on sub category page in Magento theme?

To display category title only on sub category page in Magento template go toapp/design/frontend/default/Your_Theme/template/catalog/category/view.phtml and find the following line of code

simply replace the above line with the following piece of code

2. How to show 4 products instead of 3 products in a row on Listing Page in a Magento Theme?

To show 4 products instead of 3 on listing page in Magento Theme you need to edit  app/design/frontend/default/Your_Theme/template/catalog/product/list.phtml  file and add the following line

after this piece of code
Eventually it should look something like this

3. How to show currency selector in right sidebar in a Magento template?

To show currency selector in right sidebar you need to edit  app/design/frontend/default/Your_Theme/layout/directory.xml. Just edit in  catalog_category_default, change the reference name from left to right like this

4. How to check if current page is homepage in Magento Template?

Using the following code you can check if current page is homepage or not in Magento template.

5. How to retrieve the base Url path in Magento?

This is extremely easy just call this to get the Magento Base URL <?php echo Mage::getBaseUrl(); ?>

We would love to hear your questions, comment on these quick tips. Please leave us a comment and let us know.

About Gareth

avatar
Gareth is an editor at Tutorial Magento. His special hobby is to share magento knowledge and experience with everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top