For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

save-cart

Save the current shopping cart contents into the Interchange user database.

Summary

  • [save-cart nickname]

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.

Category:  Interchange tags
Last modified by: Kevin Walsh
Modification date: Sunday 5 August 2007 at 12:51 AM (CDT)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us