[comment] ui_template: Yes ui_template_name: leftonly [/comment] [tmp page_title]__COMPANY__ -- [L]Quantity Discounts[/L][/tmp] [control reset=1] [control-set] [component]search_box_small[/component] [/control-set] [control-set] [component]cart_tiny[/component] [/control-set] [control-set] [component]product_tree[/component] [/control-set] [control reset=1] @_LEFTONLY_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]
In Stock
[/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 caption="Quantity Pricing" rows="2" columnize="[scratch qp_columns]" tr.0=|class="contentbar1"| tr.1=|class="maincontent"| cols="[scratch qp_columns]" ]
[loop list="[scratch quantities]"]
[/loop] [/table-organize]
[L]Part No.[/L] | [part-code] | [loop-code] | [order code="[part-code]" quantity="[loop-code]"][price code="[part-code]" quantity="[loop-code]"]

[/loop] [/fly-list] @_LEFTONLY_BOTTOM_@