Allow Backorders doesn't work to add more quantity then inventory item count.
-
Bagisto version: 1.5.1
I allowed backorders in the configuration/inventory system and set the pending ordered quantity to 1 in edit product inventories section.
But when I entered item quantity more than inventory from store, it alerted an error message "Warning! The requested quantity is not available, please try again later".
How can I config the customer can add to cart item more than inventory item count?
-
@pth
Hello,
As I checked the same concern and I was unable to face such issue can you please help with the screenshots. I followed below steps.Image 1 - Allowed Backorder - https://prnt.sc/WFV8UrAxiz51
Image 2 - Product Available QTY
https://prnt.sc/6B1HrdRpsoP-Image 3 - Product Purchased QTY is more then Inventory.
https://prnt.sc/plKRyUcCJ2G6 -
@ashish2409 I followed the steps but it doesn't work with virtual product type.
-
@ashish2409 I found issue thread on the Github. Is there an option for manage stock like Bagisto 2.0.
-
Hello @pth,
Yes, In the Latest version of Bagisto. there is an option to manage stock.
Thanks.
-
This post is deleted! -
For those who is looking for the solution in Bagisto 1.5, there is a hacky way to do it.
You can find Product class file location at
packages/Webkul/Product/src/Type/Virtual.php
and edit a function calledhaveSufficientQuantity
and replace withreturn $qty <= $this->totalQuantity() ?: (bool) core()->getConfigData('catalog.inventory.stock_options.backorders');
-
Hello @pth,
Thank you for sharing the solutions to fix that issue.