tqExpert Help


For eCommerce, implementing a shoppingCartInfo tqTag returns a list of information from the shopping cart.  This information is then copied to the orderInformation tqTag.

shoppingCartInfo - Syntax

<tqtag name="shoppingCartinfo0type="shoppingCartInfo" >

shoppingCartInfo - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be shoppingCartInfo
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
alternativeTag Text + S + Specify a case declared within the alternative tqTag.
alternativeCondition Text + S + (optional, if the condition is specified within the alternative tqTag) Indicate a condition for the case that you are specifying. Use one of the values described for this field under alternative, for example, isShoppingCartEmpty.

shoppingCartInfo - Local Variables

Name Type Size Description
shoppingCartNumOfItems number Number of items in the shopping cart include qunatities
shoppingCartNumOfRows number 6 Number of rows in the shopping card.
shoppingCartRemoveAllItems text ~100 Url to reset shopping cart
shoppingCartTotal number 6 The total amount of the shopping cart in user currency
userCurrency text 8 Currency mark

shoppingCartInfo - Examples

Example 1 - shoppingCartInfo tqtag basic use
<tqtag type="shoppingCartInfoalternativeTag="emptyShoppingCart1alternativeCondition="isShoppingCartEmpty" >
    <a href="@shoppingCartRemoveAllItems@">Empy Shopping Cart</a> <br />
    shopping cart total: @shoppingCartTotal@

shoppingCartInfo - tqOptions

Within the shoppingCartInfo tqtag, you can use the following tqoptions: if.

shoppingCartInfo - 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: shoppingCartInfo