AdditionalPayments.php
1 year ago
Appearance.php
2 years ago
CustomizeStore.php
5 months ago
ExperimentalShippingRecommendation.php
5 months ago
ExtendStore.php
1 year ago
GetMobileApp.php
3 years ago
LaunchYourStore.php
2 years ago
Marketing.php
7 months ago
Payments.php
10 months ago
Products.php
1 month ago
ReviewShippingOptions.php
3 years ago
Shipping.php
3 months ago
StoreCreation.php
4 years ago
StoreDetails.php
3 years ago
Tax.php
1 year ago
TourInAppMarketplace.php
2 years ago
WooCommercePayments.php
5 months ago
ReviewShippingOptions.php
74 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks; |
| 4 | |
| 5 | use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task; |
| 6 | |
| 7 | /** |
| 8 | * Review Shipping Options Task |
| 9 | */ |
| 10 | class ReviewShippingOptions extends Task { |
| 11 | /** |
| 12 | * ID. |
| 13 | * |
| 14 | * @return string |
| 15 | */ |
| 16 | public function get_id() { |
| 17 | return 'review-shipping'; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Title. |
| 22 | * |
| 23 | * @return string |
| 24 | */ |
| 25 | public function get_title() { |
| 26 | return __( 'Review shipping options', 'woocommerce' ); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Content. |
| 31 | * |
| 32 | * @return string |
| 33 | */ |
| 34 | public function get_content() { |
| 35 | return ''; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Time. |
| 40 | * |
| 41 | * @return string |
| 42 | */ |
| 43 | public function get_time() { |
| 44 | return ''; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Task completion. |
| 49 | * |
| 50 | * @return bool |
| 51 | */ |
| 52 | public function is_complete() { |
| 53 | return get_option( 'woocommerce_admin_reviewed_default_shipping_zones' ) === 'yes'; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Task visibility. |
| 58 | * |
| 59 | * @return bool |
| 60 | */ |
| 61 | public function can_view() { |
| 62 | return get_option( 'woocommerce_admin_created_default_shipping_zones' ) === 'yes'; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Action URL. |
| 67 | * |
| 68 | * @return string |
| 69 | */ |
| 70 | public function get_action_url() { |
| 71 | return admin_url( 'admin.php?page=wc-settings&tab=shipping' ); |
| 72 | } |
| 73 | } |
| 74 |