@_UI_STD_INIT_@ [if !cgi item_id] [bounce page="__UI_BASE__/item"] [/if] [calc] if($CGI->{merchandising}) { $Scratch->{mv_logical_page} = 'admin/merchandising'; $Scratch->{ui_class} = 'Merchandising'; } else { $Scratch->{ui_class} = 'Items'; } if(! $CGI->{mv_data_table}) { $CGI->{ui_hide_key} = 1; $CGI->{mv_data_table} = 'pricing'; } if(! $CGI->{ui_data_fields}) { @cols = split /\s+/, q{[db-columns name=pricing]}; unless (@cols) { $Session->{errors}->{pricing} = 'Table missing'; return; } @cols = grep $_ ne 'sku' && $_ ne 'price_group', @cols; my $colstring = join "\n", @cols; $CGI->{ui_data_fields} = qq{ =[L]Base Pricing[/L] price_group sku __ProductFiles_0__:__DescriptionField__ __ProductFiles_0__:price __ProductFiles_0__:wholesale =[L]Quantity Pricing[/L] $colstring }; $CGI->{ui_display_only} = '__ProductFiles_0__:__DescriptionField__'; } if(! $CGI->{ui_return_to}) { my @args = ( '__UI_BASE__/item_edit', "item_id=$CGI->{item_id}", "item_id_left=$CGI->{item_id_left}", "ui_sequence_edit=$CGI->{ui_sequence_edit}", ); $CGI->{ui_return_to} = join "\0", @args; } return; [/calc] [seti page_title][L]Pricing[/L]: [cgi item_id][/seti] [seti page_banner][L]Pricing[/L]: [msg arg.0='[page href="__UI_BASE__/item_edit" form="item_id=[cgi item_id]"][cgi item_id]']edit item %s[/msg][/seti] [set help_name]pricing[/set] [set icon_name]icon_item.gif[/set] @_UI_STD_HEAD_@

[table-editor cgi=1 output-map=1] @_UI_STD_FOOTER_@