I want to check if products is already in compare list on product listing page and show remove compare button there
below is come of my list.phtml
Add to compare
< ?php /* @escapeNotVerified */ echo __('+ Compare') ?>
Remove from compare
< ?php /* @escapeNotVerified */ echo __('+ Compare') ?>
I want to add condition so remove code should show If product in compare list