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="thedomain.com/whateverthepage.php"

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


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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.