Bug: If you add an matrix item to a quote, then re...
# suitecommerce
g
Bug: If you add an matrix item to a quote, then refresh the page, it displays the parent instead of the child.
s
Displays the child item for me. Any other steps or conditions you can provide to replicate this?
g
I’m using 2021.1.6. Maybe it’s been fixed.
Did you add using the quick add, because it’s fine from the PDP.
s
I did use Quick Add and my site is 2021.2.3
g
Hopefully that one is fixed then. :)
I’m already out of date 😄
s
I can't see anything about this specific issue. We did fix something to do with quote statuses in between those versions 🤷🏻‍♂️
g
I’ll dig into the code and see if I can fix it.
In case it ever comes up again. This appears twice in the code and if I comment it out, everything works as expected. For some reason it replaces the child with the parent.
if (product.get(‘item’).get(‘_matrixParent’).internalid) { // As the quote is a line, it will only save the child item, but product list saves the parent item // so we override the item with the parent one product_list_line.set(‘item’, product.get(‘item’).get(‘_matrixParent’), { silent: true }); }