orderItems
For eCommerce, implementing an orderItems tqTag returns a list of items ordered. You implement it within an orderInformation tqTag.
orderItems - Syntax
<tqtag name="items0" type="orderItems" >
...
</tqtag>
orderItems - Parameters
| Parameter Name |
Type |
Mandatory |
Strict | Transitional |
Case Sensitive |
Description |
| type |
Text |
+ |
S |
+ |
must be orderItems |
| name |
Text |
+ |
S |
+ |
should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed |
orderItems - Local Variables
| Name |
Type |
Size |
Description |
| addDate |
datetime |
|
The datetime the order item was created. can be formated using 2009-01-09 14:56:07df:[format]! |
| allowCountUpdate |
|
|
|
| barCode |
text |
100 |
Line item barcode |
| catalogID |
number |
12 |
Linte item catalod number |
| content |
text |
65535 |
Product content |
| counter |
number |
6 |
Order |
| currency |
text |
12 |
Line item currency in order |
| description |
text |
65535 |
Line item short description |
| itemsCount |
|
|
|
| lineItemID |
number |
12 |
Line item database id number |
| longDescription |
|
|
|
| orderID |
number |
12 |
The order database number |
| price |
number |
12 |
The line item price |
| priceInUserCurrency |
number |
12 |
Line item price in user currency |
| productBigImage |
text |
350 |
Line item default product big image |
| productID |
|
|
|
| productLink |
text |
~100 |
Url link to product page |
| productMediumImage |
text |
350 |
Line item default medium image |
| productName |
text |
100 |
Product name |
| productProperties |
text |
1024 |
All product properties |
| productSmallImage |
text |
350 |
Line item default small image |
| realPriceInUserCurrency |
number |
12 |
The line item market price in user currency |
| removeItemAction |
|
|
|
| rowID |
|
|
|
| shortDescription |
text |
65535 |
Line item short description |
| stockAffectingProperties |
text |
1024 |
Line items properties that are stock affecting |
| totalPrice |
number |
12 |
Line item total price (number of items * quantity) |
| totalPriceInUserCurrency |
number |
12 |
Line item total price in user currency (number of items * quantity) |
| updateCountAction |
|
|
|
| vendor |
text |
100 |
Product vendor |
| yousavemoney |
number |
12 |
The difference between market price and site price in product currency |
| youSaveMoneyInUserCurrency |
number |
12 |
The difference between market price and site price in user currency |
| yousavepercent |
number |
12 |
Percent difference between market price and site price |
orderItems - Examples
Example 1 - view order details and the items in it
<tqtag name="order0" type="orderInformation" >
Customer Name: @fName@ @lName@<br />
Address: @address@<br />
Phone: @phone@<br />
Products in order:<br />
<table align="center" cellpadding="0" cellspacing="3">
<tr><th>picture</th><th>{roduct name</th><th>unit price</th><th>quantity</th><th>Total Price</th>
<tqtag name="items0" type="orderItems" >
<tr>
<td><a href="/?product=@id@&lineItem=@lineItemID@"><img src="@productSmallImage@" alt="@title@" width="75" height="75" /><span>@catalogID@</span></a></td>
<td>
<a href="/?product=@id@&lineItem=@lineItemID@" target="_blank"><span>@productName@</span></a><br />
<span>@shortDescription@<br /><b>vendor:</b>@vendor@ <br />@productProperties@<br />@stockAffectingProperties@</span>
</td>
<td><span>@realPriceInUserCurrency@</span>@priceInUserCurrency@</td>
<td>@itemsCount@</td>
<td>@totalPriceInUserCurrency@</td>
</tr>
</tqtag>
<tr>
<td colspan="4" align="left">Toal Order price</td>
<td>@totalPrice@</td>
</tr>
</table>
</tqtag>
orderItems - tqOptions
With the orderItems tqtag, you can use the following tqoptions:
head,
if,
lastItemInRow,
tail.