Changeset 1793233
- Timestamp:
- 12/27/2017 05:32:49 PM (8 years ago)
- Location:
- woo-oca
- Files:
-
- 27 added
- 3 edited
-
tags/1.6.3 (added)
-
tags/1.6.3/LICENSE (added)
-
tags/1.6.3/etiquetas (added)
-
tags/1.6.3/etiquetas/ver_eti.php (added)
-
tags/1.6.3/js (added)
-
tags/1.6.3/js/oca.js (added)
-
tags/1.6.3/oca (added)
-
tags/1.6.3/oca-class.php (added)
-
tags/1.6.3/oca-shipping.php (added)
-
tags/1.6.3/oca-utilities.php (added)
-
tags/1.6.3/oca/autoload.php (added)
-
tags/1.6.3/oca/composer (added)
-
tags/1.6.3/oca/composer/ClassLoader.php (added)
-
tags/1.6.3/oca/composer/LICENSE (added)
-
tags/1.6.3/oca/composer/autoload_classmap.php (added)
-
tags/1.6.3/oca/composer/autoload_namespaces.php (added)
-
tags/1.6.3/oca/composer/autoload_psr4.php (added)
-
tags/1.6.3/oca/composer/autoload_real.php (added)
-
tags/1.6.3/oca/composer/autoload_static.php (added)
-
tags/1.6.3/oca/composer/installed.json (added)
-
tags/1.6.3/oca/juanchorossi (added)
-
tags/1.6.3/oca/juanchorossi/oca-php-api (added)
-
tags/1.6.3/oca/juanchorossi/oca-php-api/README.md (added)
-
tags/1.6.3/oca/juanchorossi/oca-php-api/composer.json (added)
-
tags/1.6.3/oca/juanchorossi/oca-php-api/oca.php (added)
-
tags/1.6.3/readme.txt (added)
-
tags/1.6.3/woocommerce-oca.php (added)
-
trunk/oca-shipping.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-oca.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-oca/trunk/oca-shipping.php
r1790355 r1793233 87 87 } 88 88 89 // Se filtran l as comillas89 // Se filtran los caracteres 90 90 $datos = array_map(function($value){ 91 91 $value = str_replace('"', "", $value); … … 110 110 $xml .= '<paquetes>'; 111 111 $items = $order->get_items(); 112 foreach ( $items as $item ) {112 foreach ( $items as $item) { 113 113 $product_name = $item['name']; 114 114 $product_id = $item['product_id']; … … 119 119 if($product->get_weight() !== ''){ 120 120 $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().'" />'; 122 122 }else{ 123 123 $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().'" />'; 125 125 } 126 126 } -
woo-oca/trunk/readme.txt
r1790355 r1793233 6 6 Tested up to: 4.9 7 7 Requires PHP: 5.6 8 Stable tag: 1.6. 28 Stable tag: 1.6.3 9 9 Language: Spanish 10 10 License: GPLv2 or later … … 54 54 == Changelog == 55 55 56 = 1.6.3 = 57 * Arreglado bug en el precio y cantidad a la hora de generar un envío 58 56 59 = 1.6.2 = 57 60 * Agregados filtros adicionales para remover caracteres especiales antes de ingresar un envio -
woo-oca/trunk/woocommerce-oca.php
r1790355 r1793233 5 5 Plugin URI: http://ecomerciar.com 6 6 Description: Integración de oca para realizar envíos a través de la plataforma WooCommerce. 7 Version: 1.6. 27 Version: 1.6.3 8 8 Author: Ecomerciar 9 9 Author URI: http://ecomerciar.com
Note: See TracChangeset
for help on using the changeset viewer.