[ic] Error perl script to upgrate 4.9

Stefano Kerschbaumer stefano at interline.it
Fri Jan 16 09:57:45 EST 2004


Stefano Kerschbaumer - Interline S.r.l. wrote:

>
> In my apache error.log the error is general: Premature end of script 
> headers: ....
>
> This is the code complete:
>
> [if value payment_method eq credit]
> [perl reparse=1 tables="products pricing shipping salestax" ]    # I 
> have add this: tables="products pricing shipping salestax"
>
> my $price = $Tag->total_cost({noformat => 1,}); # This is the line 
> error and is the total cost of the order
>
> #my $price = 100,00; If I use this is OK  !!!
>
>
> my $order_number = $Values->{mv_order_number};
>
>
> my $url_prepare = sprintf("http://xxx/xxx.asp?xxxxxx 
> CF__CustOrderNumber=%s xxxxxxxxx Price=%s&Quantity=1 xxxxxx 
> ",$order_number,$order_number,$price);
> my $hash = "[get-url $url_prepare]";
>
> my $url_make = sprintf("http://xxxx/xxxx.asp?xxxxxxxxx 
> VatFlag=0&VatRate=0.2&Price=%s&Currency=EUR&Quantity=1&Locale=it-IT-SL&StoreID=xxxxxxCF__CustOrderNumber=%s 
> xxxxxxxxxxxxxxx",$order_number,$price);
>
>
> return "<a href=$url_make>Per passare al pagamento clicca qui</a>";
> [/perl]
>
> Slauti Stefano
>
> Ed LaFrance ha scritto:
>
>> At 10:32 AM 11/17/2003 +0100, you wrote:
>>
>>
>>> This line of my script give me an error: Premature end
>>> ....interchange-users at icdevgroup.org
>>>
>>> my $price = $Tag->total_cost({noformat => 1,});
>>>
>>>
>>> Why ?
>>
>>
>>
>> If this is in a [perl] block, you must pre-open all the tables the 
>> are consulted to figure total cost, I believe:
>>
>> [perl tables="products pricing"]
>>
>> ...you may even need to add shipping and salestax tables to this, 
>> though I could be wrong with regards to those. Try the above first.
>>
>> - 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
>>
>
>
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




More information about the interchange-users mailing list