6.12. load_cart

This tag loads a cart by name from the userdb.

6.12.1. Summary

    [load_cart nickname]
    [load_cart nickname="cart-name"]

Positional parameters: The first line shows the usage with positional parameters (given in order). The second line shows usage with named parameters.

Parameters Description Default
nickname Must be an existing nickname.
    Nickname is constructed from:
    • a name part
    • time modified (time the cart was saved by save_cart tag)
    • type (c for cart, r for recurring)
Invalidates cache No
Macro No
Has end tag No

Tag expansion example:

    [load_cart mycart:990102732:c]
    [load_cart nickname="mycart:990102732:c"]

ASP-like Perl call:

    $Tag->load_cart( { nickname => "mycart:990102732:c", } );

or similarly with positional parameters,

    $Tag->load_cart( "mycart:990102732:c" ); See Also

userdb, delete_cart, save_cart and pages templates/components/saved_carts_list_small, pages/saved_carts.html for more examples.

6.12.2. Description

Loads a cart with name nickname from the user database. It will be merged with the current cart. Basically the same as [userdb function=get_cart nickname=cartname merge=1]. nickname

Nickname of cart to be loaded. See above.