Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • This appears to be coming from lines 930-943 of gtm4wp-woocommerce-enhanced.js, which detects keypress events on the page and fires the function gtm4wp_handle_cart_qty_change() if the event’s target element is the same element or a child of another element that matches the CSS selector .woocommerce-cart-form input[type=number].

    In addition, when I typed 1-1-2, I expect the quantity in the event that is pushed to the data layer to be a number that is close to 112, but the quantity field contained the value 10.

    IMHO, cart quantity changes should not be tracked upon a keypress, but should be tracked on a more specific action, such as when a user clicks the Update Cart button.

    Hi, Dave, I’m just getting started with this plugin myself, and I’ll be trying to create an file to import 860 sermons with dozens of preachers, series and other data.

    It looks like you have yours partially built now, so I’m sorry we couldn’t collaborate!

Viewing 2 replies - 1 through 2 (of 2 total)