Bienvenido, Invitado
Recordarme

TEMA:

Dynamic Pricing not taking place after update. 8 meses 6 días antes #246223

  • Autor del tema
  • debraj_saha
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 23
  • Gracias recibidas: 0
Hi..

I have used the below logic for dynamic pricing. It was working fine before update to latest version of breezingforms. Please advise.

$loan= $fields->loan_amount->value;
switch ($loan){
case($loan> 50000 && $loan<= 999999):
$price = 3799;
break;
case($loan>= 1000000 && $loan<= 2499999):
$price = 4999;
break;
case ($loan>= 2500000 && $loan<= 4999999):
$price = 6999;
break;
case ($loan>= 5000000 && $loan<= 9999999):
$price = 9499;
break;
case ($loan>= 10000000 && $loan<= 49999999):
$price = 13569;
break;
case ($loan>= 50000000 && $loan<= 99999999):
$price = 19999;
break;
case ($loan>100000000):
$price = 50000;
break;
default:
break;
}

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Dynamic Pricing not taking place after update. 8 meses 5 días antes #246264

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
Hi,

I cannot see a reason why the above code shouldn't work. I am missing the complete picture of it to be honest.

The recent updates all weren't breezingcommerce related or affecting it, so with the piece of code above I cannot really tell.

Do you get any errors in on the site or in the browser console upon adding to cart?

Regards,
Markus

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Tiempo de carga de la página: 0.037 segundos