Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kjetil Næss 12 posts 32 karma points
    Dec 14, 2011 @ 11:34
    Kjetil Næss
    0

    How can I have sub-categories of a product category

    I'm new to this (and umbraco), so the learning curve is a bit steep. I want to be able to do this

    Books

    Hardcopy

    book1

    book2

    Softcopy

    Paper binding

    book1

    book2

    Plastic binding

    book 1

     

    But all I can get is a category and a product as a direct child. Some simple steps as to how to achieve this please ?

     

    Regards,

    Kjetil

  • Anders Burla 2560 posts 8256 karma points
    Dec 14, 2011 @ 11:43
    Anders Burla
    0

    Hi Kjetil

    Welcome to the umbraco community and the umbraco software!

    Are you using the Tea Commerce starter kit? If so you can go to the "Product Category" and in the "structure" tab enable product categories as child nodes.

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Dec 14, 2011 @ 12:18
    Kjetil Næss
    0

    Yes I'm using the starter kit, and will try your suggestion. If I can find it. Templates a such has lost their names (see screenshot). 

    /kjetil

  • Anders Burla 2560 posts 8256 karma points
    Dec 14, 2011 @ 12:32
    Anders Burla
    0

    Yes torbjørn wrote about that! Could you try and check if the masterpages files on the harddrive still has the template names? And looks weird that the document types also lost their names. Which language did you set for the user that is currently logged into umbraco?

    And do you have all the items in the dictionary folder?

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Dec 14, 2011 @ 12:47
    Kjetil Næss
    0

    Yes, the masterpages file still has the template names. But I had added a language without values. Removed it for now and got the document types back. My bad.

    But, pcProductCategory already has the pcProductCategory checked on the structure page. The problem is that I can perfectly create subcategories, but they do not show up on the site. The first subcategory is treated as a product. And if I add a subcategory to the first subcategory, everything stops at the first subcategory.

     

    Kjetil

  • Anders Burla 2560 posts 8256 karma points
    Dec 14, 2011 @ 12:49
    Anders Burla
    0

    No problem :)

    To help others to easily find the solution for your problem - could you mark the right answer as a solution - thanks in advance

    Kind regards
    Anders

  • Anders Burla 2560 posts 8256 karma points
    Dec 14, 2011 @ 13:44
    Anders Burla
    0

    I just tested it using the starter kit - and it works for me out of the box

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Dec 14, 2011 @ 13:57
    Kjetil Næss
    0

    Well, this from the starter kit :

    gives me this :

    As you can see, product a is missing, and Category aa is treated as a product. Where I to generate another subcategory to Category aa, this is not shown ...

     

     

  • Anders Burla 2560 posts 8256 karma points
    Dec 14, 2011 @ 14:00
    Anders Burla
    0

    The image you send is just the product list of category aa - try and create another product alone side product 1 in Umbraco and see magic happens :)

    The menu doesnt show the product a because the menu only shows a limited number of levels. So you will have to find the template that has the sub menu and change the numberOfLevels property.

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Dec 14, 2011 @ 14:11
    Kjetil Næss
    0

    Okay, increasing the numberOfLevels property of the pPageWithoutBoxesLayout template did the magic I was looking for.

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Dec 30, 2011 @ 21:53
    Bjarne Fyrstenborg
    0

    Hi Anders

    I also had a small problem with using sub categories..
    I had created a category for clothes, but decided to split clothes into subcategories.. but when I move a product "jakcet" to the subcategory Jackets it isn't shown in the product list... but when I create a new product in the jacket sub category it displays the new created product.. I also tried the republish the entire site, but without any luck..

    So I guess it's a problem when moving a product to a new category cause the product is still displayed in the "old" category..

    The product node for "Tranemo jakke" is placed under the category "Jakker", but is still displayed here: http://sub.ak-security.dk/da/shop/beklaedning.aspx

    Bjarne

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Jan 03, 2012 @ 00:47
    Bjarne Fyrstenborg
    0

    Okay, I think there was occurred an error when I moved the node, because the node was moved to the subfolder Jakker, but the link to the document showed: /da/shop/beklaedning/tranemo-jakke.aspx .. there was missing "/jakke/" .. so I moved the node back to the node "Beklædning" and then back again to the subfolder "Jakker" .. then the link was shown correctly and in frontend I also see the product has moved to the right category.

    Bjarne

  • merves 23 posts 43 karma points
    Dec 08, 2012 @ 20:02
    merves
    0

    Hi,

    I use tea commerce starter kit, and wander if i can view all products(including the products that in some sub categories) in the root category. and how?

    in my case, now, when i click the root category, noting listed. i have to click some sub categories to view products. subcategories should filter the root category, isn't it?

  • Rune Grønkjær 1372 posts 3103 karma points
    Dec 10, 2012 @ 08:36
    Rune Grønkjær
    0

    Hi Merves,

    What you are trying to do is pretty standard Umbraco xslt. You can change the productList.xslt to show products from deeper down the xml tree. The line you need to change is this:

    <xsl:variable name="products" select="$currentPage/Product" />

    As you can see it only shows products that are children to currentNode. You will need to go deeper and the simple solutions would be this:

    <xsl:variable name="products" select="$currentPage//Product" />

    Also remember that "Products" page is a regular text page. So you will have to place the product list macro on it somehow.

    /Rune

  • merves 23 posts 43 karma points
    Dec 10, 2012 @ 22:43
    merves
    0

    Thank you so much!

  • merves 23 posts 43 karma points
    Dec 27, 2012 @ 12:09
    merves
    0
Please Sign in or register to post replies

Write your reply to:

Draft