Name

PriceField — specify name of the "price" field in the Interchange database

SYNOPSIS

field_name

DESCRIPTION

By default, Interchange expects item price to be in the price field in the database. This directive allows modification of the default name.

The field is accessed implicitly when you call say, [item-price] in ITL.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Redefining PriceField

PriceField preis

Example: Setting PriceField depending on current locale

# Establish the default at startup
PriceField    price

# Establish locale-specific price field
Locale fr_FR  PriceField  prix

With the above example, if is enabled, the prix field from the pricing database will be used to develop quantity-based pricing.

To fully understand the example and implicitly presented Interchange features, make sure you're familiar with internationalization and locale glossary entries.


NOTES

It is useful to set the directive based on current locale.

AVAILABILITY

PriceField is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 701

['PriceField',     undef,              'price'],

AUTHORS

Interchange Development Group

SEE ALSO

PriceCommas(7ic), PriceDivide(7ic), price(7ic), PriceDefault(7ic)

DocBook! Interchange!