Link to page (new-products, specials, my-account etc.):
Prestashop 1.6:
 {$link->getPageLink()} 
Prestashop 1.7: {url entity='my-account' params=['edited' => 1, 'id' => $id]}

  • {$urls.pages.address}
  • {$urls.pages.addresses}
  • {$urls.pages.authentication}
  • {$urls.pages.manufacturer}
  • {$urls.pages.cart}
  • {$urls.pages.category}
  • {$urls.pages.cms}
  • {$urls.pages.contact}
  • {$urls.pages.discount}
  • {$urls.pages.guest_tracking}
  • {$urls.pages.history}
  • {$urls.pages.identity}
  • {$urls.pages.index}
  • {$urls.pages.my_account}
  • {$urls.pages.order_confirmation}
  • {$urls.pages.order_detail}
  • {$urls.pages.order_follow}
  • {$urls.pages.order}
  • {$urls.pages.order_return}
  • {$urls.pages.order_slip}
  • {$urls.pages.pagenotfound}
  • {$urls.pages.password}
  • {$urls.pages.pdf_invoice}
  • {$urls.pages.pdf_order_return}
  • {$urls.pages.pdf_order_slip}
  • {$urls.pages.prices_drop}
  • {$urls.pages.product}
  • {$urls.pages.registration}
  • {$urls.pages.search}
  • {$urls.pages.sitemap}
  • {$urls.pages.stores}
  • {$urls.pages.supplier}
  • {$urls.pages.new_products}
  • {$urls.pages.brands}
  • {$urls.pages.register}
  • {$urls.pages.order_login}

Link to category:
Prestashop 1.6: {$link->getCategoryLink()}
Prestashop 1.7: {url entity='category' id=3 id_lang=2}

Link to product:
Prestashop 1.6: {$link->getProductLink()}
Prestashop 1.7: {url entity='product' id=26}

Link to CMS page:
Prestashop 1.6
: {$link->getCmsLink()}
Prestashop 1.7: {url entity='cms' id=3 id_lang=2}

Other

  • {$urls.base_url} Main shop address
  • {$urls.current_url} Currently visited page
  • {$urls.img_ps_url} Image root directory
  • {$urls.img_cat_url} Categories images directory
  • {$urls.img_lang_url} Languages images directory
  • {$urls.img_prod_url} Products images directory
  • {$urls.img_manu_url} Manufacturers images directory
  • {$urls.img_sup_url} Suppliers images directory
  • {$urls.img_ship_url} Carriers images directory
  • {$urls.img_store_url} Physical stores images directory
  • {$urls.img_url} Theme images directory
  • {$urls.css_url} Theme css directory
  • {$urls.js_url} Theme js directory
  • {$page.page_name} Template page name
  • {$page.meta.title} Page Title (SEO)
  • {$page.meta.description} Tag description (SEO)

You can find more link types and their definitions in /classes/Link.php

Comments