I am trying to retrieve the item description from the shopping cart. I
have been able to retrieve the item code, but the description returns an
undef value. Below is the code I am trying to use. What am I doing
wrong?
Thanks for any assistance,
UserTag breeze_xml Routine <<EOF
sub
{
# retrieve the number of items in the shopping cart
my $itemCnt = 0;
my $tmpStr = "items = ";
my $cart = $Carts->{main};
my $tmpKey = "";
my %breeze;
my $rc;
# loop through the items counting them
$itemCnt = 0;
foreach my $item (@$cart)
{
# $tmpStr .= " " . $item->{code};
$tmpStr .= " " . $item->{description};
$tmpKey = "course" . $itemCnt;
# $breeze{$tmpKey} = $item->{code};
$breeze{$tmpKey} = $item->{description};
$itemCnt++;
}
-------------------------------
Jim Boyer
Systems Programmer
College of Agriculture, Human, and Natural Resource Sciences
Washington State University
509.335.2838
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.