PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / modules / address-autocomplete / admin / options.php

options.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.3.2, at inc/modules/address-autocomplete/admin/options.php

50 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Add To Cart Text — Option group definitions.
5 *
6 * Pure data file. Returns the option groups array
7 * consumed by init_option_groups().
8 *
9 * @package Merchant
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly
14 }
15
16 $before_fields = array();
17 if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() && ! class_exists( 'WC_Address_Provider' ) ) {
18 $before_fields = array(
19 'type' => 'warning',
20 'content' => sprintf(
21 /* Translators: 1. docs link */
22 __( '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' ),
23 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
24 ),
25 );
26 }
27 // Settings
28
29 return array(
30 array(
31 'module' => Merchant_Address_Autocomplete::MODULE_ID,
32 'title' => esc_html__( 'Settings', 'merchant' ),
33 'fields' => array(
34 $before_fields,
35 array(
36 'id' => 'api_key',
37 'type' => 'text',
38 'title' => esc_html__( 'API Key', 'merchant' ),
39 'desc' => esc_html__( 'Add Google places API Key', 'merchant' ),
40 ),
41 array(
42 'id' => 'url_params',
43 'type' => 'text',
44 'title' => esc_html__( 'Optional API URL Parameters', 'merchant' ),
45 'desc' => esc_html__( 'Add extra parameters to the API URL. For example: &region=us&language=en.', 'merchant' ),
46 ),
47 ),
48 ),
49 );
50