Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So, I have managed to output the names of each category and also manged to output each product.
However, I cannot seem to figure out how to output the description on the category. Somehow it is empty? description=""
This is what I get, when I output the category in a textarea
<category index="0" id="69" parentCategoryId="" parentCategoryName="" contentId="-1" name="Seating" displayName="Seating" displayOnSite="True" description="" image="" definition="Default Category Definition"> <properties> <CategoryImageName cultureCode="" dataType="ShortText">R82_Seating_icon_CMYK_48359.png</CategoryImageName> </properties> <childCategories /> </category>
And this is how it looks in uCommerce
How do I output the description?
BrDan
In razor you can output the description on the category object with the method GetDescription()
There you have access to LongDescription, Displayname and more. You have to put in the CultureCode aswell so it knows, which language to output.
Call this on the object:
.GetDescription(CultureInfo.CurrentCulture.ToString()).LongDescription
And so if I want to fetch it by XSLT, how do I get it then?
I'm not very solid at xslt, someone else will have to help you with that one, sorry.
I know close to nothing about XSLT, but maybe this is what you are looking for:Link
Hey Nikolaj! I managed to get it working by adding hostname and language! Thanks a lot!
Aargh, sry, Nikolaj Lundgreen was supposed to get the Solved-credit!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get category description
So, I have managed to output the names of each category and also manged to output each product.
However, I cannot seem to figure out how to output the description on the category. Somehow it is empty? description=""
This is what I get, when I output the category in a textarea
And this is how it looks in uCommerce
How do I output the description?
Br
Dan
In razor you can output the description on the category object with the method GetDescription()
There you have access to LongDescription, Displayname and more. You have to put in the CultureCode aswell so it knows, which language to output.
Call this on the object:
And so if I want to fetch it by XSLT, how do I get it then?
I'm not very solid at xslt, someone else will have to help you with that one, sorry.
I know close to nothing about XSLT, but maybe this is what you are looking for:
Link
Hey Nikolaj! I managed to get it working by adding hostname and language! Thanks a lot!
Aargh, sry, Nikolaj Lundgreen was supposed to get the Solved-credit!
is working on a reply...