Hi all!
I have same problems with margin report 2.56 contrib both paypal IPN 3.0a.The contrib(margin report 2.56) work perfect with all kind of payment modules excluding Paypal.
For all orders made via paypal the "cost" of the products ordered will not be pass in the table:
Example:
I just tried to mod the paypal_ipn.php(as suggested) adding the
'products_cost' => $order->products[$i]['cost'],
here
$sql_data_array = array('orders_id' => $insert_id,
'products_id' =>tep_get_prid($order->products[$i]['id']),
'products_model' => $order->products[$i]['model'],
'products_name' => $order->products[$i]['name'],
'products_price' => $order->products[$i]['price'],
'products_cost' => $order->products[$i]['cost'],
'final_price' => $order->products[$i]['final_price'],
'products_tax' => $order->products[$i]['tax'],
'products_quantity' => $order->products[$i]['qty']);
without any results.
where is the problem? :blush: