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

111
Views
Cómo usar BigCommerce utils.api.productAttributes.optionChange

Cómo usar utils.api.productAttributes.optionChange en un componente funcional de React y también cuando no tiene acceso a $form.serialize()

Traté de crear manualmente un formData como este pero no funciona.

 const addOption = () => { const formData = new FormData(); formData.append("action", "add"); formData.append("product_id", "459"); formData.append("optionValue", "12213"); formData.append("attribute", "25331"); console.log(formData); utils.api.productAttributes.optionChange( 459, formData, (err, response) => { const attributesData = response.data || {}; console.log("err: ", err); console.log("res: ", response); // I just copied this from the documentation but where do I get these methods? this.updateProductAttributes(attributesData); this.updateView(attributesData); } ); };

Recibo estos errores aunque el código de estado de respuesta es 200 y mi formData está vacío.

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!