Name

description — return description for a specific product from the products database

ATTRIBUTES

Attribute Pos. Req. Default Description
code Yes Yes   Product SKU.
base Yes   All ProductFiles databases Database to look up the product in.
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

The tag returns the description for a specified product. If no base= is specified, all ProductFiles are searched for the specified SKU.

BEHAVIOR

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

EXAMPLES

Example: Displaying description for item 1299

[description 1299]

NOTES

AVAILABILITY

description is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/description.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: description.coretag,v 1.4 2007-03-30 23:40:49 pajamian Exp $

UserTag description         Order        code base
UserTag description         PosNumber    2
UserTag description         Version      $Revision: 1.4 $
UserTag description         MapRoutine   Vend::Data::product_description

Source: lib/Vend/Data.pm
Lines: 231

sub product_description {
my ($code, $base) = @_;
return "" unless $base = product_code_exists_ref($code, $base || undef);
return database_field($base, $code, $Vend::Cfg->{DescriptionField});
}

AUTHORS

Interchange Development Group

SEE ALSO

DescriptionField(7ic), price(7ic), field(7ic)

DocBook! Interchange!