I am using Magneto2.3.1 and i need to customize the default magento compare link on detail page. I want to show checkbox with compare label and if i checked than product compare successfully and if unchecked than not compare.

I shared here screenshots please lookout it:

enter image description here

  • try with observer – Anas Mansuri Aug 30 '19 at 11:00
  • Use jQuery . Put submit event on checkbox click – Shorabh Aug 30 '19 at 11:02
  • onclick try with $this->_eventManager->dispatch('catalog_product_compare_add_product', ['product' => $product]); this event.. – Anas Mansuri Aug 30 '19 at 11:03
  • please describe it and full code – Rv Singh Aug 30 '19 at 11:07
  • Like onChange="this.form.submit()" – Shorabh Aug 30 '19 at 11:26

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.