[ic] Serious! Confirmed that item modifiers are lost moving to receipt.html

Kevin Walsh interchange-users@interchange.redhat.com
Thu May 23 10:29:01 2002


> 
> As all custom pricing routines that I have written failed only in
> receipt.html (but not in checkout.html nor any other page), apparently
> because the $Cart variable gets corrupted. Now, I've written this silly
> tag that returns the item-modifier for the last object:
> 
> # Ubi: just for test, TESTED AND WORKS IN ord/checkout.html but
> #      not in receipt.html
> 
> UserTag test-mod Routine <<EOR
> sub {
>         my $cart = $Vend::Session->{carts}{main};
>         my $item;
>         my $prod_format;
>         foreach $item (@$cart) { $prod_format = $item->{formats}; }
>         return $prod_format;
> }
> EOR
> 
Try using $::Carts->{main} in your tag, instead of
$Vend::Session->{carts}{main}.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/