PageSourceSearch

https://www.wreathstation.com/wp-content/plugins/dzx_order_view/js/script.js?ver=6.4.3

js wreathstation.com collected 2026-10-08 11:05:24 UTC 3,385 bytes, 113 lines download raw bytes

1(function ($, $window, $document) {
2
3
4  $(document).ready(function () {
5
6    $('.view_order_button').click(function () {
7      $('.view_order_button').removeClass('btn-disable');
8
9      getOrderDetail($(this).attr('orderid'));         
10
11      $(this).addClass('btn-disable');
12
13    });
14
15
16
17
18  });
19
20  const txtlist = {
21    '_billing_first_name':'ชื่อผู้สั่งสินค้า',
22    '_billing_phone':'เบอร์โทรศัพท์',
23    '_billing_lineid':'Line ID',
24    '_billing_email':'อีเมล์',
25    '_billing_consignee':'ชื่อผู้รับสินค้า',
26    '_billing_consignee_phone':'เบอร์โทรผู้รับ',
27    '_billing_consignee_location_dum':'เขตที่จัดส่ง',
28    '_billing_consignee_address':'สถานที่จัดส่งสินค้าโดยละเอียด',
29    '_billing_dalidate':'วันที่จัดส่ง',
30    '_billing_dalitime':'เวลาที่จัดส่ง',
31    '_billing_product_option':'รายละเอียดของสินค้าที่ต้องการ',
32    '_billing_card_txt':'ข้อความที่ต้องการเขียนแนบ',
33    '_billing_recipt_address':'ที่อยู่ใบเสร็จ',
34    '_billing_taxid':'เลขประจำตัวผู้เสียภาษี',
35    '_billing_invoice':'ใบเสร็จ',
36    '_order_total':'รวมราคา'
37
38  };
39
40  function getOrderDetail(orderid) {
41    
42    $.ajax({
43      type: 'POST',
44      url: darkxee.callurl,
45      data: {
46        'action': 'getorder',
47        'orderid': orderid,
48      },
49      success: function (data) {
50        data = JSON.parse(data);
51        // console.log(data);
52        
53        var listOption = '<tr class="order-detail"><td colspan="6"><ul>';
54
55        $.each(data, function (i, order) {      
56          if (order.meta_value != '')  {
57            listOption += `<li> ${__t(order.meta_key)} : ${order.meta_value}  </li>`;
58          }
59          
60        });
61        listOption += '</ul></td></tr>';
62        $('.order-detail ,.product-detail').remove();
63        $(listOption).insertAfter($('#row-' + orderid)).hide();
64
65
66        $.ajax({
67          type: 'POST',
68          url: darkxee.callurl,
69          data: {
70            'action': 'getProduct',
71            'orderid': orderid,
72          },
73          success: function (data2) {
74            // console.log(data2);
75            data2 = JSON.parse(data2);
76            console.log(data2);
77            var listProduct = '<tr class="product-detail"><td colspan="6"><ul>';
78            
79            $.each(data2, function (i, orderProduct) {
80             
81              listProduct += "<li><a href='"+orderProduct.url+"'>สินค้า : "+orderProduct.name+" : ( ราคา : "+orderProduct.total+") <div>"+orderProduct.img+"</div></li>";
82            });
83            listProduct += '</ul></td></tr>';            
84            $(listProduct).insertAfter($('#row-' + orderid)).hide();
85
86            $('.order-detail ,.product-detail').fadeIn();
87            
88
89        
90          }
91
92        });
93
94
95      }
96
97    });
98
99    
100  }
101
102
103  //translate function
104  function __t(txt) {
105    if (txt in txtlist) {
106      return txtlist[txt];
107    } else {
108      return txt;
109    }
110
111  }
112
113})(jQuery, jQuery(window), jQuery(document));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.