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
HI
I struggeling to convert part of the teacommerce demo to Umbraco 7.
//Product string ProductTypeName = "Product"; DynamicNode currentPage = Model; DynamicNode mainProduct = currentPage.AncestorOrSelf( p => p.NodeTypeAlias == ProductTypeName && p.Parent.NodeTypeAlias != ProductTypeName );
To get the product with the variants as subnodes i have the above code from the teacommerce demo (Umbraco 6).
//Product string ProductTypeName = "Product"; IPublishedContent currentPage = CurrentPage; IPublishedContent mainProduct = currentPage.AncestorOrSelf(p => p.NodeTypeAlias == ProductTypeName && p.Parent.NodeTypeAlias != ProductTypeName);
I have beeen trying to get it to work in many ways, but i cant.
I get this error from the above code
Error 35 Cannot convert lambda expression to type 'string' because it is not a delegate type
Any suggestions?
René
It says something about a string. So try and figure out which part of your lambda expression that works with strings. Maybe try and make a real simple lambda expression to see it works.
Kind regardsAnders
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Teacommerce Umbraco 7 - Product view
HI
I struggeling to convert part of the teacommerce demo to Umbraco 7.
To get the product with the variants as subnodes i have the above code from the teacommerce demo (Umbraco 6).
I have beeen trying to get it to work in many ways, but i cant.
I get this error from the above code
Any suggestions?
René
It says something about a string. So try and figure out which part of your lambda expression that works with strings. Maybe try and make a real simple lambda expression to see it works.
Kind regards
Anders
is working on a reply...