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]}

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}


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

Comments

This website uses cookies to enable it to perform properly. Details of the cookies and instructions on how to disable them can be found in the cookie policy. By using this website, you agree to our use of cookies.