[tmp page_title]__COMPANY__ -- [L]Quantity Discounts[/L][/tmp] [control reset=1] [control-set] [component]cart_tiny[/component] [/control-set] [control-set] [component]product_tree[/component] [/control-set] [control reset=1] @_TOP_@ [fly-list code="[data session arg]"]

## [item-field category]: [item-description]

[if-item-field image] [/if-item-field]

[item-field comment]

[seti count][data table=inventory column=quantity key='[item-code]'][/seti] [if scratch count eq 0]

[L]Out Of Stock[/L] [L]In Stock Notification[/L]

[else]

[L]In Stock[/L]

[/else] [/if] [set quantities]1 5 10 25[/set] [calc] $Scratch->{quantities} =~ s/\s+$//; $Scratch->{quantities} =~ s/^\s+//; @things = split /[\s,\0]+/, $Scratch->{quantities}; $Scratch->{qp_columns} = scalar @things; $Scratch->{qp_columns}++; return; [/calc] [loop prefix="part" list="[data session arg]"] [table-organize table="class='table table-bordered table-condensed'" caption="Quantity Pricing" rows="2" columnize="[scratch qp_columns]" cols="[scratch qp_columns]" ] [L]Part No.[/L] [part-code] [loop list="[scratch quantities]"] [loop-code] [order code="[part-code]" quantity="[loop-code]"][price code="[part-code]" quantity="[loop-code]"] [/loop] [/table-organize] [/loop] [/fly-list] @_BOTTOM_@