# visual-web-optimizer/4.15/templates/remove.php

Wingify, version 4.15. 14 lines.

- Page: https://pluginprobe.com/plugins/visual-web-optimizer/4.15/code/templates/remove.php
- Raw: https://pluginprobe.com/plugins/visual-web-optimizer/4.15/raw/templates/remove.php
- Modified: 2026-09-18T13:47:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visual-web-optimizer/4.15/code/templates/remove.php#L10-L20`.

```php
<?php defined('ABSPATH') or exit; ?>
$(document.body).off('click', '.remove').on('click', '.remove', function() {
    window.VWO = window.VWO || [];
    VWO.event = VWO.event || function() {
        VWO.push(["event"].concat([].slice.call(arguments)));
    };
   
    VWO.event('woocommerce.productRemovedFromCart', {
        productSku: $(this).data('product_sku') ? ('' + $(this).data('product_sku')) : ('#' + $(this).data('product_id')),
        productTitle: $(this).closest('tr').find('.product-name').text().trim() || '',
        quantity: $(this).closest('tr').find('.qty').val() ? parseInt($(this).closest('tr').find('.qty').val()): 1
    });
});

```
