-
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
Adding product from wishlist not adding to cart showing warning message. #19653
Conversation
merge 2-3
Hi @khodu. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
app/code/Magento/Wishlist/Block/Customer/Wishlist/Item/Column/Cart.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Wishlist/Block/Customer/Wishlist/Item/Column/Cart.php
Outdated
Show resolved
Hide resolved
merge branch
app/code/Magento/Wishlist/Block/Customer/Wishlist/Item/Column/Cart.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Wishlist/Block/Customer/Wishlist/Item/Column/Cart.php
Outdated
Show resolved
Hide resolved
Hi @torhoehn, thank you for the review. |
Hi @khodu , there are a couple of issues that we faced while testing the PR, can you please take a look at them: Issue 1: The 'Qty' value is not saved after updating on 'My Wish List' page
Issue 2: The 'Comment' value is not deleted after updating on 'My Wish List' page
|
patch-9155 : set default qty for add to cart from wishlist. patch-9155 : set default qty for add to cart in wishlist.
Hi @sivaschenko I have fixed the first issue now if qty value set is less than minimum qty for cart then it will not update but it will update the qty value if it is more than the minimum qty for cart then it will update. for second issue i have checked in default magento 2.3 and test their and it is also generating their. so it is not relevant to this commit. Please test my changes and if you find any issue please tell me in comment. |
ab361db
to
73859cd
Compare
There is a unit test failure on this pull request:
|
Hello Sergii, I haven't change in any Js files. can you please check my pull requests. |
Hi @khodu, thank you for your contribution! |
array $data = [], | ||
?ConfigInterface $config = null, | ||
?UrlBuilder $urlBuilder = null, | ||
?View $productView = null |
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.
@sivaschenko @torhoehn injected variables must not be nullable.
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.
@orlangur why not?
There are only two required parameters in \Magento\Wishlist\Block\AbstractBlock::__construct
.
So theoretically it should also be possible to instantiate the \Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Cart
with only two params.
Thus we also need to make the corresponding parameters nullable in this case, don't we?
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.
@dmytro-ch because we never want to pass null
explicitly. It is needed only as a default value.
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.
I get it now. It does make sense.
Thanks!
Description (*)
Adding product from wishlist not adding to cart showing warning message.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)