Developer forum

Forum » Ecommerce - Standard features » Import throws variant association/refernece in ecom list

Import throws variant association/refernece in ecom list

Morten Fink Eriksen
Reply

Hey

 

Im trying to import the following:

 
<tables>
  <table tableName="EcomProducts">
    <item table="EcomProducts">    
      <column columnName="ProductID"><![CDATA[PROD983]]></column>
      <column columnName="ProductVariantID"><![CDATA[]]></column>
      <column columnName="ProductStock"><![CDATA[9000]]></column>
    </item>
    <item table="EcomProducts">
      <column columnName="ProductID"><![CDATA[PROD983]]></column>
      <column columnName="ProductVariantID"><![CDATA[VO55]]></column>
      <column columnName="ProductStock"><![CDATA[9001]]></column>
    </item>
   </table>
</tables>
 
But after the import, when i look at the main product for "PROD983", the small "+" sign that indicates that the product has variants has vanished.
I know it must be because of the way im importing to the main product, but i can't quite figure out if im missing something to prevent it from throwing this "reference".
 
I can reestablish the "reference" by saving the main product again in ecom.

 


Replies

 
Morten Bengtson
Reply

A product has some variant counters (ProductVariantCounter, ProductVariantProdCounter, ProductVariantGroupCounter). Maybe you need to set those counters when importing? I have experienced similar issues with variants when all counters was set to zero.

 

 
Morten Fink Eriksen
Reply

Hmm... you might be right.. ill see if that changes anything

 

You must be logged in to post in the forum