6.5. delete_cart

This tag deletes a cart from the userdb.

6.5.1. Summary

    [delete_cart nickname]
    [delete_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 none
Invalidates cache No
Macro No
Has end tag No

Tag expansion example:

    [delete_cart mycart]
    [delete_cart nickname="mycart"]

ASP-like Perl call:

    $Tag->delete_cart( { nickname => "mycart", } );

or similarly with positional parameters,

    $Tag->delete_cart( "mycart" ); See Also

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

6.5.2. Description

Deletes a cart with name nickname from the user database. Basically the same as [userdb function=delete_cart nickname=mycart]. nickname

Nickname of cart to be deleted.