Create Url (short url) in prestashop 1. 7 | controller url | module Url | CMS PAGE URL
With Module you can make a link in tpl.
spstepcheckout is the module name ane
ajax is front controller .
old way : {$link->getModuleLink(‘spstepcheckout’,’ajax’)}
new way :
{url entity=’module’ name=’spstepcheckout’ controller=’ajax’ params=[‘edited’ => 1, ‘id’ => $id]}
{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}
|
Without Module make a controller link.
cart is the controller name and pass parameter if need.
{url entity=cart params=[‘action’ => ‘show’]}
Example :
Like : http//www.xyz.com/cart?action=show
Page link :
{ url entity=’my-account’ params=[‘edited’ => 1, ‘id’ => $id]}
category link :
{url entity=’category’ id=19 id_lang=1}
Cms page :
{url entity=’cms’ id=3 id_lang=1}
Call function using ajax (Cart controller call deleteAll function using ajax)
{url entity='cart' params=['ajax' => true, 'deleteAll' => '1']}
Call function using ajax (Cart controller call deleteAll function using ajax)
{url entity='cart' params=['ajax' => true, 'deleteAll' => '1']}
Comments
Post a Comment