Hey
I have some questions regarding import of variants via data integration, if have the following XML:
<?xml version="1.0" encoding="UTF-8"?> <tables> <table tableName="EcomProducts"> <item table="EcomProducts"> <column columnName="ProductID"><![CDATA[Y3E4134301]]></column> <column columnName="ProductVariantID"><![CDATA[]]></column> <column columnName="ProductStock"><![CDATA[9997]]></column> <column columnName="ProductVariantCounter"><![CDATA[0]]></column> <column columnName="ProductVariantProdCounter"><![CDATA[0]]></column> </item> <item table="EcomProducts"> <column columnName="ProductID"><![CDATA[PROD983]]></column> <column columnName="ProductVariantID"><![CDATA[V050]]></column> <column columnName="ProductStock"><![CDATA[9998]]></column> <column columnName="ProductVariantCounter"><![CDATA[2]]></column> <column columnName="ProductVariantProdCounter"><![CDATA[0]]></column> </item> <item table="EcomProducts"> <column columnName="ProductID"><![CDATA[PROD983]]></column> <column columnName="ProductVariantID"><![CDATA[VO55]]></column> <column columnName="ProductStock"><![CDATA[9999]]></column> <column columnName="ProductVariantCounter"><![CDATA[2]]></column> <column columnName="ProductVariantProdCounter"><![CDATA[1]]></column> </item> </table> </tables>
1) Is the "ProductVariantProdCounter" necessary when importing with variants, i know the "ProductVariantCounter" is needed or the product removes its variant relation in the backend, but what is the function of "ProductVariantProdCounter"?
2) When importing to the primary product, i can't seem to import to it if i supply the variantid that the product has (V050), but if i remove it it imports to the primary product, but how does it know which variant is the primary when i don't specify the "ProductVariantID", somehow it behind the scenes seems to know to update the primary variant. Anybody know how this works?