product-customizer
product-customizer copied to clipboard
Customize button don't update ProductContext correctly
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:
And the combo haven't been updated on his assembly option, the correct assembly is "Lanche Generico":
To Reproduce Steps to reproduce the behavior:
- Go to https://mcdon--acctglobal.myvtex.com/mcproductrefid136/p
- 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.