Copied to clipboard

Flag this post as spam?

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


  • Nicolaj Kirkgaard Nielsen 4 posts 25 karma points
    Aug 06, 2015 @ 08:50
    Nicolaj Kirkgaard Nielsen
    0

    How to get the product URL in order receipt email

    Hello,

    I have tried different techniques to get the URL of an orderline product in the order confirmation email but without success. How do I do this?

  • Anders Burla Johansen 2560 posts 8256 karma points
    Aug 06, 2015 @ 09:01
    Anders Burla Johansen
    0

    Hi Nicolaj

    Use the Umbraco API to fetch the node using the product identifier property at the order line. That is the umbraco node id.

    Kind regards

    Anders

  • Nicolaj Kirkgaard Nielsen 4 posts 25 karma points
    Aug 06, 2015 @ 10:44
    Nicolaj Kirkgaard Nielsen
    0

    Hi Anders,

    I did try using UmbracoHelper, but it wouldn't instantiate without a context. I couldn't find a syntax that worked. Do you have a working example?

  • Anders Burla Johansen 2560 posts 8256 karma points
    Aug 06, 2015 @ 10:50
    Anders Burla Johansen
    0

    Don't have an example as I just thought it would work. You will need to dig a bit more into the Umbraco API :)

  • Paul Wright (suedeapple) 222 posts 606 karma points
    Aug 26, 2015 @ 08:29
    Paul Wright (suedeapple)
    0

    var umbHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);

    @umbHelper.TypedContent(2).Name

Please Sign in or register to post replies

Write your reply to:

Draft