Category navigation ONLY in the left hand pane

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 năm cách đây
I've setup my category, sub-category lists.  I've set every category to Products in Grid.  Unfortunately, this causes the subcategories to be displayed in the right hand pane when you click a category in the nav bar.  I don't want the sub-categories displayed in the right hand pane under any circumstances.  I only want to see products over there.  How do I go about doing this?

This is what it currently looks like:
http://www.championvalleypens.com/category/54-pen-blanks.aspx

This is what I want it to look like:
http://www.bargainhumidors.com/bh/

As you click a category, the left hand bar opens up to show the sub-categories, by the right hand pane displays products and only products.
13 năm cách đây
I managed to hack around and find it.  For anyone who wants to do this, go to the Templates\Categories folder and find the .ascx file that corresponds to the value you specified for the category.  Mine was Products in Grid.

Remove the following lines from the template:
            <ItemTemplate>
                <div class="sub-category-item">
                    <h2 class="category-title">
                        <asp:HyperLink ID="hlCategory" runat="server" />
                    </h2>
                    <div class="picture">
                        <asp:HyperLink ID="hlImageLink" runat="server" />
                    </div>
                </div>
            </ItemTemplate>


I tried removing the entire div block, but it blew up the page.  I'm not an ASP developer and I know very little about nopCommerce, so someone with a bit more background would be better able to explain why you can't remove this entire block:

    <div class="sub-category-grid">
        <asp:DataList ID="dlSubCategories" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
            RepeatLayout="Table" OnItemDataBound="dlSubCategories_ItemDataBound" ItemStyle-CssClass="item-box">
            <ItemTemplate>
                <div class="sub-category-item">
                    <h2 class="category-title">
                        <asp:HyperLink ID="hlCategory" runat="server" />
                    </h2>
                    <div class="picture">
                        <asp:HyperLink ID="hlImageLink" runat="server" />
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div class="clear">
    </div>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.