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

Product variant data doesn't get updated - Feed Me 5.8.0 #1521

Closed
ax2000 opened this issue Oct 2, 2024 · 6 comments
Closed

Product variant data doesn't get updated - Feed Me 5.8.0 #1521

ax2000 opened this issue Oct 2, 2024 · 6 comments
Assignees

Comments

@ax2000
Copy link

ax2000 commented Oct 2, 2024

Description

This issue might be related with this ticket but can't be sure. I'm using Feed Me for Craft 4.x and that issue seemed to be for Craft 5.x

When importing product data for a brand new product, all data gets imported as intended.

The issue seems to happen when updating data for an existing product. All the updates for the normal product fields come through correctly but none of the variant fields get updated somehow.

Screenshot 2024-10-02 at 15 20 30

Screenshot 2024-10-02 at 15 21 18

Screenshot 2024-10-02 at 15 22 21

Screenshot 2024-10-02 at 15 23 20

Steps to reproduce

  1. Import a brand new product via feed me
  2. Update all product data from feed including variant fields and run import again. The common product data gets updated properly whilst variant data doesn't.

Additional info

  • Craft version: 4.12.4.1
  • PHP version: 8.2.23
  • Database driver & version: MariaDB 10.2.44
  • Plugins & versions: Feed Me 5.8.0, Commerce 4.6.12
@ax2000 ax2000 added the bug label Oct 2, 2024
@i-just
Copy link
Contributor

i-just commented Oct 9, 2024

Hi, thanks for getting in touch! Could you clarify a few things, please?

  • is your product set to have one variant?
  • when you say, “Update all product data from feed including variant fields and run import again.”, does it mean you updated the pku value in your feed, too?

@i-just i-just self-assigned this Oct 9, 2024
@ax2000
Copy link
Author

ax2000 commented Oct 10, 2024

Thanks for your reply @i-just

To answer your questions:

  • The product is set to have only one variant
  • The pku didn't get updated in the feed (it always remains the same for each existing products). The feed is set to match entries by the external's API warehouse_product_id

Please find below screenshots of the full feed config in case they help.

Image

Image

Image
Image
Image

Image

Let me know if that helps or if you'd need me to provide anything else.

@i-just
Copy link
Contributor

i-just commented Oct 10, 2024

Thanks, @ax2000, that’s all very useful! Unfortunately, I still can’t replicate this issue, nor do I see anything obvious in the screenshots you provided.
Are you using any other plugins or modules? If so, could you disable them (modules too), leaving only Commerce and Feed Me and see if that changes anything? If that doesn’t change anything, would you mind sharing a snippet of your feed?

@Asociateone
Copy link

Asociateone commented Oct 10, 2024

We had the same issue, we downgraded FeedMe to 5.7.0 to resolve this issue.

we use the slug as UID.
Craft version: 4.12.5

@ax2000
Copy link
Author

ax2000 commented Oct 11, 2024

Thanks @i-just @Asociateone I've got a few plugins installed and also a custom module in place. Please bear with me whilst I test disabling them and performing more tests and I'll get back to you asap.

@ax2000
Copy link
Author

ax2000 commented Oct 31, 2024

Apologies for the delay getting back to this.

After reviewing it turns out that the pku was getting updated as well and craft wasn't updating the variant fields (price, weight, width, etc) due to the pku not matching.

When pku field remains unchanged, the variant data updates as expected.

@ax2000 ax2000 closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants