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.

  • Roger 14 posts 34 karma points
    Jul 24, 2013 @ 15:11
    Roger
    0

    Cannot get orderconfirmation email to work

    I seem to be having a problem with

     

    When I try to add this to my xslt file I get this

    System.ArgumentException: The purchase order with order number '' could not be found. 
    at UCommerce.Transactions.TransactionLibraryInternal.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember) 
    at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder_callback(String orderNumber, Boolean validateForCurrentMember) 
    at Castle.Proxies.Invocations.TransactionLibraryInternal_GetPurchaseOrder.InvokeMethodOnTarget() 
    at Castle.DynamicProxy.AbstractInvocation.Proceed() 
    at UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation) 
    at Castle.DynamicProxy.AbstractInvocation.Proceed() 
    at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember) 
    at UCommerce.Xslt.LibraryImpl.GetPurchaseOrder(String orderNumber) 
    at UCommerce.Xslt.Library.GetPurchaseOrder(String orderNumber)

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
     ]>
     
    version="1.0" 
     
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:ucomponents.cms="urn:ucomponents.cms" xmlns:ucomponents.dates="urn:ucomponents.dates" xmlns:ucomponents.email="urn:ucomponents.email" xmlns:ucomponents.io="urn:ucomponents.io" xmlns:ucomponents.media="urn:ucomponents.media" xmlns:ucomponents.members="urn:ucomponents.members" xmlns:ucomponents.nodes="urn:ucomponents.nodes" xmlns:ucomponents.random="urn:ucomponents.random" xmlns:ucomponents.request="urn:ucomponents.request" xmlns:ucomponents.search="urn:ucomponents.search" xmlns:ucomponents.strings="urn:ucomponents.strings" xmlns:ucomponents.urls="urn:ucomponents.urls" xmlns:ucomponents.xml="urn:ucomponents.xml" xmlns:umbraco.contour="urn:umbraco.contour" xmlns:CommerceLibrary="urn:CommerceLibrary" xmlns:PS.XSLTsearch="urn:PS.XSLTsearch" 
    exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Examine ucomponents.cms ucomponents.dates ucomponents.email ucomponents.io ucomponents.media ucomponents.members ucomponents.nodes ucomponents.random ucomponents.request ucomponents.search ucomponents.strings ucomponents.urls ucomponents.xml umbraco.contour CommerceLibrary PS.XSLTsearch ">
     
     
     method="xml" omit-xml-declaration="yes"/>
     name="orderGuid" select="umbraco.library:RequestQueryString('orderGuid')"/>
     name="cart" select="CommerceLibrary:GetPurchaseOrder($orderGuid)"/>
     name="currentPage"/>
     match="/">
     
     
     select="$orderGuid"/>
     
     
     
     
     

    If I leave it out I can get the orderGuid in an email. What am I doing wrong? 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jul 25, 2013 @ 10:51
    Jan Skovgaard
    0

    Hi Roger

    Is all the code you're trying to add displayed in the above example?

    And have you tried editing the file outside of Umbraco? Or simply tried to ignore the error check by clicking "skip errors"? There might be an extension in there that expects a value but it's probably a value it will not get untill runtime, which happens on the website not in the built in XSLT editor.

    Hope this makes sense.

    /Jan

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 29, 2013 @ 14:04
    Søren Spelling Lund
    0

    Hi Roger,

    It's probably throwing up the error because Umbraco will try and execute the macro without the proper context. As Jan suggests you can tick the "Skip errors" to get it to save adn try it out with a real order as context.

    Hope this helps.

Please Sign in or register to post replies

Write your reply to:

Draft