envisasoft
-
1/20/2011 6:48:13 PM
Setting ShoppingCart in the CMSContext
I created a web part that replaces the entire stepped process of buying an item off a web site. Everything is fine except when the notification email is sent out. There are macros in the email template, but they are not resolving; everything is blank. Since the web part does all the work on the stepped process, I have had to manually send the notifications. I simply grab the email template then for the body i use:
CMSContext.CurrentResolver.ResolveMacros(orderTemplate.TemplateText, true);
Since there is no shopping cart in the current context nothing is resolving. I searched and could not find anything in the documentation or on DevNet as to how I can set the shopping cart of the current context.
Please advise.
|