Name

cart — set the current shopping cart

ATTRIBUTES

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

DESCRIPTION

This simple tag sets the default cart name for tags that operate on it (such as [shipping], [price], [total], [subtotal] or [nitems]).

BEHAVIOR

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

EXAMPLES

Example: Set new default cart name

Place the following on an Interchange page:

[cart NEW]

NOTES

See the cart glossary entry.

AVAILABILITY

cart is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/cart.coretag
Lines: 13


# 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: cart.coretag,v 1.6 2007-03-30 23:40:49 pajamian Exp $

UserTag cart                Order        name
UserTag cart                PosNumber    1
UserTag cart                Version      $Revision: 1.6 $
UserTag cart                MapRoutine   Vend::Interpolate::tag_cart

Source: lib/Vend/Interpolate.pm
Lines: 2756

sub tag_cart {
$Vend::CurrentCart = shift;
return '';
}

Source: lib/Vend/Interpolate.pm
Lines: 2756

sub tag_cart {
$Vend::CurrentCart = shift;
return '';
}

AUTHORS

Interchange Development Group

SEE ALSO

load_cart(7ic), save_cart(7ic)

DocBook! Interchange!