load-cart
Recall a cart from the Interchange user database.
Summary
| Parameter
|
Description
|
Default
|
| nickname |
The name of the cart to load. |
None |
| name |
Alias for nickname. |
None |
Examples
Tag usage example
|
[load-cart nickname="CART_NAME"]
|
Perl example
$Tag->load_cart({
nickname => 'CART_NAME',
});
|
or similarly with positional parameters:
|
$Tag->load_cart('CART_NAME');
|
Description
This tag recalls a shopping cart from the Interchange user database.
The user's current shopping cart content will be replaced with the
content of the named saved cart.
Also see the [userdb] tag,
where the following syntax may be used:
|
[userdb function="get_cart" nickname="CART_NAME"]
|
Parameters
nickname
The name of the cart to recall,
if the cart nickname exists in the user's row in the
Interchange user database.
The nickname should be constructed from the following colon-separated
elements:
- A cart name nickname.
- The time the cart was last modified, specified as the number of seconds since 01 January 1970.
- The cart type ("r" if recurring, or "c" if not).
For example: