Answer the question
In order to leave comments, you need to log in
How to disable a module on all pages except the main one in Prestashop?
Friends, such a question..
There is such a wonderful tag for .tpl templates in Prestashop ^
{if $page_name == 'index'}
. . .
{/if}
Answer the question
In order to leave comments, you need to log in
Weird. What you wrote above should work.
Well.. try this:
{if $smarty.server.REQUEST_URI == '/'}
. . .
{/if}
{$page_name}
and go to main. {if $page_name == 'index'}
. . .
{/if}
should work. {if $page_name == 'ваше_значение'}
. . .
{/if}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question