Jump to content

Edit History

AddWeb Solution

AddWeb Solution

On 4/23/2024 at 7:24 PM, _Veronika_ said:

Hello everybody

Im struggling with the configuration in the web, I want to show in brand page the left column but I want to hide it when all brands is showing. These pages seem to be connected because when I turn off the left column in theme setting disapears in both pages. Is there a way to hide in all brands page but show it in the manufacturer page???

Im using prestashop 8.1 and classic theme by default. Hope someone can help me, thanks

Hi,

In this directory, themes/classic/templates look for the code that usually enclosed within {block name="left_column"} and {/block} tags. Surround the code for the left column with a conditional statement that checks if the current page is a brand page or a manufacturer page.

Sample code  :

{if $page.page_name == 'manufacturer' || $page.page_name == 'brand'}
    {block name="left_column"}
        // left column content here
    {/block}
{/if}

Clear the cache after making the changes and test if it works.

I hope this would help.

Thanks!

AddWeb Solution

AddWeb Solution

On 4/23/2024 at 7:24 PM, _Veronika_ said:

Hello everybody

Im struggling with the configuration in the web, I want to show in brand page the left column but I want to hide it when all brands is showing. These pages seem to be connected because when I turn off the left column in theme setting disapears in both pages. Is there a way to hide in all brands page but show it in the manufacturer page???

Im using prestashop 8.1 and classic theme by default. Hope someone can help me, thanks

Hi,

In this directory, themes/classic/templates look for the code that usually enclosed within {block name="left_column"} and {/block} tags. Surround the code for the left column with a conditional statement that checks if the current page is a brand page or a manufacturer page.

×
×
  • Create New...