SetStatus
Last modified by Outhman Moustaghfir on 2024/02/26 17:12
Introduction
In this section, we will go throw an XSL function to set the status of certain tracking.
Parameters
SetStatus uses 4 params to help retrieve trackings in question:
- trkID : tracking ID.
- trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
- status: the status to update
- echo Output: boolean optional param, that returns the value of 'status' when true. the default value is false.
Uses
We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
eg. if we want to set status of a product with trkID = '632061e5f8aef457701a28d3' to 'Delivered' :
<xsl:value-of select="ixf:SetStatus('632061e5f8aef457701a28d3', 'Product' , 'Delivered')"></xsl:value-of>