CyberCash SmartElement Reference
231
Replace [token] in [target] with sum of [ShoppingCart] adjusted
subtotal, shipping, and tax
This is a server-side contract that replaces a token in a text element or edit box
with a the sum of the ShoppingCart subtotal, a shipping value contained in
another text element, and a sales tax value contained in yet another text element.
This is useful for displaying a "grandtotal' cost value on a page in your
eCommerce site.
Note:
Because the calculation relies on vlaues contained in other text elements, these text
elements must appear BEFORE the text element to which this contract is applied. THIS
CONTRACT IS MEANT TO BE USED IN CONJUNCTION WITH THE 'Replace [token] with
shipping/sales tax value...' CONTRACTS
Parameters:
Sales Tax Element Name is the name of the element that contains the sales
tax value.
Shipping Element Name is the name of the element that contains the
shipping value.
Token is the exact case-sensitive text that will be replaced by the shipping value.
Participants:
ShoppingCart
Target (text element, edit box, hidden form element)
Replace [token] in [target] with [flat-rate] shipping based on total
quantity from [ShoppingCart]
This is a server-side contract that replaces a token in a text element or edit box
with a shipping value based on a flat-rate shipping charge for each item ordered.
The number of items ordered is determined from the shopping cart. For instance,
suppose you have 5 items ordered, and you specify a flat rate of 5.00 per item. The
contract will return a shipping charge of 25.00.
Parameters:
Ship Rate Per Item is the numeric value of the shipping charge for each item.
Token is the exact case-sensitive text that will be replaced by the shipping value.
Participants:
ShoppingCart
Target (text element, edit box, hidden form element)
Содержание DRUMBEAT 2000 ECOMMERCE EDITION
Страница 1: ...Users Guide macromedia DRUMBEAT 2000 eCOMMERCE EDITION ...
Страница 6: ...Contents 6 ...
Страница 12: ...Introduction 12 ...
Страница 90: ...Chapter 2 90 ...
Страница 110: ...Chapter 3 110 ...
Страница 124: ...Chapter 5 124 ...
Страница 142: ...Chapter 7 142 ...
Страница 152: ...Chapter 8 152 ...
Страница 236: ...Chapter 10 236 ...