Plugin Directory

Changeset 2785520


Ignore:
Timestamp:
09/15/2022 06:03:04 PM (4 years ago)
Author:
lucascreativecode
Message:

Corrigido erro de listar as transportadoras, por que nao estava aceitandos os valores dos tamnhos da contacao zerados

Location:
unienvios/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • unienvios/trunk/api.php

    r2768020 r2785520  
    3636    ];
    3737
     38 
     39
    3840    $response = wp_remote_post($endpoint, $options);
     41
     42    // return $response;
     43    // exit;
    3944
    4045    if (is_wp_error($response)) {
  • unienvios/trunk/index.php

    r2775084 r2785520  
    44Plugin URI: https://unienvios.com.br/
    55Description: Plugin de Entrega
    6 Version: 1.4.1
     6Version: 1.4.2
    77Author: Unienvios
    88Author URI: https://unienvios.com.br/
     
    4747                $dados['senha'] = get_option('unienvios_options')['senha'];
    4848                $dados['cep'] = sanitize_text_field("03330000");
    49                 $dados['cart_subtotal'] = sanitize_text_field( doubleval(0) );
     49                $dados['cart_subtotal'] = sanitize_text_field( doubleval(150) );
    5050       
    5151                $dimensoes = [
    52                     'estimate_height' => sanitize_text_field( doubleval(0) ),
    53                     'estimate_width' => sanitize_text_field( doubleval(0) ),
    54                     'estimate_length' => sanitize_text_field( doubleval(0) ),
    55                     'estimate_weight' => sanitize_text_field( doubleval(0) ),
     52                    'estimate_height' => sanitize_text_field( doubleval(15) ),
     53                    'estimate_width' => sanitize_text_field( doubleval(15) ),
     54                    'estimate_length' => sanitize_text_field( doubleval(15) ),
     55                    'estimate_weight' => sanitize_text_field( doubleval(15) ),
    5656                ];
    5757       
  • unienvios/trunk/readme.txt

    r2775084 r2785520  
    55Requires at least: 4.7
    66Tested up to: 5.8
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88Requires PHP: 7.2
    99License: GPLv3 or later
     
    8686* Opcao de dias adicionais
    8787= 1.4.0 =
     88
     89= 1.4.2 =
     90
     91* Corrigido erro ao listar transportadoras.
Note: See TracChangeset for help on using the changeset viewer.