Come back
7
Get page link from Link object in smarty Prestashop 1.7
To get a link to the selected page, there are examples of how to get a link in the smarty template:
Get contact page:
{$link->getPageLink('contact', null, $language.id)}
Get cms page:
{$link->getCMSLink('12', null, $language.id)}
Get Category Page:
{$link->getCategoryLink('12', null, $language.id)}
Get Product Page:
{$link->getProductLink('12', null, $language.id)}
Get module link:
{$link->getPageLink('module-NameModule-TemplateModule')}
{* or *}
{$link->getModuleLink('NameModule', 'TemplateModule')}