Recent Blog Posts

HDFC is the worst private bank in India!

My worst banking experience is with HDFC bank is what this article is about.There were lot of times, I’ve been pissed off by them. Let me share that experience one by one with them. The company I work for opened a salary account for me in HDFC bank. From the past experiences I’ve believed private banks were customer friendly and it’s been a privilege having account in private banks. So my account is in Chennai branch and I...

Read More

Magento Checkout error: Undefined! JS alert on Place order

In Magento checkout page, during order review process, When place order button is clicked, it emits “Undefined” error in the form of javascript alert. I’ve been looking around for a fix for this error for long time and search in each and every file in my server inside checkout folder. Many developers had this issue and most of them pointed out that the issue is mainly due to custom modules or overriding of core modules, which...

Read More

How to redirect a category link to CMS page link in Magento

Sometimes you’ve to redirect category page link to CMS page link in magento. For example, you’ve a category with an id 50 and you’ve to redirect to the CMS page “home” Or “gift” as per your need. “home” and “gift” are the URL key of the CMS page which is located in CMS->Pages. Goto Catalog-> URL rewrite Management and search for id 50 in the ID path column. Then open it and...

Read More

Moving my cart from right to left sidebar using local XML Magento

Here are the steps to move cart sidebar from right column to left column using local.xml file in magento. We can use this step for totally removing the cart sidebar as well. Place the local.xml file in your theme’s layout directory and paste the code as follows: <?xml version="1.0" encoding="UTF-8"?> <layout> <default> <reference name="left"> <block type="checkout/cart_sidebar" name="cart_sidebar"...

Read More

Display all categories and sub categories on left sidebar in Magento

You can display list of all categories and subcategories in left sidebar including product view page using the following code in Magento. You can display subcategories upto second level using this code. You can create a new file for this code and you can add it in your theme’s catalog XML file like this: <block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/my_left_nav.phtml" /> It should be placed...

Read More

Using smarty variable within javascript or jquery function

Usually if we need to use any dynamic value inside javascript, we just echo the value inside javascript as given below: But in smarty it’ll pose some problem if we do like above. As per smarty documentation we should place the javascript code inside literal tag as shown below, for it to work. {literal}{/literal} But the above code only make javascript to work in the smarty template file. If we assign smarty variable to it like PHP...

Read More

How to change Home page layout in Prestashop

In Prestashop, the homepage will be usually 3 column layout such as left, center, right columns. Sometimes we need to change the layout of homepage according to our design. But unfortunately Prestashop don’t have that option in backend like in Magento. So we’ve to make some changes in the code. Prestashop uses Smarty as a templating engine. These files end with an extension “.tpl“. Smarty is good for designers, as it...

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.