PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | admin-core/inc/onboarding-core.php +66 -30 3.1.0 → 3.3.0 View file →
@@ -310,32 +310,55 @@
310 310 $vars = array();
311 311
312 312 $plugins = array(
313 313 array(
314 - 'name' => 'WooCommerce',
315 - 'slug' => 'woocommerce',
316 - 'status' => $this->get_plugin_status( 'woocommerce/woocommerce.php' ),
314 + 'name' => 'WooCommerce',
315 + 'slug' => 'woocommerce',
316 + 'status' => $this->get_plugin_status( 'woocommerce/woocommerce.php' ),
317 + 'required' => true,
318 + 'description' => __( 'Powers your store — products, cart, and checkout. CartFlows requires it.', 'cartflows' ),
319 + 'logo' => 'https://ps.w.org/woocommerce/assets/icon-128x128.png',
317 320 ),
318 321 array(
319 - 'name' => 'Cart Abandonment',
320 - 'slug' => 'woo-cart-abandonment-recovery',
321 - 'status' => $this->get_plugin_status( 'woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php' ),
322 + 'name' => 'Cart Abandonment Recovery',
323 + 'slug' => 'woo-cart-abandonment-recovery',
324 + 'status' => $this->get_plugin_status( 'woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php' ),
325 + 'required' => false,
326 + 'description' => __( 'Recovers lost sales with automated follow-up emails.', 'cartflows' ),
327 + 'logo' => 'https://ps.w.org/woo-cart-abandonment-recovery/assets/icon-128x128.gif',
322 328 ),
323 329 array(
324 - 'name' => 'Modern cart',
325 - 'slug' => 'modern-cart',
326 - 'status' => $this->get_plugin_status( 'modern-cart/modern-cart.php' ),
330 + 'name' => 'Modern Cart',
331 + 'slug' => 'modern-cart',
332 + 'status' => $this->get_plugin_status( 'modern-cart/modern-cart.php' ),
333 + 'required' => false,
334 + 'description' => __( 'Adds a fast slide-in cart to your store.', 'cartflows' ),
335 + 'logo' => 'https://ps.w.org/modern-cart/assets/icon.svg',
327 336 ),
328 337 array(
329 - 'name' => 'WooCommerce Payments',
330 - 'slug' => 'woocommerce-payments',
331 - 'status' => $this->get_plugin_status( 'woocommerce-payments/woocommerce-payments.php' ),
338 + 'name' => 'Power Coupons',
339 + 'slug' => 'power-coupons',
340 + 'status' => $this->get_plugin_status( 'power-coupons/power-coupons.php' ),
341 + 'required' => false,
342 + 'description' => __( 'Creates advanced discount coupons and smart offers.', 'cartflows' ),
343 + 'logo' => 'https://ps.w.org/power-coupons/assets/icon.svg',
332 344 ),
333 345 array(
334 - 'name' => 'Spectra',
335 - 'slug' => 'ultimate-addons-for-gutenberg',
336 - 'status' => $this->get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ),
346 + 'name' => 'WooCommerce Payments',
347 + 'slug' => 'woocommerce-payments',
348 + 'status' => $this->get_plugin_status( 'woocommerce-payments/woocommerce-payments.php' ),
349 + 'required' => false,
350 + 'description' => __( 'Accepts credit cards and other payment methods on your checkout.', 'cartflows' ),
351 + 'logo' => 'https://ps.w.org/woocommerce-payments/assets/icon-128x128.png',
337 352 ),
353 + array(
354 + 'name' => 'Spectra',
355 + 'slug' => 'ultimate-addons-for-gutenberg',
356 + 'status' => $this->get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ),
357 + 'required' => false,
358 + 'description' => __( 'Page builder blocks used by the CartFlows checkout templates.', 'cartflows' ),
359 + 'logo' => 'https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-128x128.gif',
360 + ),
338 361 );
339 362
340 363 $installed_plugins = get_plugins();
341 364
@@ -381,33 +404,46 @@
381 404
382 405 $current_user = wp_get_current_user();
383 406
384 407 $vars = array(
385 - 'current_user_name' => ! empty( $current_user->user_firstname ) ? $current_user->user_firstname : $current_user->display_name,
386 - 'current_user_email' => ! empty( $current_user->user_email ) ? $current_user->user_email : '',
387 - 'plugins' => $plugins,
388 - 'page_builders' => $page_builders,
389 - 'active_page_builder' => OnboardingHelper::get_active_supported_builder( $page_builders ),
390 - 'ajax_url' => admin_url( 'admin-ajax.php' ),
391 - 'admin_url' => admin_url( 'admin.php' ),
392 - 'admin_base_url' => admin_url(),
393 - 'admin_index_url' => admin_url( 'index.php' ),
394 - 'default_page_builder' => \Cartflows_Helper::get_common_settings()['default_page_builder'],
395 - 'site_logo' => $this->get_site_logo_url(),
396 - 'template_import_errors' => array(
408 + 'current_user_name' => ! empty( $current_user->user_firstname ) ? $current_user->user_firstname : '',
409 + 'current_user_email' => ! empty( $current_user->user_email ) ? $current_user->user_email : '',
410 + 'plugins' => $plugins,
411 + 'page_builders' => $page_builders,
412 + 'active_page_builder' => OnboardingHelper::get_active_supported_builder( $page_builders ),
413 + 'ajax_url' => admin_url( 'admin-ajax.php' ),
414 + 'admin_url' => admin_url( 'admin.php' ),
415 + 'admin_base_url' => admin_url(),
416 + 'admin_index_url' => admin_url( 'index.php' ),
417 + 'default_page_builder' => \Cartflows_Helper::get_common_settings()['default_page_builder'],
418 + 'site_logo' => $this->get_site_logo_url(),
419 + 'templates_url' => CARTFLOWS_TEMPLATES_URL,
420 + 'template_import_errors' => array(
397 421 'api_errors' => array(
398 422 'title' => __( 'Oops!! Unexpected error occoured', 'cartflows' ),
399 423 'msg' => __( 'Import template API call failed. Please reload the page and try again!', 'cartflows' ),
400 424 ),
401 425 ),
402 - 'is_pro' => _is_cartflows_pro(),
403 - 'cf_pro_type' => defined( 'CARTFLOWS_PRO_PLUGIN_TYPE' ) ? CARTFLOWS_PRO_PLUGIN_TYPE : 'free',
404 - 'woocommerce_status' => $this->get_plugin_status( 'woocommerce/woocommerce.php' ),
426 + 'is_store_checkout_imported' => 'yes' === get_option( '_cartflows_wizard_store_checkout_set', 'no' ),
427 + 'is_pro' => _is_cartflows_pro(),
428 + 'cf_pro_type' => defined( 'CARTFLOWS_PRO_PLUGIN_TYPE' ) ? CARTFLOWS_PRO_PLUGIN_TYPE : 'free',
429 + 'woocommerce_status' => $this->get_plugin_status( 'woocommerce/woocommerce.php' ),
405 430 );
406 431
407 432 $vars = apply_filters( 'cartflows_onboarding_localized_vars', $vars );
408 433
409 434 wp_localize_script( 'wcf-onboarding-app', 'cartflows_onboarding', $vars );
435 +
436 + // Satisfies the @Styles/common contract — UTM helpers read from cartflows_admin.
437 + wp_localize_script(
438 + 'wcf-onboarding-app',
439 + 'cartflows_admin',
440 + array(
441 + 'utm_defaults' => \Cartflows_Helper::get_utm_defaults(),
442 + 'cf_domain_url' => CARTFLOWS_DOMAIN_URL,
443 + 'cf_upgrade_to_pro_url' => \Cartflows_Helper::get_upgrade_to_pro_link(),
444 + )
445 + );
410 446 }
411 447
412 448 /**
413 449 * Get customizer/site logo URL.