Guest User

Voucher payment method custom rule

a guest
Jul 3rd, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.11 KB | None | 0 0
  1. <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  2.     <xsl:template match="/">
  3.         <out>
  4.             <allowed>
  5.                 <xsl:choose>
  6.                     <!--Don't allow OLGR payments (PVID 33) -->
  7.                     <xsl:when test="/in/salesOrder/salesOrderDetails/salesOrderDetail/productVariantID = 33">false</xsl:when>
  8.                     <xsl:otherwise>true</xsl:otherwise>
  9.                 </xsl:choose>
  10.                 <xsl:choose>
  11.                     <!--Don't allow OLGR payments (PVID 35) -->
  12.                     <xsl:when test="/in/salesOrder/salesOrderDetails/salesOrderDetail/productVariantID = 35">false</xsl:when>
  13.                     <xsl:otherwise>true</xsl:otherwise>
  14.                 </xsl:choose>
  15.                 <xsl:choose>
  16.                     <!--Don't allow OLGR payments (PID 24) -->
  17.                     <xsl:when test="/in/salesOrder/salesOrderDetails/salesOrderDetail/productID = 24">false</xsl:when>
  18.                     <xsl:otherwise>true</xsl:otherwise>
  19.                 </xsl:choose>
  20.                 <xsl:choose>
  21.                     <!--Don't allow OLGR payments (PID 26) -->
  22.                     <xsl:when test="/in/salesOrder/salesOrderDetails/salesOrderDetail/productID = 26">false</xsl:when>
  23.                     <xsl:otherwise>true</xsl:otherwise>
  24.                 </xsl:choose>
  25.             </allowed>
  26.         </out>
  27.     </xsl:template>
  28. </xsl:transform>
Advertisement
Add Comment
Please, Sign In to add comment