[34+ Indexes] Let's Explore Market - Premium and Optimized Magento Theme
Our Feature Items: SM Market // SM AutoStore // SP Revo
Shopping cart (0)
NOTE: OpenCart & WordPress Support

For OpenCart, Shopify products, please submit your questions here

For WordPress products, please submit your questions here

We may be experiencing slight delays in customer response times because of the outbreak of the coronavirus.

We are doing everything we can to ensure that you get a reply as quickly as possible. Please accept our sincere apologies and thank you for understanding.

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00
Welcome, Guest

Get Skin Url, Get Media Url, Get Base Url, Get Store Url
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Get Skin Url, Get Media Url, Get Base Url, Get Store Url

Get Skin Url, Get Media Url, Get Base Url, Get Store Url 8 years, 11 months ago #4885

  • David Hoang
  • Expert Boarder
  • Posts: 87
  • Karma: 9
Magento Mage Core, Admin Static Blocks, or Phtml edits are usually includes getting url path such images, javascript, base url, media and store url. There are different ways to retrieve mentioned URL paths depending on where section you’re editing.

To Retrieve URL path in STATIC BLOCK


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

To get Media URL

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

To get Store URL

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

To get Base URL

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

TO Retrieve URL path in PHTML
Note: In editing PHTML don't forget to enclode the following code with PHP tag

Not secure Skin URL:
<?php echo $this->getSkinUrl('images/sampleimage.jpg') ?>

Secure Skin URL
<?php echo $this->getSkinUrl('images/ sampleimage.gif', array('_secure'=>true)) ?>

Get Current URL
$current_url = Mage::helper('core/url')->getCurrentUrl();

Get Home URL
$home_url = Mage::helper('core/url')->getHomeUrl();

Get Magento Media Url

Get Magento Media Url

Get Magento Skin Url

Get Magento Store Url

Get Magento Js Url
Join our Clubs to download our Joomla extensions and Joomla templates

Re: Get Skin Url, Get Media Url, Get Base Url, Get Store Url 2 years, 9 months ago #16217

  • Katy
  • Single Product
  • Administrator
  • Posts: 14
  • Karma: 0

Market Magento Theme with up to 24+ Homepage. SPECIAL: Now it is easier for any merchants to improve website by equipping with some hot extensions. Do not hesitate to take it now!

  • Fully Compatible with Magento2 Marketplace Extension by VNecoms
  • Compatible with Smart Onestep Checkout, Automatic Related Products, Reward Points Modules by Aheadworks (10% OFF).
  • Compatible with CM Multivendor Extension.
  • Compatible with Webkul Marketplace Extension.
  • Compatible with Zeon_Manufacturer Extension

Marketing Executive at MagenTech

Mail: phuongptt@ytcvn.com
Support System: www.magentech.com/support/tickets
  • Page:
  • 1
Time to create page: 6.63 seconds
Joomla TemplatesFree Joomla TemplatesVirtuemart TemplatesK2 TemplatesJoomShopping TemplatesHikaShop TemplatesSobiPro TemplatesOpenCart Themes
Quà Tết Cao Cấp Hộp quà tết Giỏ quà tết Túi quà tết