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 3 of 3

Thread: Regenerate Receipt

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation Regenerate Receipt

    Hi, I have a situation

    I have modified my notification.receipt.xml.config
    Code:
    <xsl:if test="/root/Order/OrderInfo/IsPrinted = 1">
    <img src="../images/logo_Duplicate.png" />
    </xsl:if>
    
    <xsl:if test="/root/Order/OrderInfo/IsPrinted = 0">
    <img src="../images/logo_receipt.png" />
    </xsl:if>
    to show a different logo saying it is already printed.

    Some time, this is not efficient. i have to manually click on "Regenerate Receipt" Button

    is there any way that i do not need to click on the Regenerate Receipt" Button
    every time I print a Receipt it should automatically show me the different logo that i specified in XML.

    thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  2. #2
    tuffy is offline Member
    Join Date
    Nov 2008
    Posts
    76

    Default

    Have you tried messing around with syntax? (I'm not a programmer by any means so don't get your hopes up with this one.. just a suggestion since no one else answered)

    I see more stuff like this in my xml packages:

    <xsl:if test="number(/root/Order/OrderInfo/IsPrinted) = 1">
    <img src="../images/logo_Duplicate.png" />
    </xsl:if>

    <xsl:if test="number(/root/Order/OrderInfo/IsPrinted) = 0">
    <img src="../images/logo_receipt.png" />
    </xsl:if>

  3. #3
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation No difference

    Quote Originally Posted by tuffy View Post
    Have you tried messing around with syntax? (I'm not a programmer by any means so don't get your hopes up with this one.. just a suggestion since no one else answered)

    I see more stuff like this in my xml packages:

    <xsl:if test="number(/root/Order/OrderInfo/IsPrinted) = 1">
    <img src="../images/logo_Duplicate.png" />
    </xsl:if>

    <xsl:if test="number(/root/Order/OrderInfo/IsPrinted) = 0">
    <img src="../images/logo_receipt.png" />
    </xsl:if>

    No difference, It works both ways, the one i posted and the one you suggested.
    But i have to click on regenerate receipt to see the change. if not it will not make the image change.

    thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4