Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Fabio Nogueira 2 posts 23 karma points
    May 06, 2013 @ 16:22
    Fabio Nogueira
    1

    Send email Complete OrderConfirmation

    Hi 

    Scenary:

    Umbraco v 4.11.3 (Assembly version: 1.0.4760.34993)

    uCommerce 3.0.3.13009
    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 

     

     

  • Morten Skjoldager 440 posts 1499 karma points
    May 24, 2013 @ 09:51
    Morten Skjoldager
    0

    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

  • Fabio Nogueira 2 posts 23 karma points
    Jun 05, 2013 @ 00:10
    Fabio Nogueira
    0

    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

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 07, 2013 @ 15:24
    Morten Skjoldager
    0

    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.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft