PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.9.1
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.9.1
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 1.9.1, at inc/modules/address-autocomplete/admin/options.php

43 lines 1.4 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 Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 $before_fields = array();
14 if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() ) {
15 $before_fields = array(
16 'type' => 'warning',
17 'content' => sprintf(
18 /* Translators: 1. docs link */
19 __( 'Your checkout page is being rendered through the new WooCommerce checkout block. You must edit the checkout page to use the classic checkout shortcode instead. Check <a href="%1$s" target="_blank">this documentation</a> to learn more.', 'merchant' ),
20 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
21 ),
22 );
23 }
24 // Settings
25 Merchant_Admin_Options::create( array(
26 'module' => Merchant_Address_Autocomplete::MODULE_ID,
27 'title' => esc_html__( 'Settings', 'merchant' ),
28 'fields' => array(
29 $before_fields,
30 array(
31 'id' => 'api_key',
32 'type' => 'text',
33 'title' => esc_html__( 'API Key', 'merchant' ),
34 'desc' => esc_html__( 'Add Google places API Key', 'merchant' ),
35 ),
36 array(
37 'id' => 'url_params',
38 'type' => 'text',
39 'title' => esc_html__( 'Optional API URL Parameters', 'merchant' ),
40 'desc' => esc_html__( 'Add extra parameters to the API URL. For example: &region=us&language=en.', 'merchant' ),
41 ),
42 ),
43 ) );