Hi all,
First of all, great plugin !!!
I’d imported a lot of stuff already. But now i have a challenge regarding hourly/daily updating/syncing stock levels for variation products.
Some background info:
I’m importing products from an XML feed. Based on 1 or multiple variations the all import is creating simple or variation products.
the main xml feed looks like this:
<product>
<id>1234</id>
<artnr><strong><em>10203040</em></strong></artnr>
<title>Title of product</title>
<description>description of product</description>
<brand>
<id>63</id>
<title>brand name</title>
</brand>
<date>15-03-2010</date>
<modifydate>05-08-2019</modifydate>
<variants>
<variant>
<id>1235</id>
<type>S</type>
<subartnr><strong><em>10203040</em></strong></subartnr>
<ean>1212121212121</ean>
<stock>Y</stock>
<stockestimate>3</stockestimate>
<title>Medium</title>
</variant>
<variant>
<id>1236</id>
<type>S</type>
<subartnr>10203041</subartnr>
<ean>1212121212122</ean>
<stock>Y</stock>
<stockestimate>50</stockestimate>
<title>Large</title>
</variant>
...
...
As you can see, the primairy product is the same as the first variation (for simple and variation products)
An stock xml feed looks like this:
<product>
<productid>1234</productid>
<variantid>1235</variantid>
<productnr>3002137010</productnr>
<ean>716770055729</ean>
<stock>Y</stock>
<qty>99</qty>
</product>
<product>
<productid>1234</productid>
<variantid>1236</variantid>
<productnr>3002137030</productnr>
<ean>1212121212121</ean>
<stock>Y</stock>
<qty>27</qty>
</product>
<product>
<productid>1234</productid>
<variantid>6443</variantid>
<productnr>3002137020</productnr>
<ean>1212121212122</ean>
<stock>J</stock>
<qty>9</qty>
</product>
As you can see:
how can i correctly sync the stock. Do i need to keep the import template with variations, and which option to choose (1/2/3/4/5) – http://www.wpallimport.com/documentation/woocommerce/variable-products/ with what kind of unique field…
Also in the import settings. what should be the record matching?
Because the stock feed has got a different format than the main feed. i’d tried a lot of options, but i can;t figure it out
Thanks for all your help
I hope i cleared it out for you all
Kevin