craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

Error when setting the stock property in a product import #1428

Closed ax2000 closed 4 months ago

ax2000 commented 5 months ago

Description

When trying to import products, I'm getting the following error: Setting read-only property: craft\commerce\elements\Variant::stock - Component.php: 206

Screenshot 2024-04-12 at 11 11 26

Screenshot 2024-04-12 at 11 16 24

Additional info

sunnylawn commented 5 months ago

Yeah, also hitting this issue... We're not using the default value but a specific value in the feed element, but same error.

Commerce 5.0.2 / Feed Me 6.0.1

mach1media commented 4 months ago

I'm also encountering this issue.

Commerce 5.0.5 / Feed Me 6.0.1

lukeholder commented 4 months ago

We have a Commerce 5 compatibility PR #1448, to test it out change your craftcms/feed-me requirement in composer.json to:

"require": {
  "craftcms/feed-me": "dev-feature/commerce-5-support as 6.0.1"
  "...": "..."
}

Then run composer update.

angrybrad commented 4 months ago

Feed Me 6.1.0 is out with this change.