Extracting variatons

So, i have a working extraction for this product that pulls all the info except for the different colors (and Varenr for each of those) for using was woocommerce variatons . From what I can see the latest update from april supports extracting these..

Another problem is that when extracting I the default varenr (in this case 1820623 - color krystallhvit) will be the main product and the others will be variatons. I might be making this more difficult than it should though, so all help appreciated .

Url: https://nibu.no/produkt/blanco-axon-ii-6s-h/

Sitemap:
{"_id":"porselenriktig","startUrl":["https://nibu.no/produktkategori/kjokkenvasker/porselensvasker/"],"selectors":[{"id":"sider","type":"SelectorLink","parentSelectors":["_root","sider"],"selector":"a.page-numbers","multiple":true,"delay":0},{"id":"linker","type":"SelectorLink","parentSelectors":["_root","sider"],"selector":"a.woocommerce-LoopProduct-link","multiple":true,"delay":0},{"id":"tittel","type":"SelectorText","parentSelectors":["linker"],"selector":"h1.title","multiple":false,"regex":"","delay":0},{"id":"varenr","type":"SelectorText","parentSelectors":["linker"],"selector":"span.sku","multiple":false,"regex":"","delay":0},{"id":"nobbnr","type":"SelectorText","parentSelectors":["linker"],"selector":"div.summary div:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"lagerstatus","type":"SelectorText","parentSelectors":["linker"],"selector":"div.summary div:nth-of-type(3)","multiple":false,"regex":"","delay":0},{"id":"beskrivelse1","type":"SelectorText","parentSelectors":["linker"],"selector":"div.woocommerce-Tabs-panel p:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"utvendigmål","type":"SelectorText","parentSelectors":["linker"],"selector":"div.woocommerce-Tabs-panel p:nth-of-type(3)","multiple":false,"regex":"","delay":0},{"id":"skapmål","type":"SelectorText","parentSelectors":["linker"],"selector":"div.woocommerce-Tabs-panel p:nth-of-type(4)","multiple":false,"regex":"","delay":0},{"id":"bilde1","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(1) a","multiple":false,"extractAttribute":"href","delay":0},{"id":"bilde2","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(2) a","multiple":false,"extractAttribute":"href","delay":0},{"id":"bilde3","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(3) a","multiple":false,"extractAttribute":"href","delay":0},{"id":"bilde4","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(4) a","multiple":false,"extractAttribute":"href","delay":0},{"id":"bilde5","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(5) a","multiple":false,"extractAttribute":"href","delay":0},{"id":"bilde6","type":"SelectorElementAttribute","parentSelectors":["linker"],"selector":".woocommerce-product-gallery__wrapper div:nth-of-type(6) a","multiple":false,"extractAttribute":"href","delay":0}]}

Looking at the site, it seems that you will not be able to iterate through the product variations due to the structure of the page.

There usually are 2 options to resolve this:

  1. Using the 'Element Click' selector - unfortunately, in this case, when you click on the different variation, the page reloads, so the 'Element Click' selector will be no good, as it will stop working as soon as the page reloads.
  2. Link selector - this will not work either, as there is no link within the variation element to use for the link selector, so you will not be able to use that as well.