From 275c0d74cd68677622a5431505c5c870c473063d Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 29 Mar 2026 21:40:15 +0000
Subject: [PATCH] =Seems to be working, huzzah! Added some changes for on-this-page nav

---
 inc/integrations/Square.php |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/inc/integrations/Square.php b/inc/integrations/Square.php
index 85032f3..cd200a6 100644
--- a/inc/integrations/Square.php
+++ b/inc/integrations/Square.php
@@ -1385,7 +1385,7 @@
 	 */
 	protected function getVariationMapping(string $post_type): array
 	{
-		$registrar = Registrar::getInstance($post_type));
+		$registrar = Registrar::getInstance($post_type);
 		if (!$registrar) {
 			return [];
 		}
@@ -1459,7 +1459,7 @@
 	 */
 	protected function getFieldMapping(string $post_type): array
 	{
-		$registrar = Registrar::getInstance($post_type));
+		$registrar = Registrar::getInstance($post_type);
 		if (!$registrar) {
 			return [];
 		}
@@ -1896,7 +1896,6 @@
 			}
 
 			$meta->setAll($updates);
-			$meta->save();
 
 			// Trigger notification to customer if order is ready
 			if ($state === 'PREPARED') {
@@ -2353,7 +2352,6 @@
 
 		// Save all values at once
 		$meta->setAll($values_to_save);
-		$meta->save();
 	}
 
 	/**
@@ -3495,7 +3493,6 @@
 			'created_at' => current_time('mysql'),
 			'updated_at' => current_time('mysql')
 		]);
-		$meta->save();
 
 		// Index by Square order ID for quick webhook lookups
 		update_option(BASE . 'square_order_map_' . $order_data['square_order_id'], $order_post_id);

--
Gitblit v1.10.0