diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php index f8b12e1..4b1dc60 100644 --- a/woocommerce/loop/add-to-cart.php +++ b/woocommerce/loop/add-to-cart.php @@ -26,7 +26,7 @@ echo apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '%s', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), - esc_attr( $product->id ), + esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_html( $product->add_to_cart_text() ) ),