Hi
I have this multi filter shipping method we need we need to use
The line that is not working is sum(/in/salesOrder/shippingPackages/shippingPackage/weight) < 1000
I think it may be due to this being a sum calculation. Just not sure how to add the criteria.
Thank you. Any advice is appreciated
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<out>
<allowed>
<xsl:choose>
<!-- Test if Australia
-->
<xsl:when test="sum(/in/salesOrder/shippingPackages/shippingPackage/weight) < 1000 and in/user/roles[role = 'Trade'] and in/salesOrder/subTotalAmount > 27.27 and in/salesOrder/shippingCountryCode = 'AU' and in/salesOrder/shippingSubdivisionCode = 'AU-SA' and (in/salesOrder/shippingPostalCode = '5000' or in/salesOrder/shippingPostalCode = '5006')">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
</xsl:choose>
</allowed>
</out>
</xsl:template>
</xsl:transform>