The status of the "Clearance Sale" switch or "Backorders Denied" option for bundle products is handled differently from normal products.
When using Pickware stock management is disabled for bundle products and this switch can be found in the bundle configuration section. However, this switch only shows the current backorder status of the bundle product and is not actually modifiable. Allow me to explain.
The backorder status of the bundle product is determined on the availability of the actual items in the bundle.
Imagine the following scenario.
The bundel contains 2 products
- Product A: Available Stock 0 with backorders enabled
- Product B: Available Stock 10 with backorders disabled.
This makes the available stock of the bundle 0, but we do not want the backorders to be disabled which would make the bundle unavailable, which is isn't.
Instead we want it to keep the backorders enabled until Product B gets an available stock of 0, after that we want the backorders to get disabled.
To accomplish this complex logic, the backorder status of the bundle product is calculated based on the contents of the bundle hence you cannot set it manually on bundle product level. Instead, we will now simply commit the backorder status to the database at the same time we actually update the availability of the bundle as well, note, this is still dependent on an asynchronous process and handled by the queue workers (not the scheduled tasks).
To ensure the data is set correctly in the database after installation/update, please let your agency run the following command and confirm the sync is actually processed.
./bin/console zeo:bundle:stock:sync
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article