I have to implement product compare feature in my magento2. For this i am using
<?php $this->getAddUrl($product); ?> and I am getting the compare url of the product. But after click on
add to compare link, no product showing in the compare sidebar.
Please help me to do it. Thanks