I have tested for some days the code you suggested
<?php echo round($order->order_full_price,2); ?>
but it seems that is still printing a total value like this XX
see
nimb.ws/CiKnMN
while Facebook for what I understand want something like this XX.YY
for example it wants 77.00 and not 77
this is what Facebook sees right now for an order of 77 €
{"value":"77","currency":"EUR"}
and this is the code I am using
<?php
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
$order_id = hikaInput::get()->getInt('order_id');
if(empty($order_id)) {
$app = JFactory::getApplication();
$order_id = $app->getUserState('com_hikashop.order_id');
}
$order = null;
if(!empty($order_id)) {
$orderClass = hikashop_get('class.order');
$order = $orderClass->loadFullOrder($order_id, false, true);
}
?>
<script>
fbq('track', 'Purchase', {
value: <?php echo round($order->order_full_price,2); ?>,
currency: 'EUR',
});
</script>
anything else I could try to get this correctly?
Thank you