Skip to content

Customize button don't update ProductContext correctly  #79

@gustavopvasconcellos

Description

@gustavopvasconcellos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions