Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error on Checkout


Guest

Recommended Posts

Hi Sorry for starting an new post but nobody was getting back to me

 

Hi All

 

Hope someone could help me, I get a Fatal error: Function name must be a string in includes/modules/payment/iveri.php on line 182

when i disable anyshipping modules as soon as I enable it the error messages disapers and the confirm button is there.

 

if (is_null($order->info['shipping_cost'])||(int)$order->info['shipping_cost']==""){

$process_button_string.=$tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', '0');

}

else

{//in cents

$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', $order->info['shipping_cost']*100);

}

 

now i have tried to take it out so that the iveri.php does not see the script but with no luck at all. my client does not charge delivery for his products.

 

I have event tried to makte the flate rate from 5.00 to 0.00 and then i get the above error massage again

 

Hope someone could help me I have been reading trough the forum now for the past few weeks

 

the closes i could get to this was the post a few years back

 

 

Quote

 

http://forums.oscomm...cc-transaction/

 

 

but no one replyed to this post

 

Hope someone could help me

 

Thanks in advance

I'm using oscommerce 2.3.X

Link to comment
Share on other sites

Hi All

 

Hope someone could help me, I get a Fatal error: Function name must be a string in includes/modules/payment/iveri.php on line 182

when i disable anyshipping modules as soon as I enable it the error messages disapers and the confirm button is there.

 

if (is_null($order->info['shipping_cost'])||(int)$order->info['shipping_cost']==""){

$process_button_string.=$tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', '0');

}

else

{//in cents

$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', $order->info['shipping_cost']*100);

}

 

now i have tried to take it out so that the iveri.php does not see the script but with no luck at all. my client does not charge delivery for his products.

 

I have event tried to makte the flate rate from 5.00 to 0.00 and then i get the above error massage again

 

Hope someone could help me I have been reading trough the forum now for the past few weeks

 

the closes i could get to this was the post a few years back

 

 

Quote

 

http://forums.oscomm...cc-transaction/

 

 

but no one replyed to this post

 

Hope someone could help me

 

Thanks in advance

I'm using oscommerce 2.3.X

Finally got this to work! B)

 

 

All I did was edit the page from the error message. as follows

 

   	//tep_draw_hidden_field('Lite_Order_LineItems_Product_1', 'Shipping').
  	//tep_draw_hidden_field('Lite_Order_LineItems_Quantity_1', '1');

 // look here for the error shipping
 /*if (is_null($order->info['shipping_cost'])||(int)$order->info['shipping_cost']==""){
  $process_button_string.=$tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', '0');
  }
 	else
  {//in cents
  $process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Amount_1', $order->info['shipping_cost']*100);
 }*/


 for ($i=1; $i<=sizeof($order->products); $i++)
 	{
	//$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Product_'.($i+1), $order->products[$i-1]['name']);
	$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Product_'.($i), $order->products[$i-1]['name']);
	//$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Quantity_'.($i+1), $order->products[$i-1]['qty']);
	$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Quantity_'.($i), $order->products[$i-1]['qty']);
 		//in cents
	//$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Amount_'.($i+1), $order->products[$i-1]['price']*100);
	$process_button_string.=tep_draw_hidden_field('Lite_Order_LineItems_Amount_'.($i), $order->products[$i-1]['price']*100);
}

when you use the code about replace add it between line 178 and 200

hope this makes sense to all of you!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...