Last active
July 3, 2020 18:51
-
-
Save caovillanueva/dda11130e9f13f98632aae37ae97520e to your computer and use it in GitHub Desktop.
[PS 1.6 - Format links] #PS16 #PS17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRESTASHOP 1.6 | |
CMS: | |
<a href="{$link->getPageLink('cms',null,null,'id_cms=1')}"> | |
<a href="{$link->getCMSLink('4', 'about-us')}" title="{l s='About Us'}"> | |
<a href="{$link->getCMSLink('4', null)}"> When get various languages | |
---------------- | |
CATEGORY: | |
index.php?id_category=16&controller=category | |
{$link->getCategoryLink(195, null)|escape:'html':'UTF-8'} | |
--------------------- | |
Page URL: | |
{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'} | |
{$link->getPageLink('contact', true)|escape:'html':'UTF-8'} | |
{$link->getPageLink('order.php', true)|escape:'html':'UTF-8'}{l s='Cart'} | |
-------------------- | |
GET manufacturer URL: | |
{$link->getManufacturerLink(2)} <-- default way | |
or | |
<a href="{$link->getManufacturerLink($product->id_manufacturer)}"> | |
{$product->manufacturer_name|escape:'htmlall':'UTF-8'} | |
</a> | |
-------------------- | |
My Account links: | |
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" rel="nofollow">{l s='My orders' d='Shop.Theme.Customeraccount'}</a></li> | |
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" rel="nofollow">{l s='My credit slips' d='Shop.Theme.Customeraccount'}</a></li> | |
<li><a href="{$link->getPageLink('adresses', true)|escape:'html':'UTF-8'}" rel="nofollow">{l s='My addresses' d='Shop.Theme.Customeraccount'}</a></li> | |
<li><a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" rel="nofollow">{l s='My personal info' d='Shop.Theme.Customeraccount'}</a></li> | |
<li><a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" rel="nofollow">{l s='My vouchers' d='Shop.Theme.Customeraccount'}</a></li> | |
--------------------- | |
{if $logged} | |
..... | |
{/if} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment