From d65b577bda057b81b2a3b62ed1824e0aac611d77 Mon Sep 17 00:00:00 2001 From: Jorge M Date: Fri, 15 Dec 2023 18:50:46 +0100 Subject: [PATCH] Fix price in purchase event --- src/Google/GlobalSiteTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/GlobalSiteTag.php b/src/Google/GlobalSiteTag.php index 3f36892e92..c3348242c5 100644 --- a/src/Google/GlobalSiteTag.php +++ b/src/Google/GlobalSiteTag.php @@ -302,7 +302,7 @@ public function maybe_display_conversion_and_purchase_event_snippets( string $ad $product_id = $item->get_product_id(); $product_name = $item->get_name(); $quantity = $item->get_quantity(); - $price = $item->get_subtotal(); + $price = $order->get_item_total( $item ); $item_info [] = sprintf( '{ id: "gla_%s",