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.
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?
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.
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 ...
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.
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..
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.
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?
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:
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
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
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
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
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
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
I just tested it using the starter kit - and it works for me out of the box
Kind regards
Anders
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 ...
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
Okay, increasing the numberOfLevels property of the pPageWithoutBoxesLayout template did the magic I was looking for.
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
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
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?
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
Thank you so much!
is working on a reply...