Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Colin Wright 8 posts 28 karma points
    Nov 26, 2013 @ 12:26
    Colin Wright
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Nov 26, 2013 @ 12:40
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft