field
Returns into the value of the specified column name for the specified product SKU code.
Summary
| Parameter
|
Description
|
Default
|
| code |
Product SKU code. |
None |
| row |
Alias for code. |
None |
| name |
The name of the column that holds the data you are looking for. |
None |
| col |
Alias for name. |
None |
| column |
Alias for name. |
None |
| field |
Alias for name. |
None |
| base |
The database table to which the search should be constrained. |
None |
| interpolate |
Process any Interchange tags found in the text output from this tag. |
Yes
|
Examples
Perl example
$Tag->field({
name => $column,
code => $sku,
});
|
or similarly with positional parameters:
|
$Tag->field($column, $sku);
|
Description
Expands into the value of the column name for the product identified by its SKU code, as found by searching the products table(s).
It will return the first entry found in the series of DefaultTables.
Parameters
code
Product SKU code.
name
The name of the column that holds the data you are looking for.
base
If you want to constrain it to a particular table, use the
[data base name code] syntax.
|
Note
If you only have one DefaultTables table,
named products,
which is the default, then [field column key] is the same
as [data products column key].
|