-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qty box visibility issue in wishlist when product is out of stock #22381
Qty box visibility issue in wishlist when product is out of stock #22381
Conversation
Hi @ansari-krish. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ihor-sviziev, thank you for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why Qty box should not be displayed if the product is not Saleable? There might be a case when customer want to see how many Qty of the product they added to wishlist, even though the product is out of stock.
Hi @kalpmehta, |
@magento-engcom-team give me test instance |
Hi @kalpmehta. Thank you for your request. I'm working on Magento instance for you |
Hi @kalpmehta, here is your new Magento instance. |
@ansari-krish Yes, can you please disable the Comment and Qty fields as it's anyway not editable when the product is not Saleable? Thanks |
Hi @kalpmehta, |
@magento-engcom-team give me test instance |
Hi @kalpmehta. Thank you for your request. I'm working on Magento instance for you |
Hi @kalpmehta, here is your new Magento instance. |
/** @var \Magento\Wishlist\ViewModel\AllowedQuantity $viewModel */ | ||
$viewModel = $block->getData('allowedQuantityViewModel'); | ||
$allowedQty = $viewModel->setItem($item)->getMinMaxQty(); | ||
$allowedQty = $block->getMinMaxQty(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ansari-krish Do you have to change this code for this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please revert it then? thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git issue is resolved, Please review now.
259eaa1
to
be34f65
Compare
Hi @kalpmehta, thank you for the review. |
Hi @ansari-krish, thank you for your contribution! |
Description (*)
Magento 2.3.x
Magento 2.2.x
Qty box should not be displayed in the wishlist if an added product is out of stock.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Stores >> Setting >> Configuration >> Catalog >> Inventory >> Display Out of Stock Products set Yes
Contribution checklist (*)