This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:on_removeFromCompare AJAX handler

Defined in /modules/shop/classes/shop_actions.php, lines 2982-2991
Author LemonStand eCommerce Inc.
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>

Supported form fields

Field Type Description
product_id integer specifies the product identifier. Required.

Supported form field details

ΒΆ product_id form field

Specifies the product identifier. Required.