Name

delete_cart — delete shopping cart from UserDB

ATTRIBUTES

Attribute Pos. Req. Default Description
[ nickname | name ] Yes Yes   Cart name to delete.
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

This tag deletes a shopping cart from the UserDB. This is basically the same as [userdb function=delete_cart nickname=CART_NAME].

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

Example: Delete cart "test"

Put the following on your page:

[seti cartname]test[/seti]

[delete_cart nickname="[scratch cartname]"]

NOTES

AVAILABILITY

delete_cart is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/UserTag/delete_cart.tag
Lines: 21


# Copyright 2002-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: delete_cart.tag,v 1.6 2007-03-30 23:40:56 pajamian Exp $

UserTag delete_cart Order     nickname
UserTag delete_cart AttrAlias name nickname
UserTag delete_cart Version   $Revision: 1.6 $
UserTag delete_cart Routine   <<EOR
sub {
my($nickname) = @_;

$Tag->userdb({function => 'delete_cart', nickname => $nickname});

return '';
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

save_cart(7ic), load_cart(7ic), userdb(7ic)

DocBook! Interchange!