Hi,
I am working on a site where the parent category is a brand name and then the sub categories are the type of products. So the structure looks like this
Harley Davidson
Brake Parts
Exhaust Parts
Dukati
Brake Parts
Exhaust Parts
Honda
Brake Parts
Exhaust Parts
This works okay in the category tree, but I wonder if the Parent category could show on the CTGY and PROD page as heading (not just in the breadcrumbs)
The CTGY page using this:
********
<div id="category-header"><mvt:item name="prod_ctgy_hdft" param="ctgy_header" /></div>
<mvt:if expr="NOT ISNULL l.settings:category_title:image">
<img src="&mvte:category_title:image;" alt="&mvte:category:name;" />
<mvt:else>
<h1>&mvte:category:name;</h1>
</mvt:if>
*********
But it only lists the child catgory name. Is there a script that would list both the parent and child categories as heading if applicable ?
Thanks,
JS
I am working on a site where the parent category is a brand name and then the sub categories are the type of products. So the structure looks like this
Harley Davidson
Brake Parts
Exhaust Parts
Dukati
Brake Parts
Exhaust Parts
Honda
Brake Parts
Exhaust Parts
This works okay in the category tree, but I wonder if the Parent category could show on the CTGY and PROD page as heading (not just in the breadcrumbs)
The CTGY page using this:
********
<div id="category-header"><mvt:item name="prod_ctgy_hdft" param="ctgy_header" /></div>
<mvt:if expr="NOT ISNULL l.settings:category_title:image">
<img src="&mvte:category_title:image;" alt="&mvte:category:name;" />
<mvt:else>
<h1>&mvte:category:name;</h1>
</mvt:if>
*********
But it only lists the child catgory name. Is there a script that would list both the parent and child categories as heading if applicable ?
Thanks,
JS