• Boa noite,

    Estou com um problema com um cliente. Ele está reclamando que, existe uma diferena de preços entre o valor do site e o valor dos correios.

    Estava verificando e vi que, quando compro 1 item, o valor do frete bate com a calculadora do correio, mas a medida que vai aumentando a quantidade de produtos, comeca a ter uma variação pra baixo do valor do frete (quanto mais produtos mais é essa diferença). Vi no log que o plugin faz um cálculo com a largura e comprimento (que não é somente uma soma). Gostaria de saber como eu faço para corrigir essa diferença

    LOG COM 01 ITEM:

    09-16-2018 @ 20:39:19 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:39:22 - Weight and cubage of the order: Array
    (
        [weight] => 0,5
        [height] => 31
        [width] => 16
        [length] => 16
    )
    
    09-16-2018 @ 20:39:22 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=20&nVlDiametro=0&nVlComprimento=16&nVlPeso=0,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=0&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:39:23 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:39:23 - Weight and cubage of the order: Array
    (
        [weight] => 0,5
        [height] => 31
        [width] => 16
        [length] => 16
    )
    
    09-16-2018 @ 20:39:23 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=20&nVlDiametro=0&nVlComprimento=16&nVlPeso=0,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=0&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:39:24 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:39:25 - Weight and cubage of the order: Array
    (
        [weight] => 0,5
        [height] => 31
        [width] => 16
        [length] => 16
    )
    
    09-16-2018 @ 20:39:25 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=20&nVlDiametro=0&nVlComprimento=16&nVlPeso=0,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=0&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:39:25 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:39:28 - Weight and cubage of the order: Array
    (
        [weight] => 0,5
        [height] => 31
        [width] => 16
        [length] => 16
    )
    
    09-16-2018 @ 20:39:28 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=20&nVlDiametro=0&nVlComprimento=16&nVlPeso=0,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=0&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:39:28 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:39:36 - Weight and cubage of the order: Array
    (
        [weight] => 0,5
        [height] => 31
        [width] => 16
        [length] => 16
    )
    
    09-16-2018 @ 20:39:36 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=20&nVlDiametro=0&nVlComprimento=16&nVlPeso=0,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=0&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:39:36 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 23,80
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 23,80
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,00
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    LOG COM 05 ITENS:
    
    09-16-2018 @ 20:36:31 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:31 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:32 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:34 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:34 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:34 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:34 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:34 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:34 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:34 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:34 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:34 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:34 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:35 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:35 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:35 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:35 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:36 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:36 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:36 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:37 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
    
    09-16-2018 @ 20:36:40 - Weight and cubage of the order: Array
    (
        [weight] => 2,5
        [height] => 31
        [width] => 35,8
        [length] => 35,8
    )
    
    09-16-2018 @ 20:36:40 - Requesting Correios WebServices: http://ws.correios.com.br/calculador/CalcPrecoPrazo.aspx?nCdServico=04510&nCdEmpresa&sDsSenha&sCepDestino=78055324&sCepOrigem=03317050&nVlAltura=31&nVlLargura=35,8&nVlDiametro=0&nVlComprimento=35,8&nVlPeso=2,5&nCdFormato=1&sCdMaoPropria=N&nVlValorDeclarado=55&sCdAvisoRecebimento=N&StrRetorno=xml
    09-16-2018 @ 20:36:42 - Correios WebServices response: SimpleXMLElement Object
    (
        [cServico] => SimpleXMLElement Object
            (
                [Codigo] => 04510
                [Valor] => 45,43
                [PrazoEntrega] => 11
                [ValorSemAdicionais] => 44,70
                [ValorMaoPropria] => 0,00
                [ValorAvisoRecebimento] => 0,00
                [ValorValorDeclarado] => 0,73
                [EntregaDomiciliar] => S
                [EntregaSabado] => N
                [Erro] => 0
                [MsgErro] => SimpleXMLElement Object
                    (
                    )
    
                [obsFim] => SimpleXMLElement Object
                    (
                    )
    
            )
    
    )
  • The topic ‘Cálculo_Frete’ is closed to new replies.