[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] new mv_order_route problem
Hello,
the code doesn't make some problems, but it doesn't work as I want, I have
in checkout.html>
>>>
[perl arg=carts interpolate=1]
my $string = <<'EOF';
[item-list][item-code] [item-field dl_type]
[/item-list]
EOF
my @items;
my %route;
@items = grep /\S/, split /\n+/, $string;
for(@items) {
my ($code, $keycode) = split /\t/, $_;
$route{$code} = $keycode;
}
my $cart = $Carts->{'main'};
my $item;
foreach $item ( @{ $Carts->{'main'} } ) {
$item->{mv_order_route} = $route{$item->{'code'}} || undef;
}
return '';
[/perl]
>>>
I have in table products field name dl_type and in route table specifyed
information for the name which is dl_type name
when I use
<INPUT TYPE="hidden" NAME="mv_order_route" VALUE="new_main">
it woks perfect, but it's only for one item and I need it for more....
I suppose, that I must change 'main' or 'code' to something else, but I
tryed all choises and it didn't work.
PLEASE HELP.
Thanks
George
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users