Timeline for is it possible to filter checkout cart collection magento 2?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 10, 2019 at 11:45 | vote | accept | Hitesh Balpande | ||
Feb 4, 2019 at 7:00 | comment | added | Ketan Borada |
you need just id for load product, for current added product use event checkout_cart_product_add_after
|
|
Feb 4, 2019 at 6:27 | comment | added | Hitesh Balpande | ,Magento\Catalog\Model\Product wont give current added products to the cart. | |
Feb 1, 2019 at 11:34 | comment | added | Ketan Borada | you can add your custom, first load product in for loop i have edit my answer | |
Feb 1, 2019 at 11:33 | history | edited | Ketan Borada | CC BY-SA 4.0 |
added 4 characters in body
|
Feb 1, 2019 at 11:30 | comment | added | Hitesh Balpande | ,getSku is the default attribute | |
Feb 1, 2019 at 11:28 | comment | added | Ketan Borada |
put condition in for loop if($item->getSku()=='SM100'){} it is only way to do this
|
|
Feb 1, 2019 at 11:26 | comment | added | Hitesh Balpande | ,i have same code but need to add filter this collection with custom attributes as like we filter addAttributeToFilter('product_type','apple') | |
Feb 1, 2019 at 10:48 | history | answered | Ketan Borada | CC BY-SA 4.0 |