The following CyberStore e-commerce XSLT files have been added or modified in the 2.15 release:
New XSLT Files
The following XSLT files have been added to CyberStore in this version:
Modified XSLT Files
We have also modified base XSLT files as part of this release. If you use a standard version of this file, this is automatically updated when you install version 2.15. If you use a custom version, you should make changes within the following XSLT file to maintain full functionality.
Modified XSLT |
Description of Modification |
SORQCP.xslt |
Change only the text within the control markup that differs from version 2.13 to 2.15, as shown below:
Change # 1 for Defining LinePrice
- From 2.13:
<Option>
<ContractType>A</ContractType>
<IncludeFlatPrice>N</IncludeFlatPrice>
<IncludeCoded>N</IncludeCoded>
<IncludeQtyDiscountBreaks>Y</IncludeQtyDiscountBreaks>
<IncludeListPriceLessPerc>N</IncludeListPriceLessPerc>
<IncludeListPriceLessChainDisc>N</IncludeListPriceLessChainDisc>
<IncludePriceCodeLessChainDisc>N</IncludePriceCodeLessChainDisc>
<IncludeMarkUpCostPct>N</IncludeMarkUpCostPct>
<IncludeCodedLessUnitDiscValue>N</IncludeCodedLessUnitDiscValue>
<IncludeGrossProfitPct>N</IncludeGrossProfitPct>
<IncludeNotes>N</IncludeNotes>
<IncludeExpiredContracts>N</IncludeExpiredContracts>
<IncludeFutureContracts>N</IncludeFutureContracts>
<WhToUseForCosts><xsl:value-of select="//Query/Warehouse"/></WhToUseForCosts>
</Option>
To 2.15:
<Option>
<ContractType>A</ContractType>
<IncludeFlatPrice>Y</IncludeFlatPrice>
<IncludeCoded>Y</IncludeCoded>
<IncludeQtyDiscountBreaks>Y</IncludeQtyDiscountBreaks>
<IncludeListPriceLessPerc>Y</IncludeListPriceLessPerc>
<IncludeListPriceLessChainDisc>Y</IncludeListPriceLessChainDisc>
<IncludePriceCodeLessChainDisc>Y</IncludePriceCodeLessChainDisc>
<IncludeMarkUpCostPct>Y</IncludeMarkUpCostPct>
<IncludeCodedLessUnitDiscValue>Y</IncludeCodedLessUnitDiscValue>
<IncludeGrossProfitPct>Y</IncludeGrossProfitPct>
<IncludeNotes>N</IncludeNotes>
<IncludeExpiredContracts>N</IncludeExpiredContracts>
<IncludeFutureContracts>N</IncludeFutureContracts>
<WhToUseForCosts><xsl:value-of select="//Query/Warehouse"/></WhToUseForCosts>
</Option>
|
SORQOV.xslt |
Change only the text within the control markup that differs from version 2.13 to 2.15, as shown below: Change # 1 for Discounting on the OrderHeader
- From 2.13:
<OrderHeader>
<Customer>
<xsl:value-of select="/SalesOrder/OrderHeader/CustomerNumber" />
</Customer>
<OrderDiscountBreaks>Y</OrderDiscountBreaks>
<Area>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxArea" />
</Area>
<State>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxState" />
</State>
<CountyZip>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxCountyZip" />
</CountyZip>
<ExtendedTaxCode>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxCity" />
</ExtendedTaxCode>
</OrderHeader>
To 2.15: <OrderHeader>
<Customer>
<xsl:value-of select="/SalesOrder/OrderHeader/CustomerNumber" />
</Customer>
<OrderDiscountBreaks>Y</OrderDiscountBreaks>
<Area>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxArea" />
</Area>
<State>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxState" />
</State>
<CountyZip>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxCountyZip" />
</CountyZip>
<ExtendedTaxCode>
<xsl:value-of select="/SalesOrder/OrderHeader/TaxCity" />
</ExtendedTaxCode>
<DiscPct1>
<xsl:value-of select="$Discount1" />
</DiscPct1>
<DiscPct2>
<xsl:value-of select="$Discount2" />
</DiscPct2>
<DiscPct3>
<xsl:value-of select="$Discount3" />
</DiscPct3>
</OrderHeader>
Change # 2 for Defining LinePrice
Change # 3 for sending LinePrice for the MerchandiseLine
- From 2.13:
<MPrice>
<xsl:value-of select="format-number($UnitPrice,'#.#####')" />
</MPrice>
-- OR --
<MPrice>
<xsl:value-of select="format-number($CustomerPrice,'#.#####')" />
</MPrice>
To 2.15:
<MPrice>
<xsl:value-of select="format-number($LinePrice,'#.#####')" />
</MPrice>
Change # 4 for discounting on the MerchandiseLine
- From 2.13:
<!-- To Disable Order Line Details, always send Zeros for MDiscPct1-3-->
<xsl:variable name="StockCode" select="StockCode"></xsl:variable>
To 2.15: <xsl:variable name="StockCode" select="StockCode"></xsl:variable>
<MDiscPct1>
<xsl:value-of select="//SalesOrder/Discounts[@StockCode=$StockCode]/DiscountPct1" />
</MDiscPct1>
<MDiscPct2>
<xsl:value-of select="//SalesOrder/Discounts[@StockCode=$StockCode]/DiscountPct2" />
</MDiscPct2>
<MDiscPct3>
<xsl:value-of select="//SalesOrder/Discounts[@StockCode=$StockCode]/DiscountPct3" />
</MDiscPct3>
|
SORQPL.xslt |
Change only the text within the control markup that differs from version 2.13 to 2.15, as shown below:
Change # 1 for Removing UOM
Change # 2 for sending S for the DefaultUnitOfMeasure
- From 2.13:
<Option>
<DefaultUnitOfMeasure>
<xsl:value-of select="$UOM" />
</DefaultUnitOfMeasure>
To 2.15:
<Option>
<DefaultUnitOfMeasure>
S
</DefaultUnitOfMeasure>
|
SORTOI.xslt |
Change only the text within the control markup that differs from version 2.13 to 2.15, as shown below:
Change #1 for Defining InvoiceTerms
Change #2 for Sending InvoiceTerms
Change #3 for Defining LinePrice
Change #4 for sending LinePrice for the StockLine
- From 2.13:
<Price>
<xsl:value-of select="format-number($UnitPrice,'#.####')" />
</Price>
-- OR --
<Price>
<xsl:value-of select="format-number($CustomerPrice,'#.####')" />
</Price>
To 2.15:
<Price>
<xsl:value-of select="format-number($LinePrice,'#.####')" />
</Price>
|
Implementer's Note:
If you have custom versions of the above modified XSLT files in your Site/xslt folder, please compare them with their released versions in the /ecommerce/xslt folder for compatibility.
See Also