I have created a module to show upsell products in List page.
In List page, I have put one icon on each product, while clicking that icon, It would need to show upsell products list which is associated with the current product.
So Please provide me a solution to get the upsell products list Collection, for a particular product in list page.
Thanks in advance
How to Get Upsell Product Collection in List Page in Magento 2
category-listingcollection;magento2.2.2up-sells
Best Answer
Try below code. I won't recommend using objectManager. Instead create function and call your Upsell products on List Page.