tqExpert Help


For eCommerce, implementing an orderItems tqTag returns a list of items ordered.  You implement it within an orderInformation tqTag.

orderItems - Syntax

<tqtag name="items0type="orderItems" >

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]!
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
lineItemID number 12 Line item database id number
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
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
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)
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="order0type="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="items0type="orderItems" >
                <td><a href="/?product=@id@&lineItem=@lineItemID@"><img src="@productSmallImage@" alt="@title@" width="75" height="75" /><span>@catalogID@</span></a></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 colspan="4" align="left">Toal Order price</td>

orderItems - tqOptions

With the orderItems tqtag, you can use the following tqoptions: head, if, lastItemInRow, tail.

orderItems - Templates

The templates below implement this tqTag. After you click a link, use your browser commands to view the page source.

User Notes

  Add Note

Topic: orderItems