BO - Shop Parameters - Product Settings - Default pack stock management

Details

Steps

Step Description Expected result
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock block See Default pack stock management is set to Decrement pack only.
Go to Catalog > Products See Pack Mug + Framed poster quantity is 100
Go to FO > Search for Pack product > Add to cart Pack Mug + Framed poster > Proceed to checkout Your order is confirmed
Go to BO > Catalog > Products See Pack Mug + Framed poster quantity is 99
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock > Set Default pack stock management to “Decrement products in pack only.” > Save Message Update successful is displayed
Go to FO > Search for Pack product > Add Pack Mug + Framed poster to cart > Proceed to checkout Your order is confirmed
Go to Catalog > Products See:
Pack Mug + Framed poster quantity is 99
Mug The adventure begins quantity is 295
Today is a good day Framed poster quantity is 895
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock > Set Default pack stock management to “Decrement both.” > Save Message Update successful is displayed
Go to FO > Search for Pack product > Add Pack Mug + Framed poster to cart > Proceed to checkout Your order is confirmed
Go to Catalog > Products See:

Pack Mug + Framed poster quantity is 98
Mug The adventure begins quantity is 290
Today is a good day Framed poster quantity is 890
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock > Set Default pack stock management to “Decrement products in pack only.” > Save Message Update successful is displayed
Go to Catalog > Products > Edit quantity of your Pack product Pack Mug + Framed poster to 0 Message Successful update is displayed
Go to FO > Search for Pack product > Add product to cart Product is well added to cart

Now it is blocked : https://github.com/PrestaShop/PrestaShop/issues/35367
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock > Set Default pack stock management to “Decrement pack only.” > Save Message Update successful is displayed
Go to FO > Search for Pack product > Add product to cart Product can’t be added to cart. Out-of-stock message is displayed. Add to cart button is greyed out.
Go to BO > Shop Parameters > Product Settings > Scroll down to Products stock > Set Default pack stock management to “Decrement both.” > Save Message Update Successful is displayed
Go to FO > Search for Pack product Product can’t be added to cart. Out-of-stock message is displayed. Add to cart button is greyed out.