[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Re: Tring to use a perl sub for shipping calculation but its not working... Help!
Scott Wares writes:
> I'm tring to use a perl sub routine for shipping but it is not being used due
> to some error. I am tring to force certain item categories to use different
> shipping costs formulas. Help!!!
>
> # Here's the error I get when restarting interchange.....
> Configuring catalog foundation...Using MySQL,
> DSN=dbi:mysql:test_foundation:192.168.0.20...Bad Sub
> 'calc_shipping_by_quanity'
> In line 340 of the configuration file 'catalog.cfg':
> Sub <<EOR
> foundation config error: Bad Sub 'calc_shipping_by_quanity'
> In line 340 of the configuration file 'catalog.cfg':
> Sub <<EOR
> foundation: error in configuration. Skipping.
> foundation: config error. Skipping.
>
> ########### catalog.cfg entries
> Sub <<EOR
> sub calc_shipping_by_quanity {
> my($items) = @_;
> $items = $Items if ! $items;
> my $total_std_items=[nitems];
You can't use any Interchange tags in subroutines.
Try @$Items instead.
Ciao
Racke
--
Prolific Interchange Consulting (Excellent German Quality !).
Take a look at Materialboerse (http://www.materialboerse.de/), WITT
(http://www.witt-weiden.de/), Boxmover (http://shop.boxmover.ch/) or
Passionshop (http://www.passionshop.com/racke). Need a shop ? Contact us.