title: How to access order data on Big Commerce on confirmation screen
body: <p>I need to add some JavaScript to the order confirmation page that includes details about the order. Although I can access the order id through a BigCommerce global variable, I cannot work out how to get the rest of the order details into my JavaScript.</p>
  
  <p>For instance, I can access the BigCommerce order_id global <code>%%GLOBAL_OrderId%%</code> and use that in a JavaScript alert, but I also need to access the following:</p>
  
  <ol>
  <li>order total</li>
  <li>order tax</li>
  <li>order shipping</li>
  <li>order postcode</li>
  </ol>
  
  <p>And foreach product in the order</p>
  
  <ol>
  <li>product_id  </li>
  <li>unit_price</li>
  <li>quantity</li>
  </ol>
  
  <p>There these global items but when I try to access them they are blank, I presume that I need to loop through the cart contents.</p>
  
  <ol>
  <li>%%GLOBAL_ProductModel%%</li>
  <li>%%GLOBAL_ProductPrice%%</li>
  <li>%%GLOBAL_ProductQty%%</li>
  </ol>
  
  <p>I have read all the docs I can find. Can anyone give me an idea of how to achieve this. I need the values so I can pass them to a third party JS function for their use. All of that is waiting and ready but I cannot get the data out of Big Commerce templating system. The data is there, on the order.html template page, as the social sharing panel reads it, but again I cannot see how the social sharing snippet is accessing it.</p>