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

Thread: shipping notification based on shipping method ID

  1. #1
    tommy@therave.com is offline Junior Member
    Join Date
    Nov 2011
    Posts
    14

    Default shipping notification based on shipping method ID

    I'm trying to customize the notification.shipped.xml.config to display a different message based on the shipping method they chose.... I have only 2 shipping methods.

    will this work?

    <xsl:choose>
    <xsl:when test="count(/root/Order/OrderInfo) > 0">

    <xsl:choose>
    <xsl:when test="number(/root/Order/ShippingMethodID) =1 ">

    ============SHOW DETAILS FOR SHIPPING METHOD 1

    </xsl:when>
    </xsl:otherwise>

    ============SHOW DETAILS FOR SHIPPING METHOD 2

    </xsl:otherwise>
    </xsl:choose>

    </xsl:when>
    </xsl:choose>


    any help is appreciated.

  2. #2
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default XML Shipping Method

    @tommy@therave.com,

    That looks right. You could optionally eliminate the first "choose" element with an "if". For example:


    Code:
    <xsl:if test="count(/root/Order/OrderInfo) > 0">
    
    <xsl:choose>
    <xsl:when test="number(/root/Order/ShippingMethodID) =1 ">
    
    ============SHOW DETAILS FOR SHIPPING METHOD 1
    
    </xsl:when>
    </xsl:otherwise>
    
    ============SHOW DETAILS FOR SHIPPING METHOD 2
    
    </xsl:otherwise>
    </xsl:choose>
    
    </xsl:if>
    Let us know if that worked out.

    Robert
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller