Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
puntope committed Sep 11, 2023
1 parent 8ef5d19 commit da26832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-google-gtag-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static function listing_click( $product, $position ) {

wc_enqueue_js(
"
$( '.product.post-" . esc_js( $product->get_id() ) . " a , .product.post-" . esc_js( $product->get_id() ) . " button' ).on('click', function() {
$( '.product.post-" . esc_js( $product->get_id() ) . ' a , .product.post-' . esc_js( $product->get_id() ) . " button' ).on('click', function() {
if ( true === $(this).hasClass( 'add_to_cart_button' ) ) {
$add_to_cart_event_code
} else {
Expand Down

0 comments on commit da26832

Please sign in to comment.