Wiki source code of GetStatus
Version 1.1 by Outhman Moustaghfir on 2022/09/21 14:04
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Introduction = | ||
2 | |||
3 | In this section, we will go throw an XSL function to get status by trkID. | ||
4 | |||
5 | = Parameters = | ||
6 | |||
7 | GetStatus uses 2 params to help retrieve trackings in question: | ||
8 | |||
9 | 1. trkID : tracking ID. | ||
10 | 1. trackingType: it refers to type of tracking wanted. (eg : order , product, baseArticle ...) | ||
11 | |||
12 | = Uses = | ||
13 | |||
14 | We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country). | ||
15 | |||
16 | if we want to get status of a product with trkID = '632061e5f8aef457701a28d3' | ||
17 | |||
18 | {{code language="XML"}} | ||
19 | <xsl:value-of select="ixf:GetStatus('632061e5f8aef457701a28d3', 'Product')"/> | ||
20 | {{/code}} | ||
21 | |||
22 |