Trying to open a related item in a quick view moda...
# suitecommerce
k
Trying to open a related item in a quick view modal, but when doing so the pdp model of the underlying page updates the image gallery (the model on change triggers). If you close the modal the image gallery is from the item that was opened in the modal. Is it possible to cancel that model update when opening a modal on the same page via extension?
k
I imagine the QuickView and the PDP have the same model. I can for sure confirm you can call a modal from the PDP though.
k
Yeah - I can call the modal from the PDP, but the problem is that the image gallery in the background updates to the same image gallery thats in the modal window.
k
Hmm.. you may need to re-set the model with the original item on close of the modal.
k
well the issue there is you can sorta see the images sometimes behind the modal - they are not completely covered on large screens. Thinking maybe I could cancel that onchange function for the modal open
k
That would also be a good idea