Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • abeyance

    (@abeyance)

    Hi, I am having the same issue. Below are screenshots of a console error i found that might be related.

    https://snipboard.io/dVuvR6.jpg
    https://snipboard.io/fEWrLo.jpg

    Thread Starter abeyance

    (@abeyance)

    Here’s the updated version I am using:

    // Select the target node
    var target = document; // You want to observe changes in the entire document
    
    // Create a new MutationObserver instance
    var observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mutation) {
    if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
    Array.from(mutation.removedNodes).forEach(function(node) {
    if (node.nodeType === Node.ELEMENT_NODE) {
    var targetId = node.id?.replace('_field', '');
    if (allowedInputs.includes(targetId)) {
    triggerAddEvents();
    }
    }
    });
    }
    });
    });
    
    // Configuration of the observer:
    var config = { childList: true, subtree: true };
    
    // Start observing the target node for configured mutations
    observer.observe(target, config);
    Thread Starter abeyance

    (@abeyance)

    Hey!
    So what I mean is an example, I add a product to the store and size guides are all fine, then when I add the same product again just with a different design, the size guide images are uploaded again to my website. Is there a way to use the size guide images of the first product without uploading them again?
    It’s not really an issue but just takes space while it is the same exact size guide same images, just asking if there’s a better way to do this instead of having duplicate images each time I add the same product.

Viewing 3 replies - 1 through 3 (of 3 total)