save-cart
Save the current shopping cart contents into the Interchange user database.
Summary
| Parameter
|
Description
|
Default
|
| nickname |
The name of the cart to save. |
None |
| name |
Alias for nickname. |
None |
| recurring |
Set true for a recurring order. |
No
|
Examples
Tag usage example
|
[save-cart nickname="CART_NAME"]
|
Perl example
$Tag->save_cart({
nickname => 'CART_NAME',
});
|
or similarly with positional parameters:
|
$Tag->save_cart('CART_NAME');
|
Description
This tag saves the current shopping cart into the Interchange user database.
The named cart will be created or overwritten with the content
of the user's current shopping cart.
Also see the [userdb] tag,
where the following syntax may be used:
|
[userdb function="set_cart" nickname="CART_NAME"]
|
This tag will save the cart using a nickname constructed from the following
colon-separated elements:
- The given nickname.
- The current date and time, specified as the number of seconds since 01 January 1970.
- "r" if recurring is true.
Otherwise "c".
Parameters
nickname
The name to give to the saved cart.
recurring
If set true then the cart will be saved as a recurring order.
Donations
Please contact us if you have
a HOWTO-style document,
or anything else you'd like to share with other Interchange users
and developers.
Go on - you know you want to.