[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 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]" ]