'warning', 'content' => sprintf( /* Translators: 1. docs link */ __( 'Your checkout page uses WooCommerce blocks. Address Autocomplete requires WooCommerce 9.9 or later for blocks checkout support. Please update WooCommerce or switch to the classic checkout shortcode. Check this documentation to learn more.', 'merchant' ), 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/' ), ); } // Settings Merchant_Admin_Options::create( array( 'module' => Merchant_Address_Autocomplete::MODULE_ID, 'title' => esc_html__( 'Settings', 'merchant' ), 'fields' => array( $before_fields, array( 'id' => 'api_key', 'type' => 'text', 'title' => esc_html__( 'API Key', 'merchant' ), 'desc' => esc_html__( 'Add Google places API Key', 'merchant' ), ), array( 'id' => 'url_params', 'type' => 'text', 'title' => esc_html__( 'Optional API URL Parameters', 'merchant' ), 'desc' => esc_html__( 'Add extra parameters to the API URL. For example: ®ion=us&language=en.', 'merchant' ), ), ), ) );