5 Magento Customization Tips Your Wikipedia Won’t Tell You

Magento is known ecommerce platform having more than 140k+ stores running either with Magento Enterprise, or Magento Community editions. Magento No doubt you will easily do the Magento installation and configuration but you will face much difficulties when it comes to customization, tweaks or dealing third part extensions.

Due to development of 50+ stores now we are quite aware of few common tasks every Magento store owner is looking for. Few of them are:

  • Contact Form On Magento CMS Page – Welcome The Customer With An Ease

Contact form is the key to get in touch with the customers. No ecommerce site owner can deny the importance of a contact form. They always want their customers to unlock the key with an ease. So what could be done to avail that ease? Creating the contact form with the help of CMS page is a wise move, as this will even facilitate breadcrumb for better navigation. Wow! That’s great. But how to carry out the procedure? Well, all you need to do is add a contact form on Magento CMS page. You can do this by going to your CMS -> Manage Pages. Now write any display message or greeting above the contact form and later add the below code to add the page.


{{block type=”core/template” name=”contactForm” form_action=”/contacts/index/post” template=”contacts/form.phtml”}}


  • Category Name on Product Detail Pages – Tell Your Customers You Are On Right Way

Obviously you don’t want your customers to leave the product page just because they thought they lost their way, or they are on wrong page…right? Displaying product category on the product detail page is best way to tell the customers that they are on right page and what they are purchasing. Okay so what procedure you need to follow for adding category page? Well, it’s quite easy. For displaying category name on product detail pages all you need to do is edit catalog/product/view.phtml file. Just add the below code to display category name at the place you want within your layout design.

<?php $categories = $_product->getCategoryIds(); ?>

<?php foreach($categories as $k => $_category_id): ?>

<?php $_category = Mage::getModel(‘catalog/category’)->load($_category_id) ?>

<a href=”<?php echo $_category->getUrl() ?>”><?php echo $_category->getName() ?></a>

<?php endforeach; ?>

magento customization tips

  • Hide Product Prices If Not Logged In – Time To Play Hide & Seek With Customers

Hiding prices is one of the best way to create friction in shoppers mind. If the product fulfills the customer’s desires, the customer will surely login and carry out the conversion. So if you need to hide product prices or want to display tiered prices to make the customers log in, you just need to edit the following file. For, that go to

app/design/frontend/default/default/template/catalog/product/view/tierprices.phtml. Initially you need to add a single line of code at the top

<?php if(Mage::getSingleton(‘customer/session’)->isLoggedIn()): ?>

Okay great you are done with the above line, now you need to add the following line:

<?php if (count($_tierPrices) > 0): ?>

Now add this closing if condition code at the end.

<?php endif; ?>

In case if your requirements are bit wired you can use any Magento price extension which would be an inclusive way to hide product prices, add to cart buttons, disabling cart, showing call for prices, or displaying inquiry forms etc.

  • Create Socially Optimized Product Detail Pages – Establish Your Social Presence On Site

Social media is always wise option to promote your brand value. But optimizing your site with social widgets is great way to show your brand value. Facebook, Twitter, Google+ like buttons should be included on your website. Well, to add Facebook like button, you just need to edit app/design/frontend/theme/theme/template/catalog/product/view.phtml file and add the below piece of code in it.

<a name=”fb_share” type=”button”></a>

<script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>

<?php elseif($_share == ‘facebook_like’): ?>

<script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like show_faces=”true” width=”450″></fb:like>

<?php endif; ?>

  • Add to Cart Button Flexibility With CMS Pages

Making your page customized to sell the products is nothing new for marketers. They try everything and create different pages to lure customers. With CMS pages the customers can easily add certain products in their cart. With the help of following code you can add any product to the cart:

<button onclick=”location.href ='{{config path=”web/unsecure/base_url”}}/checkout/cart/add?product=3&qty=2′”>Buy It Now</button>

Notice we have given it 2 parameters:

  1. <product_id=3 – You can add specific id as parameter to this button.
  2. qty=2 – State the number of quantity of products that needs to be added in the cart if the button is clicked.

Leave a Reply