shoppingCartInfo
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="shoppingCartinfo0" type="shoppingCartInfo" >
...
</tqtag>
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 |
6 |
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="shoppingCartInfo" alternativeTag="emptyShoppingCart1" alternativeCondition="isShoppingCartEmpty" >
<div>
<a href="@shoppingCartRemoveAllItems@">Empy Shopping Cart</a> <br />
shopping cart total: @shoppingCartTotal@ @userCurrency@
</div>
</tqtag>
shoppingCartInfo - tqOptions
Within the shoppingCartInfo tqtag, you can use the following tqoptions:
if.