How do we get the Order Subtotal into the url?
This is the code I have thus far but there are Two problems I am still facing. 1. The order full price is still not showing up in my URL, and I don't know how to also get the Order Subtotal (Total Before shipping and taxes) into a variable that I can put into the tracking URL:
Any Help you can give me on the below code to get the Order full price to show up and the order subtotal also into the url, would be really appreciated. (By the way, we are using the Authorize.net payment plugin.)
$app =& JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
$order_id = $app->getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$this->order = $orderClass->loadFullOrder($order_id);
$order_total = $this->order->order_full_price;
echo "<script type='text/javascript' src='//tags.mediaforge.com/js/954/?orderNumber=${order_id}&price=${order_total}'></script>";