Plugin Directory

Changeset 3145308


Ignore:
Timestamp:
09/02/2024 12:14:41 PM (19 months ago)
Author:
wanderlustcodes
Message:

fix cupones

Location:
integrar-getnet-con-woo
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • integrar-getnet-con-woo/trunk/readme.txt

    r3129593 r3145308  
    55Requires at least: 5.0
    66Tested up to: 6.6.2
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    113113* Compatibilidad con Woo 9.2.x
    114114
     115= 0.1.4 =
     116
     117* Fix para cupones
     118
    115119
    116120== Upgrade Notice ==
  • integrar-getnet-con-woo/trunk/wanderlust-getnet.php

    r3129593 r3145308  
    66 * Author: Getnet Argentina
    77 * Author URI: https://globalgetnet.com.ar/
    8  * Version: 0.1.3
    9  * WC tested up to: 9.2.0
     8 * Version: 0.1.4
     9 * WC tested up to: 9.2.1
    1010 * Text Domain: wc-gateway-getnet
    1111 * Domain Path: /i18n/languages/
     
    144144                    }
    145145 
    146             }
    147 
    148  
    149             if ($descuentos > 1) {
    150                 $descuentos = wc_format_decimal($descuentos, 2);
    151                 $descuentos = str_replace(".", "", $descuentos);
    152 
    153                 $productos[] = [
    154                     "id" => 1,
    155                     "name" => "Descuento",
    156                     "unitPrice" => [
    157                         "currency" => "032",
    158                         "amount" => -$descuentos,
    159                     ],
    160                     "quantity" => 1,
    161                 ];
    162146            }
    163147
Note: See TracChangeset for help on using the changeset viewer.