PluginProbe
Visual Website Optimizer / 4.7
Visual Website Optimizer v4.7
trunk 1.0 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.10 All 37 releases
visual-web-optimizer / templates / remove.php

remove.php in Visual Website Optimizer 4.7, at templates/remove.php

14 lines 668 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('ABSPATH') or exit; ?>
2 $(document.body).off('click', '.remove').on('click', '.remove', function() {
3 window.VWO = window.VWO || [];
4 VWO.event = VWO.event || function() {
5 VWO.push(["event"].concat([].slice.call(arguments)));
6 };
7
8 VWO.event('woocommerce.productRemovedFromCart', {
9 productSku: $(this).data('product_sku') ? ('' + $(this).data('product_sku')) : ('#' + $(this).data('product_id')),
10 productTitle: $(this).closest('tr').find('.product-name').text().trim() || '',
11 quantity: $(this).closest('tr').find('.qty').val() ? parseInt($(this).closest('tr').find('.qty').val()): 1
12 });
13 });
14