In Shopware, bundle product stock levels are virtual and calculated during runtime. These do not directly reflect actual stock in the database. For users managing stock with Pickware, the stock displayed on bundle products is virtual and determined dynamically when the product is loaded. To ensure accurate stock display and hide items without stock on the storefront, follow the steps below.
Steps to Hide Items Without Stock
1. Understand Stock Synchronization
- Shopware calculates bundle product stock levels using a database query during runtime.
- Synchronization between virtual stock levels and the database occurs asynchronously via queue workers.
2. Manually Synchronize Stock Levels
If there are discrepancies or delays in synchronization, manually synchronize the bundle stock levels using the CLI command:
bin/console zeo:bundle:stock:sync
- Run this command to align virtual stock with the database.
3. Regularly Monitor Queue Workers
- Synchronization relies on queue workers to update virtual stock levels in the database.
- Regularly monitor the queue to ensure that these processes remain efficient and avoid delays or failures.
4. Ensure Accurate Stock Visibility
- Once synchronization is complete, products without stock will no longer be displayed on the storefront, ensuring accurate availability information for customers.
Tips for Maintaining Stock Accuracy
- Automate Monitoring: Set up automated alerts or routines to check the status of queue workers.
- Schedule Synchronizations: Run the synchronization command periodically to maintain up-to-date stock levels.
- Optimize Performance: Evaluate queue worker performance regularly to prevent bottlenecks in synchronization.
By following these steps, you can ensure your storefront only displays products with available stock, providing a better user experience and maintaining inventory accuracy.
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