delete_cart — delete shopping cart from UserDB
Attribute | Pos. | Req. | Default | Description |
---|---|---|---|---|
[ nickname | name ] | Yes | Yes | Cart name to delete. | |
interpolate | 0 | interpolate output? | ||
hide | 0 | Hide the tag return value? |
This tag deletes a shopping cart from the UserDB.
This is basically the same as
[userdb function=delete_cart
nickname=
.
CART_NAME
]
Example: Delete cart "test"
Put the following on your page:
[seti cartname]test[/seti] [delete_cart nickname="[scratch cartname]"]
Interchange 5.9.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