-
Notifications
You must be signed in to change notification settings - Fork 139
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
Comments
Fixed in the latest craft-3, and will be rolled into the next beta release. |
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. |
Hmmm, I can certainly relate other variants and products via their respective fields - matching by slug. Wonder if your search indexes need reindexing? |
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. |
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 |
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
The text was updated successfully, but these errors were encountered: