diff --git a/includes/Admin/StandaloneAdmin.php b/includes/Admin/StandaloneAdmin.php index 5050b97..88f3091 100644 --- a/includes/Admin/StandaloneAdmin.php +++ b/includes/Admin/StandaloneAdmin.php @@ -72,6 +72,9 @@ class StandaloneAdmin { ]; } + // Get WooCommerce store settings + $store_settings = self::get_store_settings(); + // Get asset URLs $plugin_url = plugins_url( '', dirname( dirname( __FILE__ ) ) ); $asset_url = $plugin_url . '/admin-spa/dist'; @@ -117,6 +120,9 @@ class StandaloneAdmin { nonce: , isDev: }; + + // WooCommerce store settings (currency, formatting, etc.) + window.WNW_STORE = ; @@ -128,4 +134,28 @@ class StandaloneAdmin { $currency, + 'currency_symbol' => $currency_sym, + 'decimals' => (int) $decimals, + 'thousand_sep' => (string) $thousand_sep, + 'decimal_sep' => (string) $decimal_sep, + 'currency_pos' => (string) $currency_pos, + ]; + } }