Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Thanks you page display - v8

  1. #1
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default Thanks you page display - v8

    Hey,

    I was wonder if anyone could help with this one.

    We wanted to display the sub total as part of some text (eg below).

    ------------
    Thanks for your order, We can confirm your SUB_TOTAL has been recieved*

    * Minus VAT & Postage
    ------------

    I think it's just a matter of selecting 1 feild from the order table.

    Thanks

    Chris
    Last edited by Fean0r; 06-09-2010 at 06:27 AM.
    Version: ML 8.0.1.2 and No Source Code.

  2. #2
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    I'm look at this today again, this is 1 of the 2 things left to do on the site, at last!

    Can I just run a query to the DB on the thank you page?
    Version: ML 8.0.1.2 and No Source Code.

  3. #3
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    If you don't have the source code that's probably the best way. You could create a custom XSLT function but that's probably a bit overkill.

  4. #4
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    I've been working with this and made some progress until I noticed I couldn't pick up "money" feilds;

    C#/VB.NET Code:
        <query name="Orders" rowElementName="Order">
            <
    sql>
                <![
    CDATA[
                    
    select from Orders with (NOLOCKwhere OrderNumber=@OrderNumber
                
    ]]>
            </
    sql>
            <
    queryparam paramname="@OrderNumber" paramtype="runtime" requestparamname="OrderNumber" sqlDataType="int" defvalue="0"  validationpattern="" />
            <
    queryparam paramname="@OrderSubtotal" paramtype="runtime" requestparamname="OrderSubtotal" sqlDataType="money" defvalue="0"  validationpattern="" />
            <
    queryparam paramname="@SkinID" paramtype="runtime" requestparamname="SkinID" sqlDataType="int" defvalue="0"  validationpattern="" />        
            <
    queryparam paramname="@AffiliateID" paramtype="runtime" requestparamname="AffiliateID" sqlDataType="int" defvalue="0"  validationpattern="" />        
        </
    query
    All of these work except OrderSubtotal (which is a money feild), I assume I'm doing thing silly?

    This appears to be NULL -
    C#/VB.NET Code:
    <xsl:param name="OrderSubtotalName"><xsl:value-of select="/root/Runtime/OrderSubtotal" /></xsl:param
    Last edited by Fean0r; 06-10-2010 at 06:47 AM.
    Version: ML 8.0.1.2 and No Source Code.

  5. #5
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    I was sure I bumped this up!

    Any ideas what I've got wrong? This is my last thing to-do and I'm done
    Version: ML 8.0.1.2 and No Source Code.

  6. #6
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    Look like it's back to the drawing board..
    Version: ML 8.0.1.2 and No Source Code.