add_action( 'woocommerce_thankyou', 'stcc_google_ads_conversion_tracking', 10, 1 ); function stcc_google_ads_conversion_tracking( $order_id ) { if ( ! $order_id ) return; // Get the WooCommerce order object $order = wc_get_order( $order_id ); // Get the order subtotal or total (excluding shipping/tax if preferred, get_total includes everything) $order_total = $order->get_total(); $order_currency = $order->get_currency(); $order_number = $order->get_order_number(); ?> .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) *{background-image:none !important;} @media screen and (max-height: 1024px) { .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload) *{background-image:none !important;} } @media screen and (max-height: 640px) { .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) *{background-image:none !important;} }
Skip to content