Closed atIOCrON closed 2 weeks ago
Hi @atIOCrON. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Echo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.Issue: Clear Description
label to the issue by yourself.Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Hi @atIOCrON,
Thank you for reporting the issue.
We have tried this issue on Magento 2.4-dev/2.4.3-P1 and we have successfully reproduced it.
Steps followed to reproduce issue:
The Backorders configuration is not working as stated in the documentation(https://docs.magento.com/user-guide/catalog/inventory-backorders.html), hence confirming the issue.
Thanks
:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-2107 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Echo. Thank you for verifying the issue.
Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento give me 2.4-develop instance
Hi @DiVoronovich. Thank you for your request. I'm working on Magento instance for you.
Hi @DiVoronovich, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
Hi @zhartaunik. Thank you for your request. I'm working on Magento instance for you.
Hi @zhartaunik, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
@magento give me 2.4-develop instance
Hi @sdzhepa. Thank you for your request. I'm working on Magento instance for you.
Hi @sdzhepa, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
Unable to reproduce locally
vendor/magento/module-catalog-import-export/Model/Import/Product.php
This code added at Line 3191 is the culprit:
if (isset($rowData['qty']) && $rowData['qty'] == 0) { $row['is_in_stock'] = 0; }
It does not take in account the back order setting of the product
@magento I am working on this
@magento give me 2.4-develop instance
Hi @Zaahed, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
Can't reproduce this in 2.4-develop either. Backorders is set to Allow Qty Below 0 and Notify Customer
. Set an existing product's qty to zero by importing a CSV file, stock status remains In Stock
as expected.
Hi @atIOCrON ,
Thanks for your reporting and collaboration. We have re-verified the issue in 2.4-develop instance , but we are unable to reproduce the issue. Kindly refer the screenshots.
Steps to reproduce
Can you please re-verify and confirm if you are still facing the issue. Thanks.
Hi @atIOCrON ,
This issue is being closed since it has not been updated in a long time. Please feel free to reopen or raise a new ticket if the issue still exists.
Thanks.
Preconditions (*)
Steps to reproduce (*)
Stores > Configuration > Catalog: Inventory > Backorders: Allow Qty Below 0 and Notify Customer
Choose a product that is in stock with a qty greater than 0.
System > Import > Entity Type: Products > Import Behavior: Add/Update > Import a file to set the qty to 0, e.g:
Expected result (*)
a) The qty is changed to 0 b) The stock status remains "In Stock"
The stock status should NOT be changed because when backorders are set to "Allow Qty Below 0 and Notify Customer" Magento does NOT change the stock status when the qty reaches 0.
Actual result (*)
a) The qty is changed to 0 b) The stock status is changed to "Out of stock"
This behaviour appears to come from a previous issue that was fixed:
https://github.com/magento/magento2/issues/23042 https://github.com/magento/magento2/pull/24053
However, when backorders are set to "Allow Qty Below 0 and Notify Customer" Magento does NOT change the stock status when the qty reaches 0, therefore it shouldn't change it when the qty 0 is imported with this setting enabled.