PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.6
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.6
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 / wait-list / admin / options.php

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

82 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Wait List Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 // Form Settings
14 Merchant_Admin_Options::create( array(
15 'title' => esc_html__( 'Form Settings', 'merchant' ),
16 'module' => Merchant_Wait_List::MODULE_ID,
17 'fields' => array(
18
19 array(
20 'id' => 'display_on_backorders',
21 'type' => 'switcher',
22 'title' => esc_html__( 'Display on backorders?', 'merchant' ),
23 ),
24
25 array(
26 'id' => 'form_title',
27 'type' => 'text',
28 'title' => esc_html__( 'Form title', 'merchant' ),
29 'default' => __( 'New stock on its way! Email when stock available', 'merchant' ),
30 ),
31
32 array(
33 'id' => 'form_email_label',
34 'type' => 'text',
35 'title' => esc_html__( 'Form email label', 'merchant' ),
36 'default' => __( 'Your Email Address', 'merchant' ),
37 ),
38
39 array(
40 'id' => 'form_button_text',
41 'type' => 'text',
42 'title' => esc_html__( 'Form button text', 'merchant' ),
43 'default' => __( 'Notify Me', 'merchant' ),
44 ),
45
46 array(
47 'id' => 'form_success_message',
48 'type' => 'textarea',
49 'title' => esc_html__( 'Form success message', 'merchant' ),
50 'default' => __( 'You have been successfully added to our wait list. As soon as new stock become available, we will notify you via email.', 'merchant' ),
51 'desc' => esc_html__( 'The message that will show after form submission.', 'merchant' ),
52 ),
53 ),
54 ) );
55
56 Merchant_Admin_Options::create( array(
57 'title' => esc_html__( 'Email Settings', 'merchant' ),
58 'module' => Merchant_Wait_List::MODULE_ID,
59 'fields' => array(
60
61 array(
62 'id' => 'email_new_subscriber',
63 'type' => 'textarea',
64 'title' => esc_html__( 'Email new subscribers', 'merchant' ),
65 'default' => __( 'Hello subscriber, Thank you for subscribing to {product}. We will email you once product back in stock.', 'merchant' ),
66 'desc' => esc_html__( 'The message that will be sent to new subscribers.', 'merchant' ),
67 ),
68
69 array(
70 'id' => 'email_update',
71 'type' => 'textarea',
72 'title' => esc_html__( 'Email in stock update', 'merchant' ),
73 'default' => __( 'Hello Subscriber, Thanks for your patience and finally the wait is over! Your Subscribed Product {product} is now back in stock! We only have a limited amount of stock, and this email is not a guarantee you\'ll get one, so hurry to be one of the lucky shoppers who do. Add this product {product} directly to your cart.',
74 'merchant' ),
75 'desc' => esc_html__( 'The message that will be sent to subscribers when product is in stock.', 'merchant' ),
76 ),
77
78 ),
79 ) );
80
81
82