Copied to clipboard

Flag this post as spam?

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


  • Adam Burt 10 posts 74 karma points
    Mar 26, 2015 @ 17:27
    Adam Burt
    0

    Support for MVC Partial Views with RenderTemplateFile

    Hi guys,

    I've been doing an Umbraco 7 installation of TeaCommerce and I decided to implement some of the shiny AJAX form posting stuff.

    One of the things I want to do is refresh my minicart, which has product information and little images and stuff in it and is in the header of every page. I thought that RenderTemplateFile in the JS API would be ideal for this purpose, however, it seems that the only files it can render are macroScripts, not MVC style Partials in my Views folder.

    Is there any way to make RenderTemplateFile accept an MVC partial view? Any help would be greatly appreciated!

  • Anders Burla 2560 posts 8256 karma points
    Mar 27, 2015 @ 08:34
    Anders Burla
    0

    Hi Adam

    You are totally right - that feature is missing at the moment. It is on our todo list for features.Until it is added the only thing you can do is to use the cartUpdate event and update your mini cart UI using jQuery.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft