[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: bug? substitution in shipping.asc
Quoting Kyle Hayes (kyle540@quicknet.net):
>
> On Sat, 21 Aug 1999 mikeh@minivend.com wrote:
>
> > I recommend using a UserTag.
> >
> > upsg UPS straight cost weight 0 150 m [do-ups weight=@@TOTAL@@ mode=Ground adder=4]
> > error Contact Factory for UPS weight 0 150 e No UPS shipping available.
> >
> > UserTag do-ups Order mode adder zip
> > UserTag do-ups Routine <<EOR
> > sub {
> > my ($mode, $adder, $zip, $insurance) = @_;
> > $zip = $::Values->{zip} unless $zip;
> > my $ups_cost = Vend::Interpolate::tag_ups($mode, $zip, $weight);
> > return '>>error' if $ups_cost < 0.01;
> > my $cost = $ups_cost;
> > # Do your calcs here
> > return $cost;
> > }
> > EOR
>
> OK. I did this. Now my checkout page simply never returns. I finally
> get some sort of timeout after several minutes. Nothing ever comes back.
> Where is chaining described? It is mentioned in the manual, but I have no
> clue how it works.
>
Oops....only one > , >error and not >>error. That sets up an endless loop...
which I have added protection for in MV4.
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\