Wiki source code of SetStatus
Version 2.1 by Outhman Moustaghfir on 2022/09/21 16:03
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 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 4 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 ...) | ||
![]() |
2.1 | 11 | 1. status: the status to update |
12 | 1. echo Output: boolean optional param, that returns the value of 'status' when true. | ||
![]() |
1.1 | 13 | |
14 | = Uses = | ||
15 | |||
16 | We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country). | ||
17 | |||
![]() |
2.1 | 18 | eg. if we want to set status of a product with trkID = '632061e5f8aef457701a28d3' to 'Delivered' : |
![]() |
1.1 | 19 | |
![]() |
2.1 | 20 | {{code language="XML"}} |
21 | <xsl:value-of select="ixf:SetStatus('632061e5f8aef457701a28d3', 'Product' , 'Delivered')"/> | ||
22 | {{/code}} | ||
![]() |
1.1 | 23 | |
![]() |
2.1 | 24 |