Name

OrderCounter — specify file that keeps and increments order count

SYNOPSIS

filename

DESCRIPTION

Specify filename where the simple order number template is kept (and, of course, incremented with every new order). Within the template, the right-most number is found and incremented, preserving zero padding, if any.

If the counter file is unset, then the order number will be assigned a string in form of session_id.unix_time.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Creating file etc/order.number

#COUNTER-1.0
W-TEST-0000

Example: Setting OrderCounter

OrderCounter etc/order.number

NOTES

Bear in mind that Interchange provides this order number counter only as a convenience for display, and that no internal functions depend on it. Custom order number routines may be defined and used without fear of consequences.

If Route is set to supplant and the counter attribute is set there, this directive is ignored.

See order glossary entry for complete discussion of Interchange's ordering process.

AVAILABILITY

OrderCounter is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 623

['OrderCounter',   undef,            ''],

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!