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

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 integrate Google translate API into your website?

In times you need to promote your website globally breaking language as a barrier. You may have some products which may be helpful for a wider audience around the world. But how do we do that? Simple. Answer is Google Translate. Yes, by integrating Google translate API in your site, which is so simple. It supports nearly 64 languages currently. Even I’ve integrated it in this blog which you can check it out at the top right corner of my...

Read More

How to use jQuery ajax for transfering data with load() using PHP?

Ajax is used to load a particular part of the web page without loading entire page. I think it sounded wrong.  Loading in the sense sending and receiving information to and from the server without the visitor ever leaving the page.  Twitter feed and Google search are the best example for it. But you never would have noticed it until you enter into coding. Yeah I know it sucks! Because coding is not as easy as tweeting. If you...

Read More

Why $smarty->is_cached() emits fatal error in smarty 3?

When we use the cache function is_cached() in smarty version 3 it’ll emit fatal error as shown below: Fatal error: Uncaught exception ‘SmartyException’ with message ‘unknown method ‘is_cached” I’ve been searched all over the internet and couldn’t find out the solution why it shows this error in latest version alone. But in documentation it is not deprecated. Then what the hell is going on with...

Read More

Subscribe to Blog via Email

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