magento2-connector-community icon indicating copy to clipboard operation
magento2-connector-community copied to clipboard

What is the magento stock quantity attribute code?

Open ExperienceUK opened this issue 2 years ago • 1 comments

I'm trying to update the stock quantity but magento always says stock quantity is 0

I have created a numeric attribute in Akeneo called 'qty' and added a qty value of say 20 on the product page in Akeneo

I have mapped this in the magento connector config attribute mapping as (akeneo) qty > (magento) qty but it wont update the stock level - do i need to map another value too or am i missing something?

ExperienceUK avatar May 19 '22 23:05 ExperienceUK

@ExperienceUK As far as I know the connector hasn’t implemented stock and stock is not an attribute you can easily just map anymore in later Magento releases because of the new inventory implementation (MSI). If I was you I would implement an server less function that pass the stock data from Akeneo (if you have to have it there) and post it to /V1/inventory/source-items You could use Akeneo’s event api to call the server less function.

https://magento.redoc.ly/2.4.4-admin/tag/inventorysource-items#operation/inventoryApiSourceItemsSaveV1ExecutePost

https://api.akeneo.com/events-documentation/overview.html

oefterdal avatar Jun 03 '22 08:06 oefterdal