Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commerce product/variant relation fields not importing #373

Closed
oadslug opened this issue Aug 12, 2018 · 5 comments
Closed

Commerce product/variant relation fields not importing #373

oadslug opened this issue Aug 12, 2018 · 5 comments

Comments

@oadslug
Copy link

oadslug commented Aug 12, 2018

Description

When importing Commerce Products (using XML), 'Commerce Variants' and 'Commerce Products' fields are not working. Data maps properly and correctly recognizes that products accept 'Title', 'Slug', or 'Id' and variants accept 'Title' or 'SKU', but no relationships are imported.

Fyi... Category fields work great.

Additional info

  • Plugin version: FeedMe 3.0.0-beta.17, FeedMe Pro 3.0.4, Commerce 2.0.0-beta.7
  • Craft version: Craft CMS 3.0.19
@engram-design
Copy link
Contributor

Fixed in the latest craft-3, and will be rolled into the next beta release.

@oadslug
Copy link
Author

oadslug commented Aug 17, 2018

This seems to be working great on the variant level (thank you), but not on the product level. In this case, I am attempting to relate a product to other compatible products (using a 'Commerce Products' field) using 'slug' as the match. I have double checked the imported value and the related slug value, and they are a match. It also displays correctly in the mapping example. I have not tested a 'Commerce Variants' field on the product level. I'll dig around a little more and report back if I find anything.

@engram-design
Copy link
Contributor

Hmmm, I can certainly relate other variants and products via their respective fields - matching by slug. Wonder if your search indexes need reindexing?

@oadslug
Copy link
Author

oadslug commented Sep 19, 2018

Just to follow-up, I was never able to successfully import relations of products to other products. Variants to products, worked; variants to variants worked, and products to variants worked — but for some reason products to products did not. Luckily there wasn't that many, and I was able to add these manually. Not worth the continued effort to debug. Possible user error somewhere (or an index issue as you mention), but I checked everything pretty carefully. When I have time I'll try a simplified test — but it will have to wait a bit. In the meantime, something to look out for.

@amityweb
Copy link

amityweb commented Jul 4, 2019

I would like to re-open this issue, this is happening to me. Manually adding them all afterwards is not an option.

I have mapped a XML import element to the field Commerce Product inside a matrix field. I have chosen Data Provided this Entry is: Slug AND I also tried Title.

The relationship is not imported.

I will repoen the issue seen as this is closed, new issue here #569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants