Developer forum

Forum » Integration » Data Integration - Variants

Data Integration - Variants

George Nelzo Pereira
Reply

Hi People.

Could someone clarify my ideas.
I am creating an integration, where I have products with variants.
Being imported so cute, but when I list the products are not showing the option to expand and display variants (the +).
When I'm making manually it appears.

By integration:
http://www.screencast.com/t/m6tod0PXCpPA
http://www.screencast.com/t/4wACbjLSwIfz
Manually:
http://www.screencast.com/t/qU6sKDqEfT68


Replies

 
Morten Snedker
Reply
This post has been marked as an answer

Hi George,

 

Check columns 

  • ProductVariantCounter - the amount of available variants.
  • ProductVariantProdCounter - the amount of variants actually used.

In this example you'll find 5 available variant options. Only 4 of these are used in EcomProducts for the current product.

 

Let me know if this helped.

 

Regards /Snedker

 

Votes for this answer: 1
 
George Nelzo Pereira
Reply

Hi Morten,

I was looking the querie... In my case the result was completly different.
I'm trying insert just a main products after this the variants... then the result is totaly different.

Now I'm putting together (like union between Products and variants), then is work perfectly, but should be possible to includ just variants, no? (I mean update the product with new variables).

 

 
Morten Snedker
Reply

Hi George,

Yes, it should be possible to have a main product, and then followingly add just variants.

I don't know if this clarifies anything, but:

With reference to my screendump in previous answer: EcomProducts has a composite key composed by

  • ProductID
  • ProductLanguageID
  • ProductVariantID

Still with reference to my screendump: let's say you import via CSV and you have these two lines (ProductID,LanguageID;VariantID;Price):

PROD4;LANG1;VO1;10
PROD4;LANG1;VO5;20

then the result would be that

  • PROD4/VO1 would have its price UPDATED to 10.
  • PROD4/VO5 would be CREATED and have its price set to 20 (since there is no row with this ProductVariantID).

Bottom-line: a product is matched on ProductID+ProductLanguageID+ProductVariantID. If this composite key is NOT matched, a new row will be added.

Does this answer your question? Or is just that you don't understand why your query (combining products/variants in your source) works, but running them separately does not work...and you think that's weird?   :-)

 

Regards /Snedker

 

 
George Nelzo Pereira
Reply

Hi Morten,


Yep I was doing like your setup. Was including in products like variants, but was not incrementing the ProductVariantCounter (always is 0) and ProductVariantProdCounter (is incrementing 0,1,2,3).


George

 

 

You must be logged in to post in the forum