nats_display_hourly_sales

Display statistics about hourly sales

Parameters

(Required parameters in bold)

Parameter
Description
Possible Values
Default Value
Example

Template used to display output

Any valid template

The template, function_display_hourly_sales

tpl="my_template"

period

The period to get sale statistics for

Any valid period I.D. number

0

period="7"

no_form_vars

Don't get variables from the form

1

None.

no_form_vars="1"

Prefix output variables with this word. (Click link for details)

Any valid Smarty variable name

None. (No prefix is used)

assign_prefix="myvar"

Maximum number of results to display (Click link for details)

Zero or any whole number greater than zero

10

count=20

Hide all results lower than this number (Click link for details)

Any whole number greater than zero

None. (Doesn't hide any results)

start=10

Set variables but don't display the template

1

None. The template is displayed.

data_only=1

Output

Statistics are stored in the {$stats} template variable and displayed using the function_display_hourly_sales template.

Last updated

Was this helpful?