Guest Posted April 27, 2005 Share Posted April 27, 2005 Hi, I am currently looking at how the invoice is generated within oscommerce. i looking at how it does the price calculations.... Can someone please explain how the line below works i.e. what does the "->" operator do... what does $currencies do and is it a function..? $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) Here is another line from invoice.php. Just need to understand how is this working, In this case i know this is calling a function called tep_add_tax(), which adds calculates tax for each of the product. $currencies->format(tep_add_tax($order->products[$i]['final_price'],$order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) what does true do in the above line? thanks in advance.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.