Variations stocks removed

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
eljacko
Posts: 3
Joined: 07 Feb 2022, 14:46

Variations stocks removed

Post by eljacko » 07 Feb 2022, 14:51

"php": "^7.3|^8.0",
"aimeos/aimeos-laravel": "~2021.10",
"laravel/framework": "^8.75",

Hi, i have a product with a lot of variations. I have added unlimited stock to each variation. When i save the "main" product, all the variations stocks are removed from the database. What am i doing wrong?

EDIT: Is there a way to set unlimited stock in the main product, variations tab in the stock field?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Variations stocks removed

Post by aimeos » 08 Feb 2022, 10:49

If you leave the stock level field of the variant articles empty and add a stock entry for the parent product with unlimited stock, then the variant articles should have also unlimited stock levels.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

eljacko
Posts: 3
Joined: 07 Feb 2022, 14:46

Re: Variations stocks removed

Post by eljacko » 08 Feb 2022, 16:34

I have tried that, but then it says out of stock when selecting a variant.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Variations stocks removed

Post by aimeos » 10 Feb 2022, 15:51

Problem is fixed. If the stock level field for variant articles is empty, it's treated as unlimited stock now.
To update your installation, please execute:

Code: Select all

composer req aimeos/ai-admin-jqadm:2021.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

developer
Posts: 10
Joined: 01 Dec 2022, 17:29

Re: Variations stocks removed

Post by developer » 09 Dec 2022, 16:14

Hi Aimeos,

I have facing same problem but i don't want to update version. Because I have do many custom code that might be effected.
Can you please le me know the line of code update for the same? and where I can add that code?

Your help will be save my time.
Thanks

Post Reply