PluginProbe
MakeCommerce for WooCommerce / 4.0.1
MakeCommerce for WooCommerce v4.0.1
4.1.0 4.0.8 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.2 All 96 releases
← All changes | makecommerce/includes/makecommerce.php +3 -22 trunk4.0.1 View file →
@@ -317,14 +317,11 @@
317 317 * @since 3.0.0
318 318 */
319 319 public static function get_sdk_config() {
320 320 $conf = [
321 - "module" => "MakeCommerce",
322 - "module_version" => MAKECOMMERCE_VERSION,
323 - "platform" => "WooCommerce",
324 - "hpos_enabled" => filter_var( get_option( 'woocommerce_custom_orders_table_enabled' ), FILTER_VALIDATE_BOOLEAN ),
325 - "payments_enabled" => filter_var( get_option( 'mc_payments' ), FILTER_VALIDATE_BOOLEAN ),
326 - "shipping_enabled" => filter_var( get_option( 'mc_shipping' ), FILTER_VALIDATE_BOOLEAN )
321 + "module" => "MakeCommerce",
322 + "module_version" => MAKECOMMERCE_VERSION,
323 + "platform" => "WooCommerce",
327 324 ];
328 325
329 326 if (class_exists('WooCommerce')) {
330 327 $conf['platform_version'] = WC()->version;
@@ -330,24 +327,8 @@
330 327 $conf['platform_version'] = WC()->version;
331 328 }
332 329
333 330 return $conf;
334 - }
335 -
336 - /**
337 - * Gets static url based on env
338 - *
339 - * @since 3.0.0
340 - */
341 - public static function get_static_url() {
342 -
343 - $mc_api_type = get_option( 'mc_api_mode', 'live' );
344 -
345 - if ($mc_api_type === 'test') {
346 - return 'https://static.test.maksekeskus.ee/';
347 - } else {
348 - return 'https://static.maksekeskus.ee/';
349 - }
350 331 }
351 332
352 333 /**
353 334 * Enqueues javascript with parameters.