diff --git a/integration/woocommerce.php b/integration/woocommerce.php index 3ed3126a..cc51f630 100755 --- a/integration/woocommerce.php +++ b/integration/woocommerce.php @@ -443,6 +443,8 @@ function gtm4wp_woocommerce_datalayer_filter_items( $data_layer ) { 'cart' ); + unset( $eec_product_array['internal_id'] ); + $data_layer['cartContent']['items'][] = $eec_product_array; } } diff --git a/public/frontend.php b/public/frontend.php index 11d11356..d0b50254 100755 --- a/public/frontend.php +++ b/public/frontend.php @@ -1222,11 +1222,6 @@ function gtm4wp_fire_additional_datalayer_pushes() { $has_html5_support = current_theme_supports( 'html5' ); $add_cookiebot_ignore = (bool) $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_COOKIEBOT ]; - if ( count( $gtm4wp_additional_datalayer_pushes ) > 0 ) { - echo ' -'; - } - foreach ( $gtm4wp_additional_datalayer_pushes as $one_event ) { $datalayer_push_code = ''; @@ -1248,12 +1243,6 @@ function gtm4wp_fire_additional_datalayer_pushes() { // Reset array so that additional data can be added and this function can be re-run without double running code. $gtm4wp_additional_datalayer_pushes = array(); - - if ( count( $gtm4wp_additional_datalayer_pushes ) > 0 ) { - echo ' -'; - } - } /**