Okay
  Print

How to add link for submenu title of megamenu

when you want to link for submenu title of megamenu 

1) with theme for prestashop 1.7 you can do 2 steps

+) upload file subcategories.php to  widget  folder ( path link ROOT/themes/theme_name/modules/pspagebuilder/classes/widget)

download file subcategories.php in here :https://www.dropbox.com/s/j5ypzynih72zpig/subcategories.php?dl=0

+) edit  file widget_subcategories.tpl (ROOT\themes\theme_name\modules\psmegamenu\views\templates\front\widgets)

REPLACE CODE 
{$widget_heading|escape:'html':'UTF-8'}
BY
<a href="{$link->getCategoryLink($ocategory->id_category, $ocategory->link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$title|escape:'htmlall':'UTF-8'}">
        {$title|escape:'htmlall':'UTF-8'}
</a>

2) With theme for prestashop 1.6

+)you have edit file widget_subcategories.tpl ( ROOT\themes\theme_name\modules\psmegamenu\views\templates\front\widgets)

REPLACE CODE
<div class="widget-heading">{$title|escape:'htmlall':'UTF-8'}</div>
BY
<div class="widget-heading">
<a href="{$link->getCategoryLink($ocategory->id_category, $ocategory->link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$title|escape:'htmlall':'UTF-8'}">
       {$title|escape:'htmlall':'UTF-8'} 
</a>
</div>