Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | 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- Cart is acceptable and can be committed to Transact.false- Cart is not acceptable to Transact.Description
As a result of the check,
cart:checkupdates the following parameters with legal values:
subTotal- Total cost of items
shippingInfo-shippingCost- Total cost of shipping.shippingInfo-shipperID- Transact shipper GUID.shippingInfo-shipperName- Transact shipper name.
tax-taxType- Type (USSalesTax,Canadian,VAT)tax-taxAmount- Total tax amount(iftaxTypeis notCanadian)tax-GST- Canadian GSTtax-PST- Canadian PST
shippingInfo-shippingTax-taxType- Type (USSalesTax,Canadian,VAT)shippingInfo-shippingTax-taxAmount- iftaxTypeis notCanadian- Canadian GST
shippingInfo-shippingTax-GSTshippingInfo-shippingTax-PST- Canadian PST
totalSalesAmount- Sum ofsubTotal,shippingCost, andtax-taxAmount.
store- Set of parameters that come from thetransact.inifile. (The Web developer is only concerned withstoreIDandcurrencyCode.)The
cart:checktag 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 JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.