product-customizer icon indicating copy to clipboard operation
product-customizer copied to clipboard

Customize button don't update ProductContext correctly

Open gustavopvasconcellos opened this issue 4 years ago • 0 comments

Describe the bug

TL;DR: We configurated an assembly options attachment in some products and while we tested native components they didn't work.

This product below have other assembly as an assembly options, this enables the "Customize" button and opens a Modal on click.

https://mcdon144--acctglobal.myvtex.com/mcproductrefid136/p

But the ProductContext is updated with the assembly options of the combo:

image

And the combo haven't been updated on his assembly option, the correct assembly is "Lanche Generico":

image

To Reproduce Steps to reproduce the behavior:

  1. Go to https://mcdon--acctglobal.myvtex.com/mcproductrefid136/p
  2. Try to change the options and debugg the add to cart button.

Expected behavior The correct behavior is to change the assembly option items, not to add new assemblies on the main product.

gustavopvasconcellos avatar Dec 09 '20 21:12 gustavopvasconcellos