create
Creates the cart. This action is largely redundant as the cart is automatically created when <cf_dccart> is used if it does not currently exist.
Example: <cf_dccart action="create">
|
empty
Emptys all items from the cart.
Example: <cf_dccart action="empty">
|
list
Writes a list the ids of items currently in the cart into the variable given in the variable attribute.
Example: <cf_dccart action="list" variable="cart_contents">
|
count
If an item-type is defined with the item attribute, it writes the amount of that item in the cart to the variable given in the variable attribute, otherwise it returns the number of item-types in the cart.
Examples: <cf_dccart action="count" item="xj7-ft"
variable="no_of_items">
<cf_dccart action="count" variable="cart_size">
|
add
Adds one or more instances of an item to the cart. If the amount attribute is not defined, it is presumed that one instance is to be added.
Example: <!-- Add 10 xj7-ft's to the cart -->
<cf_dccart action="add" amount="10" item="xj7-ft">
<!-- Add 1 xj7-ft to the cart -->
<cf_dccart action="add" item="xj7-ft">
|
remove
Removes one or more instances of an item from the cart. If the amount attribute is not defined, it is presumed that one instance is to be removed.
Example: <!-- Remove 10 xj7-ft's from the cart -->
<cf_dccart action="remove" amount="10"
item="xj7-ft">
<!-- Remove 1 xj7-ft to the cart -->
<cf_dccart action="remove" item="xj7-ft">
|
kill
Removes all instances of an item from the cart.
Example: <!-- Remove all xj7-ft's from the cart -->
<cf_dccart action="kill" item="xj7-ft">
|