get_wizard_config() ); } /** * Get the wizard configuration * * @return array */ public function get_wizard_config() { return [ 'plugin_slug' => 'affiliates-for-woocommerce', 'plugin_file' => 'affiliates-for-woocommerce/functions.php', 'dashboard_page' => 'ddwcaf-dashboard', 'redirect_url' => admin_url( 'admin.php?page=ddwcaf-dashboard' ), 'brand' => [ 'name' => esc_html__( 'Affiliates', 'affiliates-for-woocommerce' ), 'description' => esc_html__( "Welcome to Affiliates for WooCommerce! Let's quickly set up your affiliate network so you can start growing your sales.", 'affiliates-for-woocommerce' ), 'logo' => '', ], 'steps' => [ 'welcome' => [ 'label' => esc_html__( 'Welcome', 'affiliates-for-woocommerce' ), 'view_callback' => [ $this, 'welcome_view' ], ], 'general' => [ 'label' => esc_html__( 'General Settings', 'affiliates-for-woocommerce' ), 'title' => esc_html__( 'Basic Configuration', 'affiliates-for-woocommerce' ), 'description' => esc_html__( 'Start by enabling the affiliate system and defining your base settings.', 'affiliates-for-woocommerce' ), 'view_callback' => [ $this, 'general_settings_view' ], 'save_callback' => [ $this, 'save_fields' ], ], 'referrals' => [ 'label' => esc_html__( 'Referral Settings', 'affiliates-for-woocommerce' ), 'title' => esc_html__( 'Referral Tracking', 'affiliates-for-woocommerce' ), 'description' => esc_html__( 'Define how referrals are tracked and how long the cookies should last.', 'affiliates-for-woocommerce' ), 'view_callback' => [ $this, 'referral_settings_view' ], 'save_callback' => [ $this, 'save_fields' ], ], 'commissions' => [ 'label' => esc_html__( 'Commissions', 'affiliates-for-woocommerce' ), 'title' => esc_html__( 'Commission Rates', 'affiliates-for-woocommerce' ), 'description' => esc_html__( 'Set the default commission structure for your affiliates.', 'affiliates-for-woocommerce' ), 'view_callback' => [ $this, 'commissions_settings_view' ], 'save_callback' => [ $this, 'save_fields' ], ], 'ready' => [ 'label' => esc_html__( 'Ready!', 'affiliates-for-woocommerce' ), 'ready_title' => esc_html__( 'Congratulations! Your affiliate network is ready.', 'affiliates-for-woocommerce' ), 'ready_description' => esc_html__( 'You can always adjust these settings and configure more advanced rules from the plugin dashboard.', 'affiliates-for-woocommerce' ), ], ], ]; } /** * Welcome view * * @return void */ public function welcome_view() { ?>