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' ), ); ?>
General > Pages */ esc_html__( 'Choose different pages any time under %s.', 'boxcart' ), $later_link( $settings_url . '&tab=general#section-pages', __( 'Settings > General > Page Setup', 'boxcart' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); ?>
%s', 'boxcart' ), $locations_label ) ); $closing_link = $later_link( $settings_url . '&tab=collection#section-scheduling', __( 'Settings > Collection', 'boxcart' ) ); if ( $is_pro ) { printf( /* translators: 1: link to the Locations screen, 2: link to Settings > Collection */ esc_html__( 'Later, you can give each day its own times, add more locations and close for holidays under %1$s, and choose when orders close under %2$s.', 'boxcart' ), $locations_link, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. $closing_link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } else { printf( /* translators: 1: link to the Pickup Location screen, 2: link to Settings > Collection */ esc_html__( 'Later, you can give each day its own times under %1$s, and choose when orders close under %2$s.', 'boxcart' ), $locations_link, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. $closing_link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } ?>
Products', 'boxcart' ) ); if ( $is_pro ) { printf( /* translators: %s: link to the Products screen */ esc_html__( 'Add the rest of your products under %s, or import them from a spreadsheet. There you can also add descriptions, stock, and more than one way of selling a product (say, each and by the kg).', 'boxcart' ), $products_link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } else { printf( /* translators: %s: link to the Products screen */ esc_html__( 'Add the rest of your products under %s. There you can also add descriptions, stock, and more than one way of selling a product (say, each and by the kg).', 'boxcart' ), $products_link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } ?>
Payments, 2: link to Settings > Emails, 3: link to Settings > General > Tax */ esc_html__( 'Change these any time: %1$s, %2$s (including each email\'s wording and your logo) and %3$s.', 'boxcart' ), $later_link( $settings_url . '&tab=payments', __( 'Settings > Payments', 'boxcart' ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. $later_link( $settings_url . '&tab=emails', __( 'Settings > Emails', 'boxcart' ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. $later_link( $settings_url . '&tab=general#section-tax', __( 'Settings > General > Tax', 'boxcart' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } else { printf( /* translators: %s: link to Settings > Emails */ esc_html__( 'Change these any time under %s, including each email\'s wording and your logo.', 'boxcart' ), $later_link( $settings_url . '&tab=emails', __( 'Settings > Emails', 'boxcart' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in $later_link. ); } ?>