PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.9.0
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.9.0
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 / real-time-search / admin / options.php

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

106 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Merchant - Real Time Search
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly
8 }
9
10 /**
11 * Settings
12 */
13 Merchant_Admin_Options::create( array(
14 'title' => esc_html__( 'Settings', 'merchant' ),
15 'module' => 'real-time-search',
16 'fields' => array(
17
18 array(
19 'id' => 'results_amounth_per_search',
20 'type' => 'range',
21 'title' => esc_html__( 'Results amount per search', 'merchant' ),
22 'desc' => esc_html__( 'Control the maximum amount of products to show in the search results.', 'merchant' ),
23 'min' => 1,
24 'max' => 100,
25 'step' => 1,
26 'default' => 5,
27 ),
28
29 array(
30 'id' => 'results_description',
31 'type' => 'select',
32 'title' => esc_html__( 'Results description', 'merchant' ),
33 'options' => array(
34 'product-post-content' => esc_html__( 'Product Description', 'merchant' ),
35 'product-short-description' => esc_html__( 'Product short description', 'merchant' ),
36 ),
37 'default' => 'product-short-description',
38 ),
39
40 array(
41 'id' => 'results_description_length',
42 'type' => 'range',
43 'title' => esc_html__( 'Results description length', 'merchant' ),
44 'desc' => esc_html__( 'The number of words to show in the description of the results.', 'merchant' ),
45 'min' => 1,
46 'max' => 100,
47 'step' => 1,
48 'default' => 10,
49 ),
50
51 array(
52 'id' => 'results_order_by',
53 'type' => 'select',
54 'title' => esc_html__( 'Results order by', 'merchant' ),
55 'options' => array(
56 'none' => esc_html__( 'None', 'merchant' ),
57 'title' => esc_html__( 'Product name', 'merchant' ),
58 'date' => esc_html__( 'Published date', 'merchant' ),
59 'modified' => esc_html__( 'Modified date', 'merchant' ),
60 'rand' => esc_html__( 'Random', 'merchant' ),
61 'price' => esc_html__( 'Product price', 'merchant' ),
62 ),
63 'default' => 'title',
64 ),
65
66 array(
67 'id' => 'results_order',
68 'type' => 'select',
69 'title' => esc_html__( 'Results order', 'merchant' ),
70 'options' => array(
71 'asc' => esc_html__( 'Ascendant', 'merchant' ),
72 'desc' => esc_html__( 'Descendant', 'merchant' ),
73 ),
74 'default' => 'asc',
75 ),
76
77 array(
78 'id' => 'results_box_width',
79 'type' => 'range',
80 'title' => esc_html__( 'Results box width', 'merchant' ),
81 'min' => 1,
82 'max' => 1000,
83 'step' => 1,
84 'default' => 500,
85 'unit' => 'px',
86 ),
87
88 array(
89 'id' => 'display_categories',
90 'type' => 'checkbox',
91 'label' => esc_html__( 'Display categories', 'merchant' ),
92 'desc' => esc_html__( 'Display product categories in the results if the searched term matches with category name.', 'merchant' ),
93 'default' => false,
94 ),
95
96 array(
97 'id' => 'enable_search_by_sku',
98 'type' => 'checkbox',
99 'label' => esc_html__( 'Enable search by SKU', 'merchant' ),
100 'desc' => esc_html__( 'Return search results based on either product name or SKU.', 'merchant' ),
101 'default' => false,
102 ),
103
104 ),
105 ) );
106