I have a clean install of Umbraco and Teacommerce. I am trying to build a site from the ground up. I have copied the CartMiniCart.cshtml into my site and created a macro from it. I have then added the macro to my masterpage. I get the error Error loading MacroEngine script. I recreated the dictionary files thinking it might be related to that but to no avail.
I debugged the script in VS2013 and it take exception to the following line
var cartPage = currentPage.AncestorOrSelf( "Lang" ).Descendants( "Cart" ).First();
You properly dont have the same structure as the starter kit has. It has a Lang node with a Cart node some where in the tree. So be sure to have that structure or change the line of code to fetch the cart page another way.
Error loading MacroEngine script
Hi,
I have a clean install of Umbraco and Teacommerce. I am trying to build a site from the ground up. I have copied the CartMiniCart.cshtml into my site and created a macro from it. I have then added the macro to my masterpage. I get the error Error loading MacroEngine script. I recreated the dictionary files thinking it might be related to that but to no avail.
I debugged the script in VS2013 and it take exception to the following line
var cartPage = currentPage.AncestorOrSelf( "Lang" ).Descendants( "Cart" ).First();
Any ideas?
You properly dont have the same structure as the starter kit has. It has a Lang node with a Cart node some where in the tree. So be sure to have that structure or change the line of code to fetch the cart page another way.
Kind regards
Anders
is working on a reply...