Copied to clipboard

Flag this post as spam?

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


  • phil 58 posts 78 karma points
    Apr 30, 2012 @ 14:57
    phil
    0

    Something went wrong when requesting a xslt with invokeXSLT():

    HI I had the whole order process working and have been working on the rest of the site. Just tested teh basket again and all works fine expect for when I return to the site after paying for the order with paypal i can display the order confirmation fine on the confirmation page but when I receive the email through the XSLT file set in Confirmation E-mail in Tea Commerce General Settings I get this error in the email instead of any of the order information can you see why

    Something went wrong when requesting a xslt with invokeXSLT(): Unable to load one or more of the types in assembly 'Umbraco.Courier.uComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown: System.TypeLoadException: Method 'ExtractingProperty' in type 'Umbraco.Courier.uComponents.ImageDropdownlist' from assembly 'Umbraco.Courier.uComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. System.TypeLoadException: Method 'ExtractingProperty' in type 'Umbraco.Courier.uComponents.ImageRadioButtonList' from assembly 'Umbraco.Courier.uComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

    My XSLT OrderConfirmation code is

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      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:teacommerce="urn:teacommerce" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets teacommerce ">


    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="order"/>

    <xsl:template match="/">
      <h2>Order Confirmation from Co-Founded Interiors</h2>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="50%" valign="top">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <h3>Billing Information</h3>
                  </td>
                </tr>
                <xsl:if test="$order/properties/company != ''">
                  <tr>
                    <td>Company:</td>
                    <td><xsl:value-of select="$order/properties/company"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/title != ''">
                  <tr>
                    <td>Title:</td>
                    <td><xsl:value-of select="$order/properties/title"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/firstName != ''">
                  <tr>
                    <td>First Name:</td>
                    <td><xsl:value-of select="$order/properties/firstName"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/lastName != ''">
                  <tr>
                    <td>Last Name:</td>
                    <td><xsl:value-of select="$order/properties/lastName"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/streetAddress != ''">
                  <tr>
                    <td>Address:</td>
                    <td><xsl:value-of select="$order/properties/streetAddress"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/city != ''">
                  <tr>
                    <td>City:</td>
                    <td><xsl:value-of select="$order/properties/city"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/county != ''">
                  <tr>
                    <td>County:</td>
                    <td><xsl:value-of select="$order/properties/county"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/postCode != ''">
                  <tr>
                    <td>Postcode:</td>
                    <td><xsl:value-of select="$order/properties/postCode"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/email != ''">
                  <tr>
                    <td>Email:</td>
                    <td><xsl:value-of select="$order/properties/email"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/phone != ''">
                  <tr>
                    <td>Phone:</td>
                    <td><xsl:value-of select="$order/properties/phone"/></td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/mobile != ''">
                  <tr>
                    <td>Mobile:</td>
                    <td><xsl:value-of select="$order/properties/mobile"/></td>
                  </tr>
                </xsl:if>
              </table>
            </td>
            <td width="50%" valign="top">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <br/>
                    <h3>Shipping</h3>
                  </td>
                </tr>
                <xsl:if test="$order/properties/shippingCompany != ''">
                  <tr>
                    <td>Company:</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingCompany"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingTitle != ''">
                  <tr>
                    <td>Title:</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingTitle"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingFirstName != ''">
                  <tr>
                    <td>First Name:</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingFirstName"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingLastName != ''">
                  <tr>
                    <td>Last Name</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingLastName"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingStreetAddress != ''">
                  <tr>
                    <td>Address</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingStreetAddress"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingCity != ''">
                  <tr>
                    <td>City</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingCity"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingCounty != ''">
                  <tr>
                    <td>County</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingCounty"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/properties/shippingPostCode != ''">
                  <tr>
                    <td>Postcode</td>
                    <td>
                      <xsl:value-of select="$order/properties/shippingPostCode"/>
                    </td>
                  </tr>
                </xsl:if>
              </table>
            </td>
         </tr>
         <tr>
            <td colspan="2">
              <table width="50%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <br />
                    <h3>Order details</h3>
                  </td>
                </tr>
                <tr>
                  <td>Number</td>
                  <td>
                    <xsl:value-of select="$order/@name"/>
                  </td>
                </tr>
                <tr>
                  <td>Created</td>
                  <td>
                    <xsl:value-of select="$order/@createdDate"/>
                  </td>
                </tr>
                <xsl:if test="$order/@orderDate != ''">
                  <tr>
                    <td>Completed</td>
                    <td>
                      <xsl:value-of select="$order/@orderDate"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/payment/@name != ''">
                  <tr>
                    <td>Payment method</td>
                    <td>
                      <xsl:value-of select="$order/payment/@name"/>
                    </td>
                  </tr>
                </xsl:if>
                <xsl:if test="$order/transaction/@paymentTransactionId != ''">
                  <tr>
                    <td>Transaction id</td>
                    <td>
                      <xsl:value-of select="$order/transaction/@paymentTransactionId"/>
                    </td>
                  </tr>
                </xsl:if>
              </table>
            </td>
          </tr>
      </table>
      <table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-top: 15px;">
          <tr>
            <td colspan="4">
              <h3>Comments:</h3>
              <xsl:value-of select="$order/properties/comments"/>
            </td>
          </tr>
          <tr>
            <td colspan="4">
              <h3>Order</h3>
            </td>
          </tr>
          <tr>
            <td>Item</td>
            <td align="center">Quantity</td>
            <td align="right">Unit price</td>
            <td align="right">Total</td>
          </tr>
          <xsl:for-each select="$order/orderLine">
            <tr>
              <td>
                <xsl:value-of select="./properties/productTitle"/>
                <xsl:if test="./properties/productMaterial != '1'">
                    <xsl:textMaterial: </xsl:text>
                    <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productMaterial)/title"/>
                    <xsl:text</xsl:text>
                </xsl:if>
                <xsl:if test="./properties/productColour != '1'">
                  <xsl:textColour: </xsl:text>
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productColour)/title"/>
                  <xsl:text</xsl:text>
                </xsl:if>
               <xsl:if test="./properties/productFinish != '1'">
                 <xsl:textFinish: </xsl:text>
                 <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productFinish)/title"/>
                 <xsl:text</xsl:text>
                </xsl:if>
                <xsl:if test="./properties/productSize != '1'">
                  <xsl:textSize: </xsl:text>
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productSize)/title"/>
                  <xsl:text</xsl:text>
                </xsl:if>
                <xsl:if test="./properties/productVersion != '1'">
                  <xsl:textVersion: </xsl:text>
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productVersion)/title"/>
                  <xsl:text</xsl:text>
                </xsl:if>
                <xsl:if test="./properties/productAcrylicTopColour != '1'">
                  <xsl:textAcrylic Top Colour: </xsl:text>
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productAcrylicTopColour)/title"/>
                  <xsl:text</xsl:text>
                </xsl:if>
                <xsl:if test="./properties/productOption != '1'">
                  <xsl:textOption: </xsl:text>
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(./properties/productOption)/title"/>
                  <xsl:text</xsl:text>
                </xsl:if>
              </td>
              <td align="center">
                <xsl:value-of select="./@quantity"/>
              </td>
              <td align="right">
                <xsl:value-of select="./@unitPriceFormatted"/>
              </td>
              <td align="right">
                <xsl:value-of select="./@totalPriceFormatted"/>
              </td>
            </tr>
          </xsl:for-each>
          <tr>
            <td style="border-top: solid 1px #000;" colspan="2"></td>
            <td style="border-top: solid 1px #000;" align="right">Subtotal</td>
            <td style="border-top: solid 1px #000;" align="right">
              <xsl:value-of select="$order/@totalPriceWithoutFeesFormatted"/>
            </td>
          </tr>
          <xsl:if test="$order/shipping/@id != ''">
            <tr>
              <td colspan="2"></td>
              <td align="right">
                Shipping&nbsp;:&nbsp;(<xsl:value-of select="$order/shipping/@name"/>)
              </td>
              <td align="right"><xsl:value-of select="$order/shipping/@feeFormatted"/></td>
            </tr>
          </xsl:if>
          <tr>
            <td colspan="2"></td>
            <td align="right">VAT</td>
            <td align="right"><xsl:value-of select="$order/@totalVATFormatted"/></td>
          </tr>
          <tr>
            <td colspan="2"></td>
            <td align="right"><b>Total</b></td>
            <td align="right"><b><xsl:value-of select="$order/@totalPriceFormatted"/></b></td>
          </tr>
        </table>
    </xsl:template>

    </xsl:stylesheet>

  • Anders Burla 2560 posts 8256 karma points
    May 01, 2012 @ 08:56
    Anders Burla
    0

    Hi Phil

    Looks like a dll/assembly cant be loaded in the request and it looks like something with Courier. Try and strip your email template to almost just a test string to see if it works. Then start adding stuff again until it fails and you should be able to oin point the area of problem.

    Kind regards
    Anders

  • phil 58 posts 78 karma points
    May 01, 2012 @ 13:23
    phil
    0

    Cheers Anders I have got it down to just this simple test string and it still gives me the same error on recept of email I reinstalled teacommerce to reload the dlls etc incase Courier had affected them but still no change what code in the teacommerce jquery files are used when sending the email or any ideas where I should go from here

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      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:teacommerce="urn:teacommerce" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets teacommerce ">
    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:template match="/">
      <h2>Test</h2>
    </xsl:template>
    </xsl:stylesheet>

    cheers phil

  • Anders Burla 2560 posts 8256 karma points
    May 01, 2012 @ 15:39
    Anders Burla
    0

    Think it has something to do with Courier. Have you tried to uninstall it and see if it works?

  • phil 58 posts 78 karma points
    May 01, 2012 @ 15:49
    phil
    0

    Cheers uninstalled courier and all is working fine after i reinstalled tea commerce again does that mean I can't use Courier with tea commerce

  • Anders Burla 2560 posts 8256 karma points
    May 01, 2012 @ 16:04
    Anders Burla
    0

    Great to hear it works - sounds like a false reference to a Courier dll. You will properly have to ask the question in the Courier support forum as this is out of my knowledge.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft