[ic] Shopping cart item description...
Mike Heins
mike at perusion.com
Thu Oct 13 14:56:49 EDT 2005
Quoting Gert van der Spoel (ic at 3edge.com):
> Boyer, Jim writes:
>
> >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++;
> > }
>
> The cart does not have the description information saved. Some more info on
> shopping cart hash:
> http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=icfaq07%2e04
>
> I think this is still pretty much the situation ... So if you want to get
> the description you will have to find it in another way.
>
You can cause it to be placed in the item with:
AutoModifier description
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
People who want to share their religious views with you
almost never want you to share yours with them. -- Dave Barry
More information about the interchange-users
mailing list