SC Categories Widget - Customise

Sumanth Now
Tera Expert

How to show the Sub Categories on the Right side of the page when a Parent Category is selected?

Currently, when you select the Parent Category(Hardware), we could see all the items of sub-categories. But I want to show only the Sub Categories on the right side, and then User can click on any subcategory to display the items in it.

I have reviewed the article SC Categories but couldn't amend as the script is changed in Newyork release.

Thanks in advance.

Sumanth

 

 find_real_file.png

 

As an example, if we click on Hardware, the right side page should be displayed with Subcategories like Desktops, Mobiles etc..and not the items which is the default behavior. Though when you click the specific category, then the items should be displayed.

I appreciate your help?

7 REPLIES 7

VigneshMC
Mega Sage

Clone the SC Category Page widget

and add below in line 55 of HTML

<div class="font-bold">{{::item.category}}</div>

and add below in line 120 of server code

item.category = catItemDetails.category.title;

find_real_file.png

 

Update class to update your styling

Thanks Vignesh for your response. However, I hope you misunderstood with my earlier image. I want only the Sub Categories to display on the right side of the page when clicked on Hardware.

find_real_file.png

Please find the above image, hope this clarifies my requirement?

 

Hello,

 

Did you find the solution for this?

 

Thanks!!!

did you find solution