I don't understand when you say "Did you attach the debugger and see that you get no hit ? ".
If you mean if I enabled debug mode I've done it, but have not tested as well as returns me error not only can not get the code of the application when I send email.
I configured Ucommerce and received the confirmation email, but this email like you to come all the information of my purchase.
And about trying to send the email and save before cleaning was only a test.
In short I need to send an complete email confirmation in razor, but I can not know the code of the application that was generated at the time the email is triggered.
The uCommerce framework sends emails based on the configuration you provide - It's simply a node from your content tree it points to. On that, you'll want a macro that generates the content of your email. When the framework calls your node it attaches a querystring with the OrderGuid. That way you can extract the order and generate the content properly.
Send email Complete OrderConfirmation
Hi
Scenary:
Umbraco v 4.11.3 (Assembly version: 1.0.4760.34993)
uCommerce Demo Store - Razor
Problem:
I can not receive the information requested on a macro to set the email template.
Example:
In Content (Demo Store) exist a page Emails > Order Confirmation Email.
I added a macro in template but no feature request works.
My Macro:
@using UCommerce
@using UCommerce.Api
@using UCommerce.Runtime
@try{
var request = HttpContext.Current.Request;
var basket = TransactionLibrary.GetBasket().PurchaseOrder;
}
catch (Exception ex)
{
@ex.Message;
}
In Checkout.config
I alter order of
<tasks>
<array>
<value>${Checkout.ValidatePaymentsMadeAgainstOrderTotal}</value>
<value>${Checkout.AssignOrderNumber}</value>
<value>${Checkout.CreateCustomer}</value>
<value>${Checkout.CreateMemberForCustomer}</value>
<value>${Checkout.ConvertBasketToPurchaseOrder}</value>
<value>${Checkout.AddAuditTrailForCurrentOrderStatus}</value>
<value>${Checkout.SetVoucherUses}</value>
<value>${Checkout.ClearBasketInformation}</value>
<value>${Checkout.SavePurchaseOrder}</value>
<value>${Checkout.SendConfirmationEmail}</value>
</array>
</tasks>
to
<tasks>
<array>
<value>${Checkout.ValidatePaymentsMadeAgainstOrderTotal}</value>
<value>${Checkout.AssignOrderNumber}</value>
<value>${Checkout.CreateCustomer}</value>
<value>${Checkout.CreateMemberForCustomer}</value>
<value>${Checkout.ConvertBasketToPurchaseOrder}</value>
<value>${Checkout.AddAuditTrailForCurrentOrderStatus}</value>
<value>${Checkout.SetVoucherUses}</value>
<value>${Checkout.SendConfirmationEmail}</value>
<value>${Checkout.ClearBasketInformation}</value>
<value>${Checkout.SavePurchaseOrder}</value>
</array>
</tasks>
link to test www.finaestampa-arte.com
Please I need help.
Thanks
Hi Fabio,
First off, let me say you rock for starting out with your version numbers. It's typically the first thing to ask :)
Did you attach the debugger and see that you get no hit ?
Can you verify that your store has set its email profile and the orderconfirmation email is set to your content node containing that macro ?
Another question pops into my mind; Why did you send confirmation mail before clearing and saving ?
Regards
Morten
Hi Morten,
Sorry response to late.
I don't understand when you say "Did you attach the debugger and see that you get no hit ? ".
If you mean if I enabled debug mode I've done it, but have not tested as well as returns me error not only can not get the code of the application when I send email.
I configured Ucommerce and received the confirmation email, but this email like you to come all the information of my purchase.
And about trying to send the email and save before cleaning was only a test.
In short I need to send an complete email confirmation in razor, but I can not know the code of the application that was generated at the time the email is triggered.
Regards,
Fabio
The uCommerce framework sends emails based on the configuration you provide - It's simply a node from your content tree it points to. On that, you'll want a macro that generates the content of your email. When the framework calls your node it attaches a querystring with the OrderGuid. That way you can extract the order and generate the content properly.
is working on a reply...