Magento getting URLs in PHTML – get skin url, get js url, get media url, get store url ,get base url

These are the following methods to get Magento Base Url, Magento Skin Url, Magento Media Url, Magento Js Url.to get all write the following code Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); or you can write $this->getUrl(); e.g:- http://yoursite.com/index.php/ Get Magento Media Url Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); e.g:- http://yoursite.com/media/ Get Magento Skin Url Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); or you can write $this->getSkinUrl(); e.g:- http://yoursite.com/skin/ Get Magento Store … Read more

View Tutorial: Magento getting URLs in PHTML – get skin url, get js url, get media url, get store url ,get base url

Magento Shortcodes – How to use Shortcodes in Magento

Shortcodes are simple set of functions for creating macro codes for use in CMS pages or blocks. If you are familiar with WordPress you must be aware about how placing [“gallery”] in your post content replaces this shortcode with real gallery. Similarly, Magento has it’s own shortcodes which you can use in Magento CMS pages, … Read more

View Tutorial: Magento Shortcodes – How to use Shortcodes in Magento

Magento Short Codes, Get Skin, Media In A Static Block

One of the powerful features of the Magento framework is that of it’s short codes. It allows a store owner to quickly retrieve information /urls / elements and use them within pages. To Retrieve the element URL path in a STATIC BLOCK SKIN URL {{skin url=’images/sampleimage.jpg ‘}} Media URL {{media url=’/sampleimage.jpg’}} Store URL {{store url=’mypage.html’}} … Read more

View Tutorial: Magento Short Codes, Get Skin, Media In A Static Block

Magento: How To Add Static Blocks

Add a Static Block from a CMS Page : First create the the static block. Lets say, the identifier you used is “my_block” Now goto your CMS page and paste this in the content box, {{block type=”cms/block” block_id=”my_block”}} Then click on Design > Page Layout on the same CMS page edit screen. And paste this, … Read more

View Tutorial: Magento: How To Add Static Blocks

Magento: Remove Recent Products From The Side Bar

Magento has a built-in feature on product details pages, called RECENTLY VIEWED PRODUCTS. This blocks only appears are you have browsed other products within the store. To remove this feature go to app/design/frontend/default/your-theme/layout/reports.xml And, app/design/frontend/default/base/layout/reports.xml Remove the following code. Note that this code might not be present in your theme and only in the base. … Read more

View Tutorial: Magento: Remove Recent Products From The Side Bar