From dfdf13cf6ffab2c8acf20f855d56c5e3b0c0c52e Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 9 Jul 2024 00:19:57 -0400 Subject: [PATCH] Initialise $is_new to prevent warning on live site --- wp-content/themes/mont58-coffee/template-order-label.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-content/themes/mont58-coffee/template-order-label.php b/wp-content/themes/mont58-coffee/template-order-label.php index c9b1f7b..54686ba 100644 --- a/wp-content/themes/mont58-coffee/template-order-label.php +++ b/wp-content/themes/mont58-coffee/template-order-label.php @@ -132,6 +132,8 @@ if(!is_user_logged_in()){ $j = 0; + $is_new = false; + foreach ($items as $item) { // checking if product is a coffee $product_id = $item->get_product_id();