Changeset 2104863
- Timestamp:
- 06/12/2019 03:47:56 PM (7 years ago)
- Location:
- genei/trunk
- Files:
-
- 2 edited
-
genei.php (modified) (2 diffs)
-
orders_list.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genei/trunk/genei.php
r2102118 r2104863 5 5 * Plugin URI: https://es.wordpress.org/plugins/genei 6 6 * Description: Plugin para Wordpress de Genei 7 * Version: 1.6. 2 TS7 * Version: 1.6.3 BJ 8 8 * Author: Genei Global Logistic S.L. 9 9 * Author URI: https://www.genei.es … … 24 24 $api_server = 'genei.es'; 25 25 $nombre_app = 'Genei'; 26 $plugin_version = '1.6. 2 TS';27 $plugin_cn_version = '16 2';26 $plugin_version = '1.6.3 BJ'; 27 $plugin_cn_version = '163'; 28 28 $servicio = 'wordpress'; 29 29 defined('ABSPATH') or die('Error'); -
genei/trunk/orders_list.php
r2102118 r2104863 133 133 $this->_column_headers = array($columns, $hidden, $sortable); 134 134 $datos = $this->crear_lista_pedidos($search); 135 usort($datos, array(&$this, 'usort_reorder'));135 //usort($datos, array(&$this, 'usort_reorder')); 136 136 $per_page = 10; 137 137 $current_page = $this->get_pagenum(); … … 166 166 $array_pedidos = array(); 167 167 $array_solicitud = array( 168 'limit' => 200, 169 'billing_first_name' => $search, 170 'get_shipping_address_1' => $search, 168 'limit' => 200, 171 169 'order_date' => date('Y-m-d', strtotime('-' . $datos_array['fecha_primer_pedido'] . ' days')) . '...' . date('Y-m-d'), 172 'orderby' => ' meta_value',170 'orderby' => 'date', 173 171 'order' => 'DESC', 174 172 'type' => 'shop_order'); … … 176 174 $array_solicitud['status'] = 'completed'; 177 175 } 176 if($search != '') { 177 $array_solicitud['billing_first_name'] = $search; 178 $array_solicitud['get_shipping_address_1'] = $search; 179 } 178 180 foreach (wc_get_orders($array_solicitud) as $pedido) { 179 181 $data_pedido = $pedido->get_data();
Note: See TracChangeset
for help on using the changeset viewer.