Prestashop : Base url

/ Published in: Smarty
Save to your folder(s)

If you are developing a website and will be moving from one URL/Domain to another, it easier to have href=""

So to do this in a Prestashop theme use the following code.

Copy this code and paste it in your HTML
  1. {$base_dir}
  3. Example:
  5. <a href="{$base_dir}content/6-about-us">About Us</span></a>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.