[ic] Error perl script to upgrate 4.9

Stefano Kerschbaumer stefano at interline.it
Sat Jan 17 03:39:35 EST 2004


Ed LaFrance wrote:

> At 03:57 PM 1/16/2004 +0100, you wrote:
>
>> Stefano Kerschbaumer - Interline S.r.l. wrote:
>>
>>>
>>> [snip]
>>
>
>
>
>> This is the line error and is the total cost of the order
>>
>> my $price = $Tag->total_cost({noformat => 1,});
>>
>>
>> It's another command to have this value ?
>>
>> Sorry for the english ;-)
>>
>> Saluti Stefano
>
>
> I've had to do this in interchange.cfg:
>
> AllowGlobal my_catalog_name
>
> (restart interchange)
>
> ...then in your perl block:
>
> [perl tables="(your list of tables)" global=1]
> ...
> [/perl]
>
> ...and then I can use $Tag->total_cost() in [perl]. I am usure what it 
> is about the tag that forces the use of global.
>
> - Ed L.
>
>
> ===============================================================
> New Media E.M.S. Technology Solutions for Business
> 11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
> Fair Oaks, CA 95628 edl at newmediaems.com
> (916) 961-0446 http://www.newmediaems.com
> (866) 519-4680 Toll-Free (916) 961-0447 Fax
> ===============================================================
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>

The command line $Tag->total_cost() in [perl] not running ... :-(

I've had "AllowGlobal bottegaalpina" and restart interchange and in a tag

[perl tables="products pricing shipping salestax" global=1 reparse=1]

my $price =$Tag->total_cost();

[/perl]

this code is insert in the etc/receipt.html and in this page the tag 
[total-cost] is ok ...

Ciao Stefano :-(((




More information about the interchange-users mailing list