For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

load-cart

Recall a cart from the Interchange user database.

Summary

  • [load-cart nickname]

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:

mycart:990102732:c

Category:  Interchange tags
Last modified by: Kevin Walsh
Modification date: Saturday 4 August 2007 at 10:16 PM (CDT)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us