Plugin Directory

Changeset 1793233


Ignore:
Timestamp:
12/27/2017 05:32:49 PM (8 years ago)
Author:
ecomerciar
Message:

Actualizacion 1.6.3

Location:
woo-oca
Files:
27 added
3 edited

Legend:

Unmodified
Added
Removed
  • woo-oca/trunk/oca-shipping.php

    r1790355 r1793233  
    8787    }
    8888
    89     // Se filtran las comillas
     89    // Se filtran los caracteres
    9090    $datos = array_map(function($value){
    9191        $value = str_replace('"', "", $value);
     
    110110                    $xml .= '<paquetes>';
    111111                    $items = $order->get_items();
    112                     foreach ( $items as $item ) {
     112                    foreach ( $items as $item) {
    113113                        $product_name = $item['name'];
    114114                        $product_id = $item['product_id'];
     
    119119                        if($product->get_weight() !== ''){
    120120                            $peso = $product->get_weight();
    121                             $xml .= '<paquete alto="'.wc_get_dimension( $product->get_height(), 'm').'" ancho="'.wc_get_dimension( $product->get_width(), 'm').'" largo="'.wc_get_dimension( $product->get_length(), 'm').'" peso="'.wc_get_weight( $peso , 'kg' ).'" valor="'.$datos['valor_declarado'].'" cant="1" />';           
     121                            $xml .= '<paquete alto="'.wc_get_dimension( $product->get_height(), 'm').'" ancho="'.wc_get_dimension( $product->get_width(), 'm').'" largo="'.wc_get_dimension( $product->get_length(), 'm').'" peso="'.wc_get_weight( $peso , 'kg' ).'" valor="'.$item->get_total().'" cant="'.$item->get_quantity().'" />';           
    122122                        }else{
    123123                            $peso = $product_variado->get_weight();
    124                             $xml .= '<paquete alto="'.wc_get_dimension( $product_variado->get_height(), 'm').'" ancho="'.wc_get_dimension( $product_variado->get_width(), 'm').'" largo="'.wc_get_dimension( $product_variado->get_length(), 'm').'" peso="'.wc_get_weight( $peso , 'kg' ).'" valor="'.$datos['valor_declarado'].'" cant="1" />';           
     124                            $xml .= '<paquete alto="'.wc_get_dimension( $product_variado->get_height(), 'm').'" ancho="'.wc_get_dimension( $product_variado->get_width(), 'm').'" largo="'.wc_get_dimension( $product_variado->get_length(), 'm').'" peso="'.wc_get_weight( $peso , 'kg' ).'" valor="'.$item->get_total().'" cant="'.$item->get_quantity().'" />';           
    125125                        }
    126126                    }
  • woo-oca/trunk/readme.txt

    r1790355 r1793233  
    66Tested up to: 4.9
    77Requires PHP: 5.6
    8 Stable tag: 1.6.2
     8Stable tag: 1.6.3
    99Language: Spanish
    1010License: GPLv2 or later
     
    5454== Changelog ==
    5555
     56= 1.6.3 =
     57* Arreglado bug en el precio y cantidad a la hora de generar un envío
     58
    5659= 1.6.2 =
    5760* Agregados filtros adicionales para remover caracteres especiales antes de ingresar un envio
  • woo-oca/trunk/woocommerce-oca.php

    r1790355 r1793233  
    55Plugin URI: http://ecomerciar.com
    66Description: Integración de oca para realizar envíos a través de la plataforma WooCommerce.
    7 Version: 1.6.2
     7Version: 1.6.3
    88Author: Ecomerciar
    99Author URI: http://ecomerciar.com
Note: See TracChangeset for help on using the changeset viewer.