• Resolved rkbonatto

    (@rkbonatto)


    Estava tendo o seguinte erro:

    H01071: Got error '; PHP message: PHP Warning: Undefined variable $formatted_installments_price in /public/installments-calc.php on line 188'

    Resolvi alterando a linha 188 do arquivo para:

    if (isset($formatted_installments_price)) {
        echo apply_filters('fswp_installments_calc_output', $installments_html, $prefix, $installments, $formatted_installments_price, $suffix);
    } else {
    }
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Leonardo Robles

    (@leorobles)

    Obrigado

    Plugin Author Leonardo Robles

    (@leorobles)

    Corrigido na ultima versão

    Renato Caetano

    (@recaetano)

    O erro continua sendo exibido na versão 1.60

    Renato Caetano

    (@recaetano)

    Pessoal, para ajudar, o ponto é o seguinte: este erro continua aparecendo na versão nova, se o meio de pagamento não estiver ativo… Basta ativar um meio de pagamento e roda. Muito ruim para fase de desenvolvimento…

    Veja:

    /**

    • Get product final price
      *
    • @var string $price
      */
      $price = wc_get_price_including_tax($product);

    if($price <= $min_value){ $installments_html = ”; } else if ($tipo_pagamento == 1){ if($price > $min_value){
    $installments_price = $price*($fator[$installments-1]);
    $formatted_installments_price = wc_price($price *$fator[$installments-1]);

    Renato Caetano

    (@recaetano)

    Excelente plugin! Invista nele!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Undefined variable $formatted_installments_price’ is closed to new replies.