Jump to content

sub category menu page


Marcel

Recommended Posts

Hello,

Im fairly new to PS after years of working with Zencart and now im struggeling my way through the forrest of new things and learning every day.

One thing i cannot find out and maybe there is someone who can tell me how, or give pointer to a solution for the following:

 

When I click on a menu title in the horizontal menu on top of the page, a new page opens with the selected category, a horizontal menu with sub categories and sub-sub categories on the left side and product images on the right hand side.

So far so good however I want to have the images of the catogories shown to select instead of product images. ( see picture)

This untill we are ar the end of the sub categories where only products are availible to be displayed and then the will be displayed at the right side.

 

Is that something  to enable in the admin menu or some what more difficult?

In Zencart, it an easy thing to setup so must be the same in PS i guess.

 

Someone here who can give me advise?

 

Marcel

 

example.jpg

example.jpg

Edited by Marcel
Additional information added (see edit history)
Link to comment
Share on other sites

<div class="block-categories hidden-sm-down">
  <ul class="category-top-menu">
    <li><a class="text-uppercase h6" href="{$categories.link nofilter}">{$categories.name}</a></li>
    <li>{categories nodes=$categories.children}</li>
  </ul>
</div>

 

you have to put this code in tpl file of category page.

Link to comment
Share on other sites

ICAN,

 

This is what I have in the category.tpl in /templates/catalog/listing.

Is that the file to change?

 

{extends file='catalog/listing/product-list.tpl'}
{block name='banner_categories'}
 
{/block}
{block name='product_list_header'}
                 {*
                   {if isset($category) && $category.image.large.url}
                       <div class="bn-top ">
                <div class="container_img_bread has-img ">
                        {include file='_partials/breadcrumb.tpl'}
                        <div class="category-cover">
                          <img src="{$category.image.large.url}" alt="{$category.image.legend}">
                        </div>
                            {else}
                        <div class="container_img_bread no-img ">
                         {hook h="blockPosition8"}
                         {include file='_partials/breadcrumb.tpl'}
                         </div>
                                </div>
                           </div>                        
                    {/if}*}
        {if $category.description}
            <h1 class="category_h1">{$category.name}</h1>
            <div id="category-description" class="text-muted">{$category.description nofilter}</div>
        {/if}
  
      
{/block}

Link to comment
Share on other sites

On 7/24/2018 at 10:08 AM, Marcel said:

ICAN,

 

This is what I have in the category.tpl in /templates/catalog/listing.

Is that the file to change?

 

{extends file='catalog/listing/product-list.tpl'}
{block name='banner_categories'}
 
{/block}
{block name='product_list_header'}
                 {*
                   {if isset($category) && $category.image.large.url}
                       <div class="bn-top ">
                <div class="container_img_bread has-img ">
                        {include file='_partials/breadcrumb.tpl'}
                        <div class="category-cover">
                          <img src="{$category.image.large.url}" alt="{$category.image.legend}">
                        </div>
                            {else}
                        <div class="container_img_bread no-img ">
                         {hook h="blockPosition8"}
                         {include file='_partials/breadcrumb.tpl'}
                         </div>
                                </div>
                           </div>                        
                    {/if}*}
        {if $category.description}
            <h1 class="category_h1">{$category.name}</h1>
            <div id="category-description" class="text-muted">{$category.description nofilter}</div>
        {/if}
  
      
{/block}

 

put below code whrere you want to add.

 

<div class="block-categories hidden-sm-down">
  <ul class="category-top-menu">
    <li><a class="text-uppercase h6" href="{$categories.link nofilter}">{$categories.name}</a></li>
    <li>{categories nodes=$categories.children}</li>
  </ul>
</div>
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...