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
When I try to use the renderTemplateFile javascript call with the following:
var hc = TC.renderTemplateFile({ storeId: 1, templateFile: '/MacroScripts/hoverCart.cshtml', pageId: _nodeId, async: false }); $("#pardiv").html(hc);
hc is null and in the inspector in chrome I see that the Network response is:
INNEREXCEPTION: System.Exception: Template file isn't allowed for rendering
So I thought this would need to be ticked under
>Tea Commerce> Stores > Template Rendering
But it is, you can see a picture here: https://www.dropbox.com/s/1tbwp0681z49ufv/templaterendering.png
Is there anything else it could be?
I'm using Umbraco v6.1.6 with the latest version of Tea Commerce
It seems it was the slash that caused the problem.
If the file doesn't exist (eg templateFile:'MacroScripts/foobar.cshtml') then you get exactly the same error.
So changing templateFile:'/MacroScripts/hoverCart.cshtml' to templateFile:'MacroScripts/hoverCart.cshtml' and then everything worked fine :)
Hi John
Great you got it solved!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Template file isn't allowed for rendering
When I try to use the renderTemplateFile javascript call with the following:
hc is null and in the inspector in chrome I see that the Network response is:
So I thought this would need to be ticked under
>Tea Commerce> Stores > Template Rendering
But it is, you can see a picture here: https://www.dropbox.com/s/1tbwp0681z49ufv/templaterendering.png
Is there anything else it could be?
I'm using Umbraco v6.1.6 with the latest version of Tea Commerce
It seems it was the slash that caused the problem.
If the file doesn't exist (eg templateFile:'MacroScripts/foobar.cshtml') then you get exactly the same error.
So changing templateFile:'/MacroScripts/hoverCart.cshtml' to templateFile:'MacroScripts/hoverCart.cshtml' and then everything worked fine :)
Hi John
Great you got it solved!
is working on a reply...