array( 'label' => __( 'Your shop pages', 'boxcart' ), 'done' => $setup_status['pages_done'], ), 'location' => array( 'label' => __( 'Collection', 'boxcart' ), 'done' => $setup_status['has_location'], ), 'product' => array( 'label' => __( 'Your first product', 'boxcart' ), 'done' => $setup_status['has_product'], ), 'touches' => array( 'label' => __( 'Finishing touches', 'boxcart' ), 'done' => $touches_done, ), 'ready' => array( 'label' => __( 'Ready to go', 'boxcart' ), 'done' => false, ), ); // Open at the first step still to do. $start_step = 'ready'; foreach ( $steps as $key => $step ) { if ( 'ready' !== $key && ! $step['done'] ) { $start_step = $key; break; } } // Where things are changed later (the menu item is "Pickup Location" on // the free build, "Locations" on Pro). $locations_label = apply_filters( 'boxcart_locations_menu_label', __( 'Pickup Location', 'boxcart' ) ); $is_pro = function_exists( 'boxcart_is_premium' ) && boxcart_is_premium(); $settings_url = admin_url( 'admin.php?page=boxcart-settings' ); $later_link = function ( $url, $text ) { return '' . esc_html( $text ) . ''; }; $day_names = array( 1 => __( 'Mon', 'boxcart' ), 2 => __( 'Tue', 'boxcart' ), 3 => __( 'Wed', 'boxcart' ), 4 => __( 'Thu', 'boxcart' ), 5 => __( 'Fri', 'boxcart' ), 6 => __( 'Sat', 'boxcart' ), 0 => __( 'Sun', 'boxcart' ), ); ?>

    $step ) : ++$step_number; ?>