REQUEST CUSTOMWORK TO MAKE OUTSTANDING CHANGES IN YOUR SITE
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 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 7 years, 6 months ago #4885

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

To get SKIN URL

{{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
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);


Get Magento Media Url
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);


Get Magento Skin Url
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);


Get Magento Store Url
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);


Get Magento Js Url
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
Join our Clubs to download our Joomla extensions and Joomla templates

Re: Get Skin Url, Get Media Url, Get Base Url, Get Store Url 1 year, 5 months ago #16217

  • Katy
  • OFFLINE
  • Single Product
  • Administrator
  • Posts: 13
  • Karma: 0
HOT MAGENTO THEME FROM MAGENTECH

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: 0.14 seconds
Google+
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