I'm trying to put order id and value to tracking code but can't make it work. I tried to put there
$order_id = $order->get_id();
$order->get_id();
$order->get_total();
and nothing works. Here's code and places where I need these elements:
<script language="JavaScript">
tdconv('init', '2253741', {'element': 'iframe' });
tdconv('track', 'sale', {'transactionId':'ORDER ID HERE', 'ordervalue':ORDER VALUE HERE, 'currency':'PLN', 'event':400532});
</script>
Can anyone give me some tips?