Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
¿Cómo mostrar el precio total de un producto en función de sus variaciones en reaccionar?

Estoy tratando de mostrar el precio total de un producto en función de sus variantes seleccionadas. Al igual que cuando el usuario selecciona las variantes de una lista, se mostrará un precio basado en eso. mi objeto de variantes es,

 choice_options: Array(4) 0: name: "choice_3" options: (3) ['2', '54', '67'] title: "imrunvai" [[Prototype]]: Object 1: name: "choice_2" options: (5) ['3543', '3', '453', '45', '345'] title: "sakeefvai" [[Prototype]]: Object 2: name: "choice_4" options: (3) ['345', '45', '4'] title: "sharifvai" [[Prototype]]: Object 3: name: "choice_1" options: (3) ['128gb', ' 256gb', ' 476gb'] title: "Size" [[Prototype]]: Object length: 4 [[Prototype]]: Array(0)

Esta matriz es totalmente dinámica. Basado en estos datos, diseñé la interfaz así,

ingrese la descripción de la imagen aquí

para mostrar el precio basado en variantes necesito hacer una variable como,

escriba: 'primer_valor_seleccionado-segundo_valor_seleccionado-3er_valor_seleccionado-4to_valor_seleccionado-5to_valor_seleccionado'

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!