PluginProbe
Welcart e-Commerce / 1.3.2
Welcart e-Commerce v1.3.2
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / classes / orderData.class.php

orderData.class.php in Welcart e-Commerce 1.3.2, at classes/orderData.class.php

64 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /* order data claa */
3
4 class orderDataObject
5 {
6
7 var $customer;
8 var $deliveri;
9 var $cart;
10 var $condition;
11 var $order;
12 var $reserve;
13
14 function orderDataObject($order_id) {
15 global $wpdb;
16
17 $tableName = $wpdb->prefix . "usces_order";
18 $query = $wpdb->prepare("SELECT * FROM $tableName WHERE ID = %d", $order_id);
19 $data = $wpdb->get_row( $query, ARRAY_A );
20
21 $this->customer['mem_id'] = $data['mem_id'];
22 $this->customer['email'] = $data['order_email'];
23 $this->customer['name1'] = $data['order_name1'];
24 $this->customer['name2'] = $data['order_name2'];
25 $this->customer['name3'] = $data['order_name3'];
26 $this->customer['name4'] = $data['order_name4'];
27 $this->customer['zip'] = $data['order_zip'];
28 $this->customer['pref'] = $data['order_pref'];
29 $this->customer['address1'] = $data['order_address1'];
30 $this->customer['address2'] = $data['order_address2'];
31 $this->customer['address3'] = $data['order_address3'];
32 $this->customer['tel'] = $data['order_tel'];
33 $this->customer['fax'] = $data['order_fax'];
34
35 $this->deliveri = (array)unserialize($data['order_delivery']);
36
37 $this->cart = (array)unserialize($data['order_cart']);
38
39 $this->condition = (array)unserialize($data['order_condition']);
40
41 $this->order['ID'] = $order_id;
42 $this->order['note'] = $data['order_note'];
43 $this->order['delidue_date'] = $data['order_delidue_date'];
44 $this->order['delivery_date'] = $data['order_delivery_date'];
45 $this->order['delivery_time'] = $data['order_delivery_time'];
46 $this->order['delivery_method'] = $data['order_delivery_method'];
47 $this->order['payment_name'] = $data['order_payment_name'];
48 $this->order['item_total_price'] = $data['order_item_total_price'];
49 $this->order['getpoint'] = $data['order_getpoint'];
50 $this->order['usedpoint'] = $data['order_usedpoint'];
51 $this->order['discount'] = $data['order_discount'];
52 $this->order['shipping_charge'] = $data['order_shipping_charge'];
53 $this->order['cod_fee'] = $data['order_cod_fee'];
54 $this->order['tax'] = $data['order_tax'];
55 $this->order['date'] = $data['order_date'];
56 $this->order['modified'] = $data['order_modified'];
57 $this->order['status'] = $data['order_status'];
58 $this->order['check'] = $data['order_check'];
59 $this->order['total_full_price'] = $data['order_item_total_price'] - $data['order_usedpoint'] + $data['order_discount'] + $data['order_shipping_charge'] + $data['order_cod_fee'] + $data['order_tax'];
60
61 $this->reserve = array();
62 }
63 }
64 ?>