MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: bug? substitution in shipping.asc




Hmm, caught a spelling error (shipping.asc had do-ups and the routine was
called do_ups in minivend.cfg).  But, I still get the same result.  

I changed the user tag to simply return 42.0 regardless of the inputs.
That doesn't work either.

Again: MV 3.14.

It looks like the shipping.asc entry with m [do_ups ...] is either not
getting called, or something else is happening.

Here is my shipping.asc:

code	description	criteria	min	max	formula 
0	No shipping	weight	0	99999999	e No shipping mode selected. 
default	No shipping	weight	0	99999999	g PriceDivide
 
dhl	DHL Air Freight	quantity	0	0	e Nothing to ship! 
dhl	DHL Air Freight	quantity	0	1000	s calc_dhl ;[value country], ;[value state]
dhl	DHL Air Freight	quantity	1000	999999 e Please call us for bulk shipping information.
 
upsg	UPS Ground	weight [value state]	0	0	e Nothing to ship!
upsg	UPS Ground		0	150	m [do_ups zip=[value zip] mode=Ground weight=@@TOTAL@@ country=[value country]]
error	Contact Factory for shipping	weight	0	150	e No UPS shipping available.

Here is do_ups:

UserTag do_ups Order zip mode weight country
UserTag do_ups Routine <<EOR
sub {
        my ($zip,$mode,$weight,$country) = @_;
 
        $country = $::Values->{country} unless $country;
::logGlobal("UPS called: $zip, $mode, $weight, $country\n");
 
        return 42.0;
}
EOR

The call to ::logGlobal in do_ups is never hit as far as I can tell.  I
see nothing in the log files no matter how long I wait.

Best,
Kyle




Search for: Match: Format: Sort by: