Home > Contents > Index >
CART.CHECK
Checks the cart against Transact via the Commerce Connector.
Syntax
<CART.CHECK NAME="cartname
"
VARNAME="varname
"/>Parameters
NAME (required)
- Input parameter. Name of the cart object.
VARNAME (required)
- Input parameter. Name of the variable that holds one of the following values:
true
- the cart is acceptable and can be committed to Transact.false
- the cart is not acceptable to Transact.Description
As a result of the check,
CART.CHECK
updates the following parameters with legal values:
subTotal
- The total cost of items
shippingInfo-shippingCost
- The total cost of shipping.shippingInfo-shipperID
- The Transact shipper GUID.shippingInfo-shipperName
- The Transact shipper name.
tax-taxType
- Type (USSalesTax
,Canadian
,VAT
)tax-taxAmount
- The total tax amount(if
taxType
is notCanadian
)tax-GST
- Canadian GSTtax-PST
- Canadian PST
shippingInfo-shippingTax-taxType
- Type (USSalesTax
,Canadian
,VAT
)shippingInfo-shippingTax-taxAmount
- iftaxType
is notCanadian
- Canadian GST
shippingInfo-shippingTax-GSTshippingInfo-shippingTax-PST
- Canadian PST
totalSalesAmount
- The sum ofsubTotal
,shippingCost
, andtax-taxAmount
.
- store - A set of parameters that come from the
transact.ini
file. (Normally, the Web developer is only concerned withstoreID
andcurrencyCode
.)See "Shopping Cart Parameters," for details on returned parameters.
The
CART.CHECK
tag also returns an error code and error message if Transact cannot resolve any other field in the cart (for example, a missing postal code, or a postal code that is not legal for a specified city).
- As a result of the check, the cart object is updated to reflect any errors or notifications retrieved from the Transact. Choices for fields that have choices also become available.
Example
<!-- Get the current cart. -->
<COMMERCECONTEXT.GETCURRENTCART VARNAME="thiscart"/><!-- Check the cart to enumerate payment methods. -->
<CART.CHECK NAME="thiscart" VARNAME="cartstatus"/> <!-- Now get the legal values for the payment types. --> <CART.GETLEGALVALUES NAME="thiscart" FIELD="paymentInfo-brandID" LISTVARNAME="paylist"/>
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.