1<!-- JAVASCRIPT ORDER NUMBER -->
2document.addEventListener("DOMContentLoaded", function() {
3 // Get the current URL
4 var url = window.location.href;
5
6 // Extract the orderId value from the URL
7 var match = url.match(/orderId=([^&]*)/);
8 var orderId = match ? match[1] : null; // Check if match is found
9
10 // Change the text within the element with ID "ORDER_NUMBER"
11 if (orderId) {
12 var orderNumberElement = document.getElementById("ORDER_NUMBER");
13 if (orderNumberElement) {
14 orderNumberElement.textContent = orderId;
15 }
16 }
17});
18</script>
19<!-- END JAVASCRIPT ORDER NUMBER -->
1<!-- JQUERY ORDER NUMBER -->
2<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
3<script>
4 $(document).ready(function() {
5 // Get the current URL
6 var url = window.location.href;
7
8 // Extract the orderId value from the URL
9 var orderId = url.match(/orderId=([^&]*)/)[1];
10
11 // Change the text within the element with ID "ORDER_NUMBER"
12 $('#ORDER_NUMBER').text(orderId);
13 });
14</script>
15<!-- END JQUERY ORDER NUMBER -->