Jump to content

Edit History

ps8modules

ps8modules

Hi.

The left category block is displayed assuming that the parent category id or the default category id in the product detail is available. The search page does not know the category id, so the left block is not displayed. It is not that easy a task as you request, you would have to create an extra module that would display the default category of the searched product in the left column. However, it would be quite simple to display a button under the price for each product in the list, for example (Show category).

e.g. button in TPL

./themes/classic/templates/catalog/_partials/miniatures/product.tpl

{if isset($page.page_name) && $page.page_name == 'search'}
    <a href="{url entity='category' id=$product.id_category_default id_lang=$language.id}" class="btn btn-default">Go to category</a>
    {/if}

 

ps8modules

ps8modules

Hi.

The left category block is displayed assuming that the parent category id or the default category id in the product detail is available. The search page does not know the category id, so the left block is not displayed. It is not that easy a task as you request, you would have to create an extra module that would display the default category of the searched product in the left column. However, it would be quite simple to display a button under the price for each product in the list, for example (Show category).

e.g. button in TPL

./themes/classic/templates/catalog/_partials/miniatures/product.tpl

{if isset($page.page_name) && $page.page_name == 'search'}
    <a href="{url entity='category' id=$product.id_category_default id_lang=$language.id_lang}" class="btn btn-default">Go to category</a>
    {/if}

 

ps8modules

ps8modules

Hi.

The left category block is displayed assuming that the parent category id or the default category id in the product detail is available. The search page does not know the category id, so the left block is not displayed. It is not that easy a task as you request, you would have to create an extra module that would display the default category of the searched product in the left column. However, it would be quite simple to display a button under the price for each product in the list, for example (Show category).

e.g. 

./themes/classic/templates/catalog/_partials/miniatures/product.tpl

{if isset($page.page_name) && $page.page_name == 'search'}
    <a href="{url entity='category' id=$product.id_category_default id_lang=$language.id_lang}" class="btn btn-default">Go to category</a>
    {/if}

 

ps8modules

ps8modules

Hi.

The left category block is displayed assuming that the parent category id or the default category id in the product detail is available. The search page does not know the category id, so the left block is not displayed. It is not that easy a task as you request, you would have to create an extra module that would display the default category of the searched product in the left column. However, it would be quite simple to display a button under the price for each product in the list, for example (Show category).

×
×
  • Create New...