[comment]
ui_template: Yes
ui_template_name: leftonly
ui_template_layout: LEFTONLY_TOP, UI_CONTENT, LEFTONLY_BOTTOM
ui_template_description: Page with top/left areas.
page_title:
description: Page title
page_banner:
description: Page banner
help: Defaults to page title
members_only:
options: 1=Yes,0=No*
widget: radio
description: Members only
component_before:
options: =none, specials=Specials, random=Random items
widget: select
description: Component before content
component_after:
options: =none, specials=Specials, random=Random items
widget: select
description: Component after content
bgcolor:
options: #FFFFFF=White,pink=Pink
widget: select
description: Background color
[/comment]
[set page_title]__COMPANY__ -- Quantity Discounts[/set]
[set page_banner]Quantity Discounts[/set]
__LEFTONLY_TOP__
[loop arg="[data session arg]"]
 |
[loop-field category]
|
 |
[if-loop-field image]
[/if-loop-field]
|
|
[loop-field title]
|
|
[seti count][data table=inventory column=quantity key='[loop-code]'][/seti]
[if scratch count eq 0]
Out Of Stock
In Stock Notification |
[else]
In Stock |
[/else]
[/if]
|
|
[loop-field comment]
|
|
Quantity Pricing
[if type=explicit compare="[calc]
return 1 if q{[loop-price 1 noformat]} > 1000;
return 0;
[/calc]"]
Remember, an original costs more!
[/if] |
Part No.
|
1
|
5
|
10
|
[loop-code] |
[order code="[loop-code]" quantity=1][loop-price 1]
|
[order code="[loop-code]" quantity=5][loop-price 5]
|
[order code="[loop-code]" quantity=10][loop-price 10]
|
[/loop]
__LEFTONLY_BOTTOM__