From 3b83905603d44b1a08f8b2b36a605808ce686ad6 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 02 Jun 2026 00:46:48 +0000
Subject: [PATCH] =double checking schema outputs for legacytattooremoval
---
inc/integrations/Square.php | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/inc/integrations/Square.php b/inc/integrations/Square.php
index 85032f3..fda4da4 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 [];
}
@@ -1660,7 +1660,7 @@
// Set user role (assuming you have a customer role defined)
$user = new \WP_User($user_id);
- $user->set_role(BASE.'foodie'); // Or whatever role from JVB_USER
+ $user->set_role(BASE.'foodie'); // Or whatever role
// Generate password reset key
$reset_key = get_password_reset_key($user);
@@ -1896,7 +1896,6 @@
}
$meta->setAll($updates);
- $meta->save();
// Trigger notification to customer if order is ready
if ($state === 'PREPARED') {
@@ -2006,7 +2005,7 @@
wp_enqueue_script('jvb-square-checkout');
wp_localize_script('jvb-square-checkout', 'squareConfig', [
- 'isOpen' => jvbIsOpen(),
+//TODO 'isOpen' => jvbIsOpen(),
'application_id' => $this->credentials['client_id'] ?? '',
'location_id' => $this->locationId,
'environment' => $this->environment,
@@ -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