krejcik-email
-
12/19/2013 4:37:04 AM
RE:ORDER BY expression
I tried to put it in "Order by expression form", but it didn´t worked, it preffered a document with 2 ratings, which had worse final rating than document with just 1 rating with highest value. I don´t know why..
Now I repaired it by using settings from the demo eccomerce site (I tried it before, but I didn´t enter data to form COLUMNS, so it didn´t worked):
Order by expression: Rating desc
Where condition: DocumentRatingValue > 0.5 AND SKUProductType != 'DONATION' AND NodeSKUID IS NOT NULL
Columns: SKUName, SKUDescription, SKUImagePath, SKUPrice, SKURetailPrice, SKUID, SKUEnabled, SKUSiteID, SKUDepartmentID, DocumentRatingValue, NodeAliasPath, DocumentSKUName, DocumentSKUShortDescription, DocumentRatingValue / NULLIF(DocumentRatings,0) as Rating
This works just fine for me, but thanks for your sollution anyway. :-)
|