I've element like following in category page

<a href="#" data-post="{&quot;action&quot;:&quot;http:\/\/mysite.test\/catalog\/product_compare\/add\/&quot;,&quot;data&quot;:{&quot;product&quot;:&quot;57&quot;,&quot;uenc&quot;:&quot;aHR0cDovL2FsdGNvbi50ZXN0L2VxdWlwbWVudC5odG1sP2Ftc2hvcGJ5JTVCYnJhbmQlNUQlNUIlNUQ9NTQ2Ng,&quot;}}" data-role="add-to-links" class="action tocompare hidden">

and it is working fine but when I apply the filter, By ajax new products are added to the page and for those newly added products on page data-post isn't working as expected

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.