Posts made in August, 2013

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

Subscribe to Blog via Email

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