[ic] Shipping Call From Perl

Jon Jensen jon at endpoint.com
Fri Nov 9 16:49:54 EST 2007


On Fri, 9 Nov 2007, Cameron B. Prince wrote:

> I've noticed this in the past and have just worked around it, but now 
> it's really becoming a pain. The problem is when I call $Tag->shipping({ 
> mode => 'RAGCA' }) versus [shipping mode="RAGCA"].
>
> The ITL call works fine. The perl call produces this error:
>
> Shipping mode 'RAGCA': bad formula. Returning 0.

Hi, Cameron.

I'm pretty sure that's just Safe getting in your way. You may be able to 
get around it by opening the tables you need earlier on the page, e.g. 
[perl tabes="products variants ..."][/perl].

Sometimes, though, the only reliable way is to avoid Safe:

[tmp shipping][shipping mode="RAGCA"][/tmp]

Jon

-- 
Jon Jensen
End Point Corporation
http://www.endpoint.com/


More information about the interchange-users mailing list