Magento Resources: Shortcodes, File Paths, and Theme Paths

This list will keep updating, if I miss something, please leave a comment.. Thank you!


 {{skin url='images/image1.jpg'}}

Media URL

{{media url='/image1.jpg'}}

Store URL

{{store url='page.html'}}

Base URL

{{base url='website/mypage.html'}}

Get Template URL

When you edit your .html files, you may need this short codes
Unsecure Skin URL:

getSkinUrl('images/image1.jpg') ?>

Secure Skin URL

getSkinUrl('images/image1.gif', array('_secure'=>true)) ?>

Current URL


Get Home URL


Link Url


Media Url


Skin Url


Store Url


Js Url


Store ID and Codes and Website ID and Codes

Get Store ID


Get Store Code


Get Website ID


Get Website Code

Elvin is one of the contributors of He has been creating Wordpress Plugins, Magento Extensions, & Mobile Applications. If you find this article useful, please Follow him on .
About Elvin D.

3 thoughts on “Magento Resources: Shortcodes, File Paths, and Theme Paths”

    1. Hi Pooja, basically related products will not display when you don’t configure the Related Product section in Magento Admin area. (information at…. Most of Magento themes have related products static block embedded. Please let me know if you still have a problem. Thanks!

Leave Your Thought