Removes a product from the product comparison list.
Usually this handler used in a comparison list partial.
Read the
Compare Products Page article for the
implementation details. Usage example:
<a href="#" onclick="$(this).getForm().sendRequest(
'shop:on_removeFromCompare', {
extraFields: {product_id: '<?= $product->id ?>'},
update: {compare_list: 'shop:compare_list'}
}); return false">Remove</a>