From 64dfed02de4073d3e8f29c4cac8769d17fdd9680 Mon Sep 17 00:00:00 2001 From: Paul Kilmurray Date: Sun, 23 Apr 2023 23:16:14 +0100 Subject: [PATCH] Add default customer to store data --- includes/API/Stores.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/API/Stores.php b/includes/API/Stores.php index 8c8ad49..7265e8b 100644 --- a/includes/API/Stores.php +++ b/includes/API/Stores.php @@ -44,6 +44,11 @@ public function get_store(): array { 'locale' => get_locale(), ), array( + /** + * Get POS Settings + */ + 'default_customer' => woocommerce_pos_get_settings( 'general', 'default_customer' ), + 'default_customer_is_cashier' => woocommerce_pos_get_settings( 'general', 'default_customer_is_cashier' ), /** * Get the General settings from WooCommerce */