diff --git a/admin/woocommerce-admin-init.php b/admin/woocommerce-admin-init.php index 508b2d2f8d5..c773295c736 100644 --- a/admin/woocommerce-admin-init.php +++ b/admin/woocommerce-admin-init.php @@ -49,6 +49,26 @@ function woocommerce_admin_install_notice() { +
+
+

WooCommerce has been installed – Your ready to start selling :)', 'woocommerce' ); ?>

+ +

+ +

+

+
+
+

' . __( 'Your settings have been saved.', 'woocommerce' ) . '

'; + flush_rewrite_rules( false ); do_action('woocommerce_settings_saved'); - endif; + } + + // Hide WC Link + if (isset($_GET['hide-wc-extensions-message'])) + update_option('hide-wc-extensions-message', 1); // Install/page installer $install_complete = false; - $show_page_installer = false; - - // Hide WC Link - if (isset($_GET['hide-wc-extensions-message'])) update_option('hide-wc-extensions-message', 1); // Add pages button - if (isset($_GET['install_woocommerce_pages']) && $_GET['install_woocommerce_pages']) : + if (isset($_GET['install_woocommerce_pages']) && $_GET['install_woocommerce_pages']) { require_once( 'woocommerce-admin-install.php' ); woocommerce_create_pages(); @@ -1055,27 +1060,15 @@ function woocommerce_settings() { $install_complete = true; // Skip button - elseif (isset($_GET['skip_install_woocommerce_pages']) && $_GET['skip_install_woocommerce_pages']) : + } elseif (isset($_GET['skip_install_woocommerce_pages']) && $_GET['skip_install_woocommerce_pages']) { update_option('skip_install_woocommerce_pages', 1); $install_complete = true; - // If we have just activated WooCommerce... - elseif (get_option('woocommerce_installed')==1) : - - flush_rewrite_rules( false ); - - if (woocommerce_get_page_id('shop')>0) : - $install_complete = true; - endif; - - endif; + } - if ($install_complete) : - - update_option('woocommerce_installed', 0); - - ?> + if ($install_complete) { + ?>

Congratulations! – WooCommerce has been installed and setup. Enjoy :)', 'woocommerce' ); ?>

@@ -1085,9 +1078,12 @@ function woocommerce_settings() {
diff --git a/assets/css/wc-activation.css b/assets/css/wc-activation.css index 52887db8adc..b984be881c0 100644 --- a/assets/css/wc-activation.css +++ b/assets/css/wc-activation.css @@ -70,7 +70,7 @@ outline: none; opacity: 1; } -.woocommerce-message p a.skip { +.woocommerce-message p a.skip, .woocommerce-message p a.docs { opacity: 0.5; } .woocommerce-message .twitter-share-button {