PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.4.2
Subscriptions for WooCommerce with Stripe Recurring Payments v1.4.2
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / includes / Admin / views / settings.php

settings.php in Subscriptions for WooCommerce with Stripe Recurring Payments 1.4.2, at includes/Admin/views/settings.php

171 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="woocommerce">
2 <h1 class="wp-heading-inline"><?php esc_html_e( 'Subscription Settings', 'wp_subscription' ); ?></h1>
3 <hr class="wp-header-end">
4 <form method="post" action="options.php" class="woocommerce-settings">
5 <div class="woocommerce-card">
6 <?php settings_fields( 'wp_subscription_settings' ); ?>
7 <?php do_settings_sections( 'wp_subscription_settings' ); ?>
8 <table class="form-table">
9 <tbody>
10 <tr>
11 <th scope="row">
12 <label for="wp_subscription_renewal_process">
13 <?php esc_html_e( 'Renewal Process', 'wp_subscription' ); ?>
14 </label>
15 </th>
16 <td>
17 <select name="wp_subscription_renewal_process" id="wp_subscription_renewal_process" class="wc-enhanced-select">
18 <option value="auto" <?php selected( get_option( 'wp_subscription_renewal_process', 'auto' ), 'auto' ); ?>><?php esc_html_e( 'Automatic', 'wp_subscription' ); ?></option>
19 <option value="manual" <?php selected( get_option( 'wp_subscription_renewal_process', 'auto' ), 'manual' ); ?>><?php esc_html_e( 'Manual', 'wp_subscription' ); ?></option>
20 </select>
21 <p class="description"><?php esc_html_e( 'How renewal process will be done after Subscription Expired.', 'wp_subscription' ); ?></p>
22 </td>
23 </tr>
24 <tr>
25 <th scope="row">
26 <label for="wp_subscription_manual_renew_cart_notice">
27 <?php esc_html_e( 'Renewal Cart Notice', 'wp_subscription' ); ?>
28 </label>
29 </th>
30 <td>
31 <input id="wp_subscription_manual_renew_cart_notice" name="wp_subscription_manual_renew_cart_notice" class="large-text" value="<?php echo esc_attr( get_option( 'wp_subscription_manual_renew_cart_notice' ) ); ?>" type="text"/>
32 <p class="description"><?php esc_html_e( 'Display Notice when Renewal Subscription product add to cart. Only available for Manual Renewal Process.', 'wp_subscription' ); ?></p>
33 </td>
34 </tr>
35 <tr>
36 <th scope="row">
37 <label for="wp_subscription_active_role">
38 <?php esc_html_e( 'Subscriber Default Role', 'wp_subscription' ); ?>
39 </label>
40 </th>
41 <td>
42 <select name="wp_subscription_active_role" id="wp_subscription_active_role" class="wc-enhanced-select">
43 <?php wp_dropdown_roles( get_option( 'wp_subscription_active_role', 'subscriber' ) ); ?>
44 </select>
45 <p class="description"><?php esc_html_e( 'When a subscription is activated, either manually or after a successful purchase, new users will be assigned this role.', 'wp_subscription' ); ?></p>
46 </td>
47 </tr>
48 <tr>
49 <th scope="row">
50 <label for="wp_subscription_unactive_role">
51 <?php esc_html_e( 'Subscriber Inactive Role', 'wp_subscription' ); ?>
52 </label>
53 </th>
54 <td>
55 <select name="wp_subscription_unactive_role" id="wp_subscription_unactive_role" class="wc-enhanced-select">
56 <?php wp_dropdown_roles( get_option( 'wp_subscription_unactive_role', 'customer' ) ); ?>
57 </select>
58 <p class="description"><?php esc_html_e( "If a subscriber's subscription is manually cancelled or expires, they will be assigned this role.", 'wp_subscription' ); ?></p>
59 </td>
60 </tr>
61 <tr valign="top">
62 <th scope="row" class="titledesc"><?php esc_html_e( 'Stripe Auto Renewal', 'wp_subscription' ); ?></th>
63 <td class="forminp forminp-checkbox">
64 <fieldset>
65 <legend class="screen-reader-text"><span><?php esc_html_e( 'Accept Stripe Auto Renewals', 'wp_subscription' ); ?></span></legend>
66 <label for="wp_subscription_stripe_auto_renew">
67 <input name="wp_subscription_stripe_auto_renew" id="wp_subscription_stripe_auto_renew" type="checkbox" value="1" <?php checked( get_option( 'wp_subscription_stripe_auto_renew', '1' ), '1' ); ?> />
68 <?php esc_html_e( 'Accept Stripe Auto Renewals', 'wp_subscription' ); ?>
69 </label>
70 <p class="description">
71 <?php
72 echo wp_kses_post(
73 sprintf(
74 /* translators: HTML tags */
75 __( '%1$s WooCommerce Stripe Payment Gateway %2$s plugin is required!', 'wp_subscription' ),
76 '<a href="https://wordpress.org/plugins/woocommerce-gateway-stripe/" target="_blank">',
77 '</a>'
78 )
79 );
80 ?>
81 </p>
82 </fieldset>
83 </td>
84 </tr>
85 <tr valign="top">
86 <th scope="row" class="titledesc"><?php esc_html_e( 'Auto Renewal Toggle', 'wp_subscription' ); ?></th>
87 <td class="forminp forminp-checkbox">
88 <fieldset>
89 <legend class="screen-reader-text"><span><?php esc_html_e( 'Auto Renewal Toggle', 'wp_subscription' ); ?></span></legend>
90 <label for="wp_subscription_auto_renewal_toggle">
91 <input name="wp_subscription_auto_renewal_toggle" id="wp_subscription_auto_renewal_toggle" type="checkbox" value="1" <?php checked( get_option( 'wp_subscription_auto_renewal_toggle', '1' ), '1' ); ?> />
92 <?php esc_html_e( 'Display the auto renewal toggle', 'wp_subscription' ); ?>
93 </label>
94 <p class="description"><?php esc_html_e( 'Allow customers to turn on and off automatic renewals from their Subscription details page.', 'wp_subscription' ); ?></p>
95 </fieldset>
96 </td>
97 </tr>
98 <?php do_action( 'wp_subscription_setting_fields' ); ?>
99 <?php if ( ! class_exists('Sdevs_Wc_Subscription_Pro') ) : ?>
100 <!-- PRO Features (subtle, grayed out) -->
101 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
102 <th scope="row">
103 <label><?php esc_html_e( 'Variable Product Options', 'wp_subscription' ); ?></label>
104 </th>
105 <td>
106 <input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
107 <p class="description">Set flexible options for variable subscription products <span style="color:#2196f3;font-weight:600;">PRO</span></p>
108 </td>
109 </tr>
110 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
111 <th scope="row">
112 <label><?php esc_html_e( 'Delivery Schedule', 'wp_subscription' ); ?></label>
113 </th>
114 <td>
115 <select disabled><option><?php esc_html_e('Available in PRO', 'wp_subscription'); ?></option></select>
116 <p class="description">Custom delivery intervals for subscriptions <span style="color:#2196f3;font-weight:600;">PRO</span></p>
117 </td>
118 </tr>
119 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
120 <th scope="row">
121 <label><?php esc_html_e( 'Subscription History', 'wp_subscription' ); ?></label>
122 </th>
123 <td>
124 <input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
125 <p class="description">View detailed subscription change history <span style="color:#2196f3;font-weight:600;">PRO</span></p>
126 </td>
127 </tr>
128 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
129 <th scope="row">
130 <label><?php esc_html_e( 'More Subscription Durations', 'wp_subscription' ); ?></label>
131 </th>
132 <td>
133 <input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
134 <p class="description">Offer more flexible/custom subscription periods <span style="color:#2196f3;font-weight:600;">PRO</span></p>
135 </td>
136 </tr>
137 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
138 <th scope="row">
139 <label><?php esc_html_e( 'Sign Up Fee', 'wp_subscription' ); ?></label>
140 </th>
141 <td>
142 <input type="number" disabled placeholder="Available in PRO" style="width:120px;" />
143 <p class="description">Charge a one-time sign up fee <span style="color:#2196f3;font-weight:600;">PRO</span></p>
144 </td>
145 </tr>
146 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
147 <th scope="row">
148 <label><?php esc_html_e( 'Early Renewal', 'wp_subscription' ); ?></label>
149 </th>
150 <td>
151 <input type="checkbox" disabled />
152 <p class="description">Allow early renewal for subscriptions <span style="color:#2196f3;font-weight:600;">PRO</span></p>
153 </td>
154 </tr>
155 <tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
156 <th scope="row">
157 <label><?php esc_html_e( 'Renewal Price', 'wp_subscription' ); ?></label>
158 </th>
159 <td>
160 <input type="number" disabled placeholder="Available in PRO" style="width:120px;" />
161 <p class="description">Set a different price for renewals <span style="color:#2196f3;font-weight:600;">PRO</span></p>
162 </td>
163 </tr>
164 <?php endif; ?>
165 </tbody>
166 </table>
167 <?php submit_button( __( 'Save changes', 'wp_subscription' ), 'primary large' ); ?>
168 </div>
169 </form>
170 </div>
171