# merchant/2.3.2/inc/modules/address-autocomplete/admin/options.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 2.3.2. 50 lines.

- Page: https://pluginprobe.com/plugins/merchant/2.3.2/code/inc/modules/address-autocomplete/admin/options.php
- Raw: https://pluginprobe.com/plugins/merchant/2.3.2/raw/inc/modules/address-autocomplete/admin/options.php
- Modified: 2026-09-17T17:48:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/merchant/2.3.2/code/inc/modules/address-autocomplete/admin/options.php#L10-L20`.

```php
<?php

/**
 * Add To Cart Text — Option group definitions.
 *
 * Pure data file. Returns the option groups array
 * consumed by init_option_groups().
 *
 * @package Merchant
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

$before_fields = array();
if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() && ! class_exists( 'WC_Address_Provider' ) ) {
	$before_fields = array(
		'type'    => '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 <a href="%1$s" target="_blank">this documentation</a> to learn more.', 'merchant' ),
			'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
		),
	);
}
// Settings

return array(
	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: &region=us&language=en.', 'merchant' ),
		),
	),
),
);

```
