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
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?
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
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?
Don't have an example as I just thought it would work. You will need to dig a bit more into the Umbraco API :)
var umbHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);
@umbHelper.TypedContent(2).Name
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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?
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
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?
Don't have an example as I just thought it would work. You will need to dig a bit more into the Umbraco API :)
var umbHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);
@umbHelper.TypedContent(2).Name
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.