[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Serious! Confirmed that item modifiers are lost moving to receipt.html
Quoting Kevin Walsh (kevin@cursor.biz):
> >
> > 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}.
Or $Items, which is the current cart (be it main or not).
--
Mike Heins
Perusion -- Expert Interchange Consulting
phone +1.513.523.7621 <mike@perusion.com>
Friends don't let friends use Outlook. -- Bob Blaylock
- Follow-Ups:
- [ic] MD5 hex
- From: interchange-users@interchange.redhat.com (roland)