littleonlinestore
posted this on February 26, 2011 03:00
Step 1: Goto your template editor from the Appearance tab. Click on the Product Results Page file. The editor will open for you.
Step 2: Find {{ @include_snippet("sidebar") }}
Change "sidebar" to "sidebarproductpages" and publish the page
Step 2.5: Do the same 2 steps above for the Product Details page file.
Step 3: Goto the Snippets tab and click on Create New Snippet. Name your snippet sidebarproductpages
Step 4: Goto the sidebar snippet and copy all of the code.
Then, goto the sidebarproductpages snippet and paste all the code. Publish the snippet.
Step 5: Find
{{ #if($category.subcategorycount > 0) }}
Change it to
{{ #if($category.id == $currentcategoryid) }}Step 6: Publish the snippet.
This is for templates that show all of the categories and subcategories on all of the pages.
This will show subcategories with a zero count, but at least subcategories from other areas won't show.
Thanks,
Christi
Please check out my Highwire Toplist http://buyitsellit.gotop100.com
Comments
I did what you said above but now when you go to the page with the items it doesnt show the sub categories for customers no more. Am I missing a step?
www.imperfectconcepts.com
You messed something up one the Product Results page. The categories should look like your Product Detail page.
Did you remove this {{ @include_snippet("sidebar") }}
from your Product Results page? Better paste that back in as now you don't have any categories. Looks like you deleted it rather than changed it.
no I didnt remove that I put in "sidebarproductpages" like it states. to do on both step 2 & 2.5
I fixed it thank you so much. Doing something so little as this is huge me as a person trying to change the design of her site!! THANK YOU
Glad you found it :)