description — return description for a specific product from the products database
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? |
The tag returns the description for a specified product.
If no base=
is specified, all ProductFiles
are searched for the specified SKU.
Interchange 5.9.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}); }