Plugin Directory

Changeset 2104863


Ignore:
Timestamp:
06/12/2019 03:47:56 PM (7 years ago)
Author:
geneiwordpress
Message:
  • Solución pedidos recientes no se mostraban
Location:
genei/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • genei/trunk/genei.php

    r2102118 r2104863  
    55 * Plugin URI: https://es.wordpress.org/plugins/genei
    66 * Description: Plugin para Wordpress de Genei
    7  * Version: 1.6.2 TS
     7 * Version: 1.6.3 BJ
    88 * Author: Genei Global Logistic S.L.
    99 * Author URI: https://www.genei.es
     
    2424$api_server = 'genei.es';
    2525$nombre_app = 'Genei';
    26 $plugin_version = '1.6.2 TS';
    27 $plugin_cn_version = '162';
     26$plugin_version = '1.6.3 BJ';
     27$plugin_cn_version = '163';
    2828$servicio = 'wordpress';
    2929defined('ABSPATH') or die('Error');
  • genei/trunk/orders_list.php

    r2102118 r2104863  
    133133        $this->_column_headers = array($columns, $hidden, $sortable);
    134134        $datos = $this->crear_lista_pedidos($search);
    135         usort($datos, array(&$this, 'usort_reorder'));
     135        //usort($datos, array(&$this, 'usort_reorder'));
    136136        $per_page = 10;
    137137        $current_page = $this->get_pagenum();
     
    166166        $array_pedidos = array();
    167167        $array_solicitud = array(
    168             'limit' => 200,
    169             'billing_first_name' => $search,
    170             'get_shipping_address_1' => $search,
     168            'limit' => 200,           
    171169            'order_date' => date('Y-m-d', strtotime('-' . $datos_array['fecha_primer_pedido'] . ' days')) . '...' . date('Y-m-d'),
    172             'orderby' => 'meta_value',
     170            'orderby' => 'date',
    173171            'order' => 'DESC',
    174172            'type' => 'shop_order');
     
    176174            $array_solicitud['status'] = 'completed';
    177175        }
     176        if($search != '') {
     177            $array_solicitud['billing_first_name'] = $search;
     178            $array_solicitud['get_shipping_address_1'] = $search;
     179        }       
    178180        foreach (wc_get_orders($array_solicitud) as $pedido) {
    179181            $data_pedido = $pedido->get_data();
Note: See TracChangeset for help on using the changeset viewer.