暫無描述

html-notice-legacy-shipping.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Admin View: Notice - Legacy Shipping.
  4. *
  5. * @package WooCommerce\Admin\Notices
  6. */
  7. if ( ! defined( 'ABSPATH' ) ) {
  8. exit;
  9. }
  10. ?>
  11. <div id="message" class="updated woocommerce-message">
  12. <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'legacy_shipping' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>">
  13. <?php esc_html_e( 'Dismiss', 'woocommerce' ); ?>
  14. </a>
  15. <p class="main">
  16. <strong><?php esc_html_e( 'New:', 'woocommerce' ); ?> <?php esc_html_e( 'Shipping zones', 'woocommerce' ); ?></strong> &#8211; <?php esc_html_e( 'a group of regions that can be assigned different shipping methods and rates.', 'woocommerce' ); ?>
  17. </p>
  18. <p>
  19. <?php esc_html_e( 'Legacy shipping methods (flat rate, international flat rate, local pickup and delivery, and free shipping) are deprecated but will continue to work as normal for now. <b><em>They will be removed in future versions of WooCommerce</em></b>. We recommend disabling these and setting up new rates within shipping zones as soon as possible.', 'woocommerce' ); ?>
  20. </p>
  21. <p class="submit">
  22. <?php if ( empty( $_GET['page'] ) || empty( $_GET['tab'] ) || 'wc-settings' !== $_GET['page'] || 'shipping' !== $_GET['tab'] ) : ?>
  23. <a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping' ) ); ?>">
  24. <?php esc_html_e( 'Setup shipping zones', 'woocommerce' ); ?>
  25. </a>
  26. <?php endif; ?>
  27. <a class="button-secondary" href="https://docs.woocommerce.com/document/setting-up-shipping-zones/">
  28. <?php esc_html_e( 'Learn more about shipping zones', 'woocommerce' ); ?>
  29. </a>
  30. </p>
  31. </div>