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.

  • Craig O'Mahony 364 posts 918 karma points
    Dec 17, 2012 @ 13:21
    Craig O'Mahony
    0

    Displaying Order Line Details in confirmation Emails

    Hi I wonder if someone could assist....

    Using the Avenue Clothing store demo I'm trying to display the list of what items have been purchased in the confirmation email but I'm unable to 'get into' the order line details. I'm not sure what properties are available to me and how to display them. Currently I've gotten this:

    @using UCommerce.EntitiesV2

    @{

    var orderGuid = new Guid(umbraco.library.RequestQueryString("orderGuid"));

    var purchaseOrder = PurchaseOrder.All().Single(x => x.OrderGuid == orderGuid);

    foreach (OrderLine orderLine in purchaseOrder.OrderLines){

    <div>@orderGuid</div>;

    }

    }

     

    Which will repeat the orderGuid for each produst that has been purchased. But I'd like to display the purchasers details, product description, etc.

    Could someone point me in the right direction please?

    Thanks,

    Craig

  • Søren Spelling Lund 1797 posts 2786 karma points
    Dec 17, 2012 @ 13:30
    Søren Spelling Lund
    0

    Hi Craig,

    Take a look at the Cart.cshtml file (in macroScripts) that comes with Avenue Clothing. It renders the cart page and will give you a good idea of all the information you can access on an order line.

    Also if you create a Visual Studio project and edit your macros there you should get some Intellisense support, which will make the properties more discoverable.

    Hope this helps.

  • Craig O'Mahony 364 posts 918 karma points
    Dec 18, 2012 @ 10:40
    Craig O'Mahony
    0

    Thanks Søren, I shall give this a whirl!

  • Ezgi 7 posts 27 karma points
    Jan 05, 2013 @ 18:34
    Ezgi
    0

    Hi,

    I need to link order numbers with order details, i try to match with those lines below:

    but i think GetOrderProperty is not suitable here to get the order details in umbraco.. What method should I use, your fast help is very much appreciated

     

    <xsl:template match="/">

     

    <!-- start writing XSLT -->

     <xsl:variable name="orderLineId" select="umbraco.library:RequestQueryString('orderLineId')"/>

      <!--  <xsl:if test="$id!= ''">-->

        <xsl:variable name="orders" select="CommerceLibrary:GetOrderProperty($orderLineId)"/>

Please Sign in or register to post replies

Write your reply to:

Draft