Opencart successful order ID and Total from JavaScript
问题 I need to run JavaScript on the successful order's page and get two things: order ID and total order amount. The code looks like: <script type="text/javascript"> // Some code here arr.push([ "create_order", {order_id: "*order_id*", sum: *sum*} ]); </script> Questions Where should I paste my script? If into success.tpl than where exactly? If into header.tpl than how to run it only on the page of successful order? Which variables I should to use? I have tried this, it did not work: {order_id: "