Headline
CVE-2023-2276: Changeset 2907455 – WordPress Plugin Repository
The WCFM Membership – WooCommerce Memberships for Multivendor Marketplace plugin for WordPress is vulnerable to Insecure Direct Object References in versions up to, and including, 2.10.7. This is due to the plugin providing user-controlled access to objects, letting a user bypass authorization and access system resources. This makes it possible for unauthenticated attackers to change user passwords and potentially take over administrator accounts.
wc-multivendor-membership/trunk/controllers/wcfmvm-controller-memberships-registration.php
r2654704
r2907455
11
11
12
12
class WCFMvm\_Memberships\_Registration\_Controller {
13
13
14
14
public function \_\_construct() {
15
15
global $WCFM, $WCFMu;
16
16
17
17
$this->processing();
18
18
}
19
19
20
20
public function processing() {
21
21
global $WCFM, $WCFMvm, $wpdb, $wcfm\_membership\_registration\_form\_data;
22
22
23
23
$wcfm\_membership\_registration\_form\_data = array();
24
parse\_str($\_POST\['wcfm\_membership\_registration\_form'\], $wcfm\_membership\_registration\_form\_data);
25
26
$wcfm\_membership\_registration\_form\_data = wc\_clean( $wcfm\_membership\_registration\_form\_data );
27
28
$wcfm\_membership\_registration\_messages = get\_wcfmvm\_membership\_registration\_messages();
29
$has\_error = false;
30
$wcfm\_membership = '';
31
$subscription\_pay\_mode = 'by\_wcfm';
32
33
// Google reCaptcha support
34
if( apply\_filters( 'wcfm\_is\_allow\_registration\_recaptcha', true ) ) {
35
if ( function\_exists( 'gglcptch\_init' ) ) {
36
if(isset($wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\]) && !empty($wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\])) {
24
parse\_str($\_POST\['wcfm\_membership\_registration\_form'\], $wcfm\_membership\_registration\_form\_data);
25
26
$wcfm\_membership\_registration\_form\_data = wc\_clean($wcfm\_membership\_registration\_form\_data);
27
28
$wcfm\_membership\_registration\_messages = get\_wcfmvm\_membership\_registration\_messages();
29
$has\_error = false;
30
$wcfm\_membership = '';
31
$subscription\_pay\_mode = 'by\_wcfm';
32
33
// Google reCaptcha support
34
if (apply\_filters('wcfm\_is\_allow\_registration\_recaptcha', true)) {
35
if (function\_exists('gglcptch\_init')) {
36
if (isset($wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\]) && !empty($wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\])) {
37
37
$\_POST\['g-recaptcha-response'\] = $wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\];
38
38
}
39
$check\_result = apply\_filters( 'gglcptch\_verify\_recaptcha', true, 'string', 'wcfm\_registration\_form' );
40
if ( true === $check\_result ) {
41
/\* do necessary action \*/
42
} else {
39
$check\_result = apply\_filters('gglcptch\_verify\_recaptcha', true, 'string', 'wcfm\_registration\_form');
40
if (true === $check\_result) {
41
/\* do necessary action \*/
42
} else {
43
43
echo '{"status": false, "message": "' . esc\_html($check\_result) . '"}';
44
44
die;
45
45
}
46
} elseif ( function\_exists( 'anr\_captcha\_form\_field' ) ) {
47
$check\_result = anr\_verify\_captcha( $wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\] );
48
if ( true === $check\_result ) {
49
/\* do necessary action \*/
50
} else {
51
echo '{"status": false, "message": "' . esc\_html\_\_( 'Captcha failed, please try again.', 'wc-frontend-manager' ) . '"}';
46
} elseif (function\_exists('anr\_captcha\_form\_field')) {
47
$check\_result = anr\_verify\_captcha($wcfm\_membership\_registration\_form\_data\['g-recaptcha-response'\]);
48
if (true === $check\_result) {
49
/\* do necessary action \*/
50
} else {
51
echo '{"status": false, "message": "' . esc\_html\_\_('Captcha failed, please try again.', 'wc-frontend-manager') . '"}';
52
52
die;
53
53
}
54
54
}
55
55
}
56
57
$user\_email = sanitize\_email( $wcfm\_membership\_registration\_form\_data\['user\_email'\] );
58
59
if ( empty( $user\_email ) || ! is\_email( $user\_email ) ) {
60
echo '{"status": false, "message": "' . esc\_html\_\_( 'Please provide a valid email address.', 'woocommerce' ) . '"}';
56
57
$user\_email = sanitize\_email($wcfm\_membership\_registration\_form\_data\['user\_email'\]);
58
59
if (empty($user\_email) || !is\_email($user\_email)) {
60
echo '{"status": false, "message": "' . esc\_html\_\_('Please provide a valid email address.', 'woocommerce') . '"}';
61
61
die;
62
62
}
63
64
$wcfmvm\_registration\_static\_fields = wcfm\_get\_option( 'wcfmvm\_registration\_static\_fields', array() );
65
$is\_user\_name = isset( $wcfmvm\_registration\_static\_fields\['user\_name'\] ) ? 'yes' : '';
66
if( !$is\_user\_name ) {
67
$username = sanitize\_user( current( explode( '@', $user\_email ) ), true );
68
63
64
$wcfmvm\_registration\_static\_fields = wcfm\_get\_option('wcfmvm\_registration\_static\_fields', array());
65
$is\_user\_name = isset($wcfmvm\_registration\_static\_fields\['user\_name'\]) ? 'yes' : '';
66
if (!$is\_user\_name) {
67
$username = sanitize\_user(current(explode('@', $user\_email)), true);
68
69
69
$append = 1;
70
70
$o\_username = $username;
71
71
72
while ( username\_exists( $username ) ) {
72
while (username\_exists($username)) {
73
73
$username = $o\_username . $append;
74
74
$append++;
…
…
76
76
$wcfm\_membership\_registration\_form\_data\['user\_name'\] = $username;
77
77
}
78
79
if ( empty( $wcfm\_membership\_registration\_form\_data\['user\_name'\] ) || ! validate\_username( $wcfm\_membership\_registration\_form\_data\['user\_name'\] ) ) {
80
echo '{"status": false, "message": "' . esc\_html\_\_( 'Please enter a valid account username.', 'woocommerce' ) . '"}';
78
79
if (empty($wcfm\_membership\_registration\_form\_data\['user\_name'\]) || !validate\_username($wcfm\_membership\_registration\_form\_data\['user\_name'\])) {
80
echo '{"status": false, "message": "' . esc\_html\_\_('Please enter a valid account username.', 'woocommerce') . '"}';
81
81
die;
82
82
}
83
83
84
84
// WCFM form custom validation filter
85
$custom\_validation\_results = apply\_filters( 'wcfm\_form\_custom\_validation', $wcfm\_membership\_registration\_form\_data, 'vendor\_registration' );
86
if(isset($custom\_validation\_results\['has\_error'\]) && !empty($custom\_validation\_results\['has\_error'\])) {
87
$custom\_validation\_error = \_\_( 'There has some error in submitted data.', 'wc-frontend-manager' );
88
if( isset( $custom\_validation\_results\['message'\] ) && !empty( $custom\_validation\_results\['message'\] ) ) { $custom\_validation\_error = $custom\_validation\_results\['message'\]; }
85
$custom\_validation\_results = apply\_filters('wcfm\_form\_custom\_validation', $wcfm\_membership\_registration\_form\_data, 'vendor\_registration');
86
if (isset($custom\_validation\_results\['has\_error'\]) && !empty($custom\_validation\_results\['has\_error'\])) {
87
$custom\_validation\_error = \_\_('There has some error in submitted data.', 'wc-frontend-manager');
88
if (isset($custom\_validation\_results\['message'\]) && !empty($custom\_validation\_results\['message'\])) {
89
$custom\_validation\_error = $custom\_validation\_results\['message'\];
90
}
89
91
echo '{"status": false, "message": "' . esc\_html($custom\_validation\_error) . '"}';
90
92
die;
91
93
}
92
94
93
95
// Handle File Uploads - 2.3.0
94
96
$files\_data = array();
95
if ( ! empty( $\_FILES ) ) {
96
foreach ( $\_FILES as $file\_key => $file ) {
97
$files\_to\_upload = wcfm\_prepare\_uploaded\_files( $file );
98
if( !empty( $files\_to\_upload ) ) {
99
foreach ( $files\_to\_upload as $file\_to\_upload ) {
97
if (!empty($\_FILES)) {
98
foreach ($\_FILES as $file\_key => $file) {
99
$files\_to\_upload = wcfm\_prepare\_uploaded\_files($file);
100
if (!empty($files\_to\_upload)) {
101
foreach ($files\_to\_upload as $file\_to\_upload) {
100
102
$uploaded\_file = wcfm\_upload\_file(
101
103
$file\_to\_upload,
…
…
104
106
)
105
107
);
106
107
if ( is\_wp\_error( $uploaded\_file ) ) {
108
109
if (is\_wp\_error($uploaded\_file)) {
108
110
echo '{"status": false, "message": "' . esc\_html($uploaded\_file->get\_error\_message()) . '"}';
109
111
die;
110
112
} else {
111
$files\_data\[$file\_key\] = wp\_insert\_attachment( array( 'file' => $uploaded\_file->url ) );
113
$files\_data\[$file\_key\] = wp\_insert\_attachment(array('file' => $uploaded\_file->url));
112
114
}
113
115
}
…
…
115
117
}
116
118
}
117
118
if(isset($wcfm\_membership\_registration\_form\_data\['user\_name'\]) && !empty($wcfm\_membership\_registration\_form\_data\['user\_name'\])) {
119
if(isset($wcfm\_membership\_registration\_form\_data\['user\_email'\]) && !empty($wcfm\_membership\_registration\_form\_data\['user\_email'\])) {
119
120
if (isset($wcfm\_membership\_registration\_form\_data\['user\_name'\]) && !empty($wcfm\_membership\_registration\_form\_data\['user\_name'\])) {
121
if (isset($wcfm\_membership\_registration\_form\_data\['user\_email'\]) && !empty($wcfm\_membership\_registration\_form\_data\['user\_email'\])) {
120
122
$member\_id = 0;
121
$password = wp\_generate\_password( $length = 12, $include\_standard\_special\_chars=false );
123
$password = wp\_generate\_password($length = 12, $include\_standard\_special\_chars = false);
122
124
$is\_update = false;
123
if( isset($wcfm\_membership\_registration\_form\_data\['member\_id'\]) && $wcfm\_membership\_registration\_form\_data\['member\_id'\] != 0 ) {
124
$member\_id = absint( $wcfm\_membership\_registration\_form\_data\['member\_id'\] );
125
if (isset($wcfm\_membership\_registration\_form\_data\['member\_id'\]) && $wcfm\_membership\_registration\_form\_data\['member\_id'\] != 0) {
126
$member\_id = absint($wcfm\_membership\_registration\_form\_data\['member\_id'\]);
127
128
if ( $member\_id && ! $this->is\_valid\_member\_id( $member\_id ) ) {
129
echo '{"status": false, "message": "' . esc\_html\_\_( 'Not a valid member', 'wc-multivendor-membership' ) . '"}';
130
die;
131
}
132
125
133
$is\_update = true;
126
134
} else {
127
if( username\_exists( $wcfm\_membership\_registration\_form\_data\['user\_name'\] ) ) {
135
if (username\_exists($wcfm\_membership\_registration\_form\_data\['user\_name'\])) {
128
136
$has\_error = true;
129
137
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['username\_exists'\]) . '"}';
130
138
} else {
131
if( email\_exists( $user\_email ) == false ) {
132
139
if (email\_exists($user\_email) == false) {
133
140
} else {
134
141
$has\_error = true;
…
…
136
143
}
137
144
}
138
if( isset( $wcfm\_membership\_registration\_form\_data\['passoword'\] ) && !empty( $wcfm\_membership\_registration\_form\_data\['passoword'\] ) ) {
145
if (isset($wcfm\_membership\_registration\_form\_data\['passoword'\]) && !empty($wcfm\_membership\_registration\_form\_data\['passoword'\])) {
139
146
$password = $wcfm\_membership\_registration\_form\_data\['passoword'\];
140
147
}
141
148
}
142
143
$wcfm\_membership\_options = get\_option( 'wcfm\_membership\_options', array() );
149
150
$wcfm\_membership\_options = get\_option('wcfm\_membership\_options', array());
144
151
$membership\_type\_settings = array();
145
if( isset( $wcfm\_membership\_options\['membership\_type\_settings'\] ) ) $membership\_type\_settings = $wcfm\_membership\_options\['membership\_type\_settings'\];
146
$email\_verification = isset( $membership\_type\_settings\['email\_verification'\] ) ? 'yes' : '';
147
$sms\_verification = isset( $membership\_type\_settings\['sms\_verification'\] ) ? 'yes' : '';
148
152
if (isset($wcfm\_membership\_options\['membership\_type\_settings'\])) $membership\_type\_settings = $wcfm\_membership\_options\['membership\_type\_settings'\];
153
$email\_verification = isset($membership\_type\_settings\['email\_verification'\]) ? 'yes' : '';
154
$sms\_verification = isset($membership\_type\_settings\['sms\_verification'\]) ? 'yes' : '';
155
149
156
// EMAIL Verification
150
if( apply\_filters( 'wcfm\_is\_allow\_email\_verification', true ) ) {
157
if (apply\_filters('wcfm\_is\_allow\_email\_verification', true)) {
151
158
$email\_verified = false;
152
if( !$has\_error ) {
153
if( $email\_verification ) {
154
if( $is\_update ) {
159
if (!$has\_error) {
160
if ($email\_verification) {
161
if ($is\_update) {
155
162
$email\_verified = $wcfm\_membership\_registration\_form\_data\['email\_verified'\];
156
163
}
157
158
if( !$is\_update || !$email\_verified ) {
164
165
if (!$is\_update || !$email\_verified) {
159
166
$verification\_code = '';
160
if( WC()->session && WC()->session->get( 'wcfm\_membership\_email\_verification\_code' ) ) {
161
$verification\_code = WC()->session->get( 'wcfm\_membership\_email\_verification\_code' );
162
}
167
if (WC()->session && WC()->session->get('wcfm\_membership\_email\_verification\_code')) {
168
$verification\_code = WC()->session->get('wcfm\_membership\_email\_verification\_code');
169
}
163
170
$wcfm\_email\_verified\_input = $wcfm\_membership\_registration\_form\_data\['wcfm\_email\_verified\_input'\];
164
165
if( $verification\_code != $wcfm\_email\_verified\_input ) {
171
172
if ($verification\_code != $wcfm\_email\_verified\_input) {
166
173
$has\_error = true;
167
174
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['email\_invalid\_code'\]) . '"}';
168
175
}
169
170
if( !$has\_error ) {
176
177
if (!$has\_error) {
171
178
$verification\_email = '';
172
if( WC()->session && WC()->session->get( 'wcfm\_membership\_email\_verification\_for' ) ) {
173
$verification\_email = WC()->session->get( 'wcfm\_membership\_email\_verification\_for' );
174
}
179
if (WC()->session && WC()->session->get('wcfm\_membership\_email\_verification\_for')) {
180
$verification\_email = WC()->session->get('wcfm\_membership\_email\_verification\_for');
181
}
175
182
$wcfm\_email\_verified\_for = $user\_email;
176
177
if( $verification\_email != $wcfm\_email\_verified\_for ) {
183
184
if ($verification\_email != $wcfm\_email\_verified\_for) {
178
185
$has\_error = true;
179
186
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['email\_invalid\_code'\]) . '"}';
…
…
181
188
}
182
189
}
183
if( !$has\_error ) $email\_verified = true;
184
}
185
}
186
}
187
190
if (!$has\_error) $email\_verified = true;
191
}
192
}
193
}
194
188
195
// SMS Verification - 2.3.0
189
if( apply\_filters( 'wcfm\_is\_allow\_sms\_verification', true ) && function\_exists( 'wcfm\_is\_store\_page' ) ) {
196
if (apply\_filters('wcfm\_is\_allow\_sms\_verification', true) && function\_exists('wcfm\_is\_store\_page')) {
190
197
$sms\_verified = false;
191
if( !$has\_error ) {
192
if( $sms\_verification ) {
193
if( $is\_update ) {
198
if (!$has\_error) {
199
if ($sms\_verification) {
200
if ($is\_update) {
194
201
$sms\_verified = $wcfm\_membership\_registration\_form\_data\['sms\_verified'\];
195
202
}
196
197
if( !$is\_update || !$sms\_verified ) {
203
204
if (!$is\_update || !$sms\_verified) {
198
205
$verification\_code = '';
199
if( WC()->session && WC()->session->get( 'wcfm\_membership\_sms\_verification\_code' ) ) {
200
$verification\_code = WC()->session->get( 'wcfm\_membership\_sms\_verification\_code' );
201
}
206
if (WC()->session && WC()->session->get('wcfm\_membership\_sms\_verification\_code')) {
207
$verification\_code = WC()->session->get('wcfm\_membership\_sms\_verification\_code');
208
}
202
209
$wcfm\_sms\_verified\_input = $wcfm\_membership\_registration\_form\_data\['wcfm\_sms\_verified\_input'\];
203
204
if( $verification\_code != $wcfm\_sms\_verified\_input ) {
210
211
if ($verification\_code != $wcfm\_sms\_verified\_input) {
205
212
$has\_error = true;
206
213
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['sms\_invalid\_code'\]) . '"}';
207
214
}
208
209
if( !$has\_error ) {
215
216
if (!$has\_error) {
210
217
$verification\_sms = '';
211
if( WC()->session && WC()->session->get( 'wcfm\_membership\_sms\_verification\_for' ) ) {
212
$verification\_sms = WC()->session->get( 'wcfm\_membership\_sms\_verification\_for' );
213
}
218
if (WC()->session && WC()->session->get('wcfm\_membership\_sms\_verification\_for')) {
219
$verification\_sms = WC()->session->get('wcfm\_membership\_sms\_verification\_for');
220
}
214
221
$wcfm\_sms\_verified\_for = $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\['phone'\];
215
216
if( $verification\_sms != $wcfm\_sms\_verified\_for ) {
222
223
if ($verification\_sms != $wcfm\_sms\_verified\_for) {
217
224
$has\_error = true;
218
225
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['sms\_invalid\_code'\]) . '"}';
…
…
220
227
}
221
228
}
222
if( !$has\_error ) $sms\_verified = true;
223
}
224
}
225
}
226
229
if (!$has\_error) $sms\_verified = true;
230
}
231
}
232
}
233
227
234
// WCFM Marketplace Store Name Unique Check
228
235
$store\_slug = '';
229
if( !$has\_error && !wcfm\_is\_vendor() && isset( $wcfm\_membership\_registration\_form\_data\['store\_name'\] ) && !empty( $wcfm\_membership\_registration\_form\_data\['store\_name'\] ) ) {
230
$store\_slug = sanitize\_title( wc\_clean( $wcfm\_membership\_registration\_form\_data\['store\_name'\] ) );
231
$store\_slug = apply\_filters( 'wcfm\_generated\_store\_slug', $store\_slug );
232
if( !$is\_update && ( username\_exists( $store\_slug ) || get\_user\_by( 'slug', $store\_slug ) || !apply\_filters( 'wcfm\_validate\_store\_slug', true, $store\_slug ) ) ) {
233
echo '{"status": false, "message": "' . esc\_html\_\_( 'Shop Name not available.', 'wc-multivendor-membership' ) . '"}';
236
if (!$has\_error && !wcfm\_is\_vendor() && isset($wcfm\_membership\_registration\_form\_data\['store\_name'\]) && !empty($wcfm\_membership\_registration\_form\_data\['store\_name'\])) {
237
$store\_slug = sanitize\_title(wc\_clean($wcfm\_membership\_registration\_form\_data\['store\_name'\]));
238
$store\_slug = apply\_filters('wcfm\_generated\_store\_slug', $store\_slug);
239
if (!$is\_update && (username\_exists($store\_slug) || get\_user\_by('slug', $store\_slug) || !apply\_filters('wcfm\_validate\_store\_slug', true, $store\_slug))) {
240
echo '{"status": false, "message": "' . esc\_html\_\_('Shop Name not available.', 'wc-multivendor-membership') . '"}';
234
241
$has\_error = true;
235
} elseif( $is\_update && $member\_id ) {
236
$the\_user = get\_user\_by( 'id', $member\_id );
237
$user\_login = sanitize\_title( $the\_user->user\_login );
242
} elseif ($is\_update && $member\_id) {
243
$the\_user = get\_user\_by('id', $member\_id);
244
$user\_login = sanitize\_title($the\_user->user\_login);
238
245
$previous\_store\_slug = $the\_user->user\_nicename;
239
if( ( ( $previous\_store\_slug != $store\_slug ) && ( $user\_login != $store\_slug ) && username\_exists( $store\_slug ) ) || !apply\_filters( 'wcfm\_validate\_store\_slug', true, $store\_slug ) ) {
240
echo '{"status": false, "message": "' . esc\_html\_\_( 'Shop Name not available.', 'wc-multivendor-membership' ) . '"}';
246
if ((($previous\_store\_slug != $store\_slug) && ($user\_login != $store\_slug) && username\_exists($store\_slug)) || !apply\_filters('wcfm\_validate\_store\_slug', true, $store\_slug)) {
247
echo '{"status": false, "message": "' . esc\_html\_\_('Shop Name not available.', 'wc-multivendor-membership') . '"}';
241
248
$has\_error = true;
242
249
}
…
…
246
253
$wcfm\_membership\_registration\_form\_data\['store\_name'\] = $wcfm\_membership\_registration\_form\_data\['user\_name'\];
247
254
}
248
249
if( !$has\_error ) {
250
$user\_data = array( 'user\_login' => $wcfm\_membership\_registration\_form\_data\['user\_name'\],
251
'user\_email' => $user\_email,
252
'display\_name' => sanitize\_user( $wcfm\_membership\_registration\_form\_data\['user\_name'\] ),
253
'user\_nicename' => $store\_slug,
254
'nickname' => $wcfm\_membership\_registration\_form\_data\['user\_name'\],
255
'first\_name' => isset($wcfm\_membership\_registration\_form\_data\['first\_name'\]) ? $wcfm\_membership\_registration\_form\_data\['first\_name'\] : '',
256
'last\_name' => isset($wcfm\_membership\_registration\_form\_data\['last\_name'\]) ? $wcfm\_membership\_registration\_form\_data\['last\_name'\] : '',
257
'user\_pass' => $password,
258
'role' => apply\_filters( 'wcfmvm\_registration\_default\_role', 'subscriber' ),
259
'ID' => $member\_id
260
);
261
if( $is\_update ) {
262
if( !wcfm\_is\_vendor() ) {
263
unset( $user\_data\['user\_login'\] );
264
unset( $user\_data\['display\_name'\] );
265
unset( $user\_data\['nickname'\] );
266
unset( $user\_data\['user\_pass'\] );
267
unset( $user\_data\['role'\] );
268
$member\_id = wp\_update\_user( $user\_data ) ;
255
256
if (!$has\_error) {
257
$user\_data = array(
258
'user\_login' => $wcfm\_membership\_registration\_form\_data\['user\_name'\],
259
'user\_email' => $user\_email,
260
'display\_name' => sanitize\_user($wcfm\_membership\_registration\_form\_data\['user\_name'\]),
261
'user\_nicename' => $store\_slug,
262
'nickname' => $wcfm\_membership\_registration\_form\_data\['user\_name'\],
263
'first\_name' => isset($wcfm\_membership\_registration\_form\_data\['first\_name'\]) ? $wcfm\_membership\_registration\_form\_data\['first\_name'\] : '',
264
'last\_name' => isset($wcfm\_membership\_registration\_form\_data\['last\_name'\]) ? $wcfm\_membership\_registration\_form\_data\['last\_name'\] : '',
265
'user\_pass' => $password,
266
'role' => apply\_filters('wcfmvm\_registration\_default\_role', 'subscriber'),
267
'ID' => $member\_id
268
);
269
if ($is\_update) {
270
if (!wcfm\_is\_vendor()) {
271
unset($user\_data\['user\_login'\]);
272
unset($user\_data\['display\_name'\]);
273
unset($user\_data\['nickname'\]);
274
unset($user\_data\['user\_pass'\]);
275
unset($user\_data\['role'\]);
276
$member\_id = wp\_update\_user($user\_data);
269
277
}
270
278
} else {
271
$member\_id = wp\_insert\_user( $user\_data ) ;
272
if( !is\_wp\_error( $member\_id ) ) {
273
if( apply\_filters( 'wcfm\_is\_allow\_store\_slug\_direct\_update', true ) ) {
274
$wpdb->query( $wpdb->prepare("UPDATE {$wpdb->prefix}users SET \`user\_nicename\` = %s WHERE ID =%d", $store\_slug, $member\_id) );
279
$member\_id = wp\_insert\_user($user\_data);
280
if (!is\_wp\_error($member\_id)) {
281
if (apply\_filters('wcfm\_is\_allow\_store\_slug\_direct\_update', true)) {
282
$wpdb->query($wpdb->prepare("UPDATE {$wpdb->prefix}users SET \`user\_nicename\` = %s WHERE ID =%d", $store\_slug, $member\_id));
275
283
} else {
276
wp\_update\_user( array( 'ID' => $member\_id, 'user\_nicename' => wc\_clean( $store\_slug ) ) );
277
}
278
}
279
}
280
284
wp\_update\_user(array('ID' => $member\_id, 'user\_nicename' => wc\_clean($store\_slug)));
285
}
286
}
287
}
288
281
289
$wcfm\_memberships\_list = get\_wcfm\_memberships();
282
283
if( !$member\_id || is\_wp\_error( $member\_id ) ) {
290
291
if (!$member\_id || is\_wp\_error($member\_id)) {
284
292
$has\_error = true;
285
293
} else {
…
…
318
326
wp\_mail( $mail\_to, $subject, $message );
319
327
}\*/
320
328
321
329
// Update First Name as Billing & Shipping First Name
322
if( isset( $wcfm\_membership\_registration\_form\_data\['first\_name'\] ) ) {
323
update\_user\_meta( $member\_id, 'billing\_first\_name', $wcfm\_membership\_registration\_form\_data\['first\_name'\] );
324
update\_user\_meta( $member\_id, 'shipping\_first\_name', $wcfm\_membership\_registration\_form\_data\['first\_name'\] );
325
}
326
330
if (isset($wcfm\_membership\_registration\_form\_data\['first\_name'\])) {
331
update\_user\_meta($member\_id, 'billing\_first\_name', $wcfm\_membership\_registration\_form\_data\['first\_name'\]);
332
update\_user\_meta($member\_id, 'shipping\_first\_name', $wcfm\_membership\_registration\_form\_data\['first\_name'\]);
333
}
334
327
335
// Update Last Name as Billing & Shipping Last Name
328
if( isset( $wcfm\_membership\_registration\_form\_data\['last\_name'\] ) ) {
329
update\_user\_meta( $member\_id, 'billing\_last\_name', $wcfm\_membership\_registration\_form\_data\['last\_name'\] );
330
update\_user\_meta( $member\_id, 'shipping\_last\_name', $wcfm\_membership\_registration\_form\_data\['last\_name'\] );
331
}
332
336
if (isset($wcfm\_membership\_registration\_form\_data\['last\_name'\])) {
337
update\_user\_meta($member\_id, 'billing\_last\_name', $wcfm\_membership\_registration\_form\_data\['last\_name'\]);
338
update\_user\_meta($member\_id, 'shipping\_last\_name', $wcfm\_membership\_registration\_form\_data\['last\_name'\]);
339
}
340
333
341
// Update Store Address as Billing & Shipping Address
334
$wcfmvm\_registration\_static\_fields = wcfm\_get\_option( 'wcfmvm\_registration\_static\_fields', array() );
335
if( !empty( $wcfmvm\_registration\_static\_fields ) && isset( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\] ) && !empty( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\] ) ) {
336
foreach( $wcfmvm\_registration\_static\_fields as $wcfmvm\_registration\_static\_field => $wcfmvm\_registration\_static\_field\_val ) {
337
if( !empty( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\] ) ) {
338
$field\_value = isset( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\[$wcfmvm\_registration\_static\_field\] ) ? $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\[$wcfmvm\_registration\_static\_field\] : array();
339
}
340
341
switch( $wcfmvm\_registration\_static\_field ) {
342
$wcfmvm\_registration\_static\_fields = wcfm\_get\_option('wcfmvm\_registration\_static\_fields', array());
343
if (!empty($wcfmvm\_registration\_static\_fields) && isset($wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]) && !empty($wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\])) {
344
foreach ($wcfmvm\_registration\_static\_fields as $wcfmvm\_registration\_static\_field => $wcfmvm\_registration\_static\_field\_val) {
345
if (!empty($wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\])) {
346
$field\_value = isset($wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\[$wcfmvm\_registration\_static\_field\]) ? $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\[$wcfmvm\_registration\_static\_field\] : array();
347
}
348
349
switch ($wcfmvm\_registration\_static\_field) {
342
350
case 'address':
343
if( isset($field\_value\['addr\_1'\]) ) {
344
$billing\_address\_fields = array(
345
'billing\_address\_1' => 'addr\_1',
346
'billing\_address\_2' => 'addr\_2',
347
'billing\_country' => 'country',
348
'billing\_city' => 'city',
349
'billing\_state' => 'state',
350
'billing\_postcode' => 'zip',
351
);
352
353
foreach( $billing\_address\_fields as $billing\_address\_field\_key => $billing\_address\_field ) {
354
if( isset( $field\_value\[$billing\_address\_field\] ) ) {
355
update\_user\_meta( $member\_id, $billing\_address\_field\_key, $field\_value\[$billing\_address\_field\] );
356
update\_user\_meta( $member\_id, '\_wcfm\_' . $billing\_address\_field\_key, $field\_value\[$billing\_address\_field\] );
351
if (isset($field\_value\['addr\_1'\])) {
352
$billing\_address\_fields = array(
353
'billing\_address\_1' => 'addr\_1',
354
'billing\_address\_2' => 'addr\_2',
355
'billing\_country' => 'country',
356
'billing\_city' => 'city',
357
'billing\_state' => 'state',
358
'billing\_postcode' => 'zip',
359
);
360
361
foreach ($billing\_address\_fields as $billing\_address\_field\_key => $billing\_address\_field) {
362
if (isset($field\_value\[$billing\_address\_field\])) {
363
update\_user\_meta($member\_id, $billing\_address\_field\_key, $field\_value\[$billing\_address\_field\]);
364
update\_user\_meta($member\_id, '\_wcfm\_' . $billing\_address\_field\_key, $field\_value\[$billing\_address\_field\]);
357
365
}
358
366
}
359
360
$shipping\_address\_fields = array(
361
'shipping\_address\_1' => 'addr\_1',
362
'shipping\_address\_2' => 'addr\_2',
363
'shipping\_country' => 'country',
364
'shipping\_city' => 'city',
365
'shipping\_state' => 'state',
366
'shipping\_postcode' => 'zip',
367
);
368
369
foreach( $shipping\_address\_fields as $shipping\_address\_field\_key => $shipping\_address\_field ) {
370
if( isset( $field\_value\[$shipping\_address\_field\] ) ) {
371
update\_user\_meta( $member\_id, $shipping\_address\_field\_key, $field\_value\[$shipping\_address\_field\] );
367
368
$shipping\_address\_fields = array(
369
'shipping\_address\_1' => 'addr\_1',
370
'shipping\_address\_2' => 'addr\_2',
371
'shipping\_country' => 'country',
372
'shipping\_city' => 'city',
373
'shipping\_state' => 'state',
374
'shipping\_postcode' => 'zip',
375
);
376
377
foreach ($shipping\_address\_fields as $shipping\_address\_field\_key => $shipping\_address\_field) {
378
if (isset($field\_value\[$shipping\_address\_field\])) {
379
update\_user\_meta($member\_id, $shipping\_address\_field\_key, $field\_value\[$shipping\_address\_field\]);
372
380
}
373
381
}
374
382
}
375
break;
376
383
break;
384
377
385
case 'phone':
378
update\_user\_meta( $member\_id, 'billing\_phone', $field\_value );
379
break;
380
}
381
}
382
}
383
386
update\_user\_meta($member\_id, 'billing\_phone', $field\_value);
387
break;
388
}
389
}
390
}
391
384
392
// Update Store name
385
if( !wcfm\_is\_vendor() && isset( $wcfm\_membership\_registration\_form\_data\['store\_name'\] ) && !empty( $wcfm\_membership\_registration\_form\_data\['store\_name'\] ) ) {
386
update\_user\_meta( $member\_id, 'store\_name', $wcfm\_membership\_registration\_form\_data\['store\_name'\] );
387
update\_user\_meta( $member\_id, 'wcfmmp\_store\_name', $wcfm\_membership\_registration\_form\_data\['store\_name'\] );
388
}
389
393
if (!wcfm\_is\_vendor() && isset($wcfm\_membership\_registration\_form\_data\['store\_name'\]) && !empty($wcfm\_membership\_registration\_form\_data\['store\_name'\])) {
394
update\_user\_meta($member\_id, 'store\_name', $wcfm\_membership\_registration\_form\_data\['store\_name'\]);
395
update\_user\_meta($member\_id, 'wcfmmp\_store\_name', $wcfm\_membership\_registration\_form\_data\['store\_name'\]);
396
}
397
390
398
// Update User Membership
391
if( WC()->session && WC()->session->get( 'wcfm\_membership' ) ) {
392
$wcfm\_membership = WC()->session->get( 'wcfm\_membership' );
393
update\_user\_meta( $member\_id, 'temp\_wcfm\_membership', $wcfm\_membership );
394
} elseif( $wcfm\_membership = get\_wcfm\_free\_membership() ) {
395
update\_user\_meta( $member\_id, 'temp\_wcfm\_membership', $wcfm\_membership );
396
}
397
399
if (WC()->session && WC()->session->get('wcfm\_membership')) {
400
$wcfm\_membership = WC()->session->get('wcfm\_membership');
401
update\_user\_meta($member\_id, 'temp\_wcfm\_membership', $wcfm\_membership);
402
} elseif ($wcfm\_membership = get\_wcfm\_free\_membership()) {
403
update\_user\_meta($member\_id, 'temp\_wcfm\_membership', $wcfm\_membership);
404
}
405
398
406
// Update Static Infos - 1.0.6
399
if( isset( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\] ) ) {
400
update\_user\_meta( $member\_id, 'wcfmvm\_static\_infos', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\] );
401
}
402
407
if (isset($wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\])) {
408
update\_user\_meta($member\_id, 'wcfmvm\_static\_infos', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]);
409
}
410
403
411
// Direct File Upload - 2.3.0
404
if( !empty( $files\_data ) ) {
405
if( !isset( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] ) ) $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] = $files\_data;
412
if (!empty($files\_data)) {
413
if (!isset($wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\])) $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] = $files\_data;
406
414
else {
407
$wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] = array\_merge( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\], $files\_data);
408
}
409
}
410
415
$wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] = array\_merge($wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\], $files\_data);
416
}
417
}
418
411
419
// Update Additional Infos - 1.0.5
412
if( !wcfm\_is\_vendor() && isset( $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] ) ) {
413
update\_user\_meta( $member\_id, 'wcfmvm\_custom\_infos', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\] );
414
420
if (!wcfm\_is\_vendor() && isset($wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\])) {
421
update\_user\_meta($member\_id, 'wcfmvm\_custom\_infos', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\]);
422
415
423
// Toolset User Fields Compatibility added
416
$wcfmvm\_registration\_custom\_fields = wcfm\_get\_option( 'wcfmvm\_registration\_custom\_fields', array() );
424
$wcfmvm\_registration\_custom\_fields = wcfm\_get\_option('wcfmvm\_registration\_custom\_fields', array());
417
425
$wcfmvm\_custom\_infos = (array) $wcfm\_membership\_registration\_form\_data\['wcfmvm\_custom\_infos'\];
418
419
if( !empty( $wcfmvm\_registration\_custom\_fields ) ) {
420
foreach( $wcfmvm\_registration\_custom\_fields as $wcfmvm\_registration\_custom\_field ) {
421
if( !isset( $wcfmvm\_registration\_custom\_field\['enable'\] ) ) continue;
422
if( !$wcfmvm\_registration\_custom\_field\['label'\] ) continue;
426
427
if (!empty($wcfmvm\_registration\_custom\_fields)) {
428
foreach ($wcfmvm\_registration\_custom\_fields as $wcfmvm\_registration\_custom\_field) {
429
if (!isset($wcfmvm\_registration\_custom\_field\['enable'\])) continue;
430
if (!$wcfmvm\_registration\_custom\_field\['label'\]) continue;
423
431
$field\_value = '';
424
$wcfmvm\_registration\_custom\_field\['name'\] = sanitize\_title( $wcfmvm\_registration\_custom\_field\['label'\] );
425
426
if( !empty( $wcfmvm\_custom\_infos ) ) {
427
if( $wcfmvm\_registration\_custom\_field\['type'\] == 'checkbox' ) {
428
$field\_value = isset( $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] ) ? $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] : 'no';
429
} elseif( $wcfmvm\_registration\_custom\_field\['type'\] == 'upload' ) {
432
$wcfmvm\_registration\_custom\_field\['name'\] = sanitize\_title($wcfmvm\_registration\_custom\_field\['label'\]);
433
434
if (!empty($wcfmvm\_custom\_infos)) {
435
if ($wcfmvm\_registration\_custom\_field\['type'\] == 'checkbox') {
436
$field\_value = isset($wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\]) ? $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] : 'no';
437
} elseif ($wcfmvm\_registration\_custom\_field\['type'\] == 'upload') {
430
438
$field\_name = 'wcfmvm\_custom\_infos\[' . $wcfmvm\_registration\_custom\_field\['name'\] . '\]';
431
$field\_id = md5( $field\_name );
432
$field\_value = isset( $wcfmvm\_custom\_infos\[$field\_id\] ) ? $wcfmvm\_custom\_infos\[$field\_id\] : '';
439
$field\_id = md5($field\_name);
440
$field\_value = isset($wcfmvm\_custom\_infos\[$field\_id\]) ? $wcfmvm\_custom\_infos\[$field\_id\] : '';
433
441
} else {
434
$field\_value = isset( $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] ) ? $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] : '';
442
$field\_value = isset($wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\]) ? $wcfmvm\_custom\_infos\[$wcfmvm\_registration\_custom\_field\['name'\]\] : '';
435
443
}
436
444
}
437
if( !$field\_value ) $field\_value = '';
438
update\_user\_meta( $member\_id, $wcfmvm\_registration\_custom\_field\['name'\], $field\_value );
439
}
440
}
441
}
442
445
if (!$field\_value) $field\_value = '';
446
update\_user\_meta($member\_id, $wcfmvm\_registration\_custom\_field\['name'\], $field\_value);
447
}
448
}
449
}
450
443
451
// Email Verification Update - 1.3.2
444
if( apply\_filters( 'wcfm\_is\_allow\_email\_verification', true ) && $email\_verification ) {
445
if( $email\_verified ) {
446
update\_user\_meta( $member\_id, '\_wcfm\_email\_verified', true );
447
update\_user\_meta( $member\_id, '\_wcfm\_email\_verified\_for', $user\_email );
448
if( WC()->session && WC()->session->get( 'wcfm\_membership\_email\_verification\_code' ) ) {
449
WC()->session->\_\_unset( 'wcfm\_membership\_email\_verification\_code' );
450
WC()->session->\_\_unset( 'wcfm\_membership\_email\_verification\_for' );
451
}
452
}
453
}
454
update\_user\_meta( $member\_id, 'wcemailverified', 'true' );
455
452
if (apply\_filters('wcfm\_is\_allow\_email\_verification', true) && $email\_verification) {
453
if ($email\_verified) {
454
update\_user\_meta($member\_id, '\_wcfm\_email\_verified', true);
455
update\_user\_meta($member\_id, '\_wcfm\_email\_verified\_for', $user\_email);
456
if (WC()->session && WC()->session->get('wcfm\_membership\_email\_verification\_code')) {
457
WC()->session->\_\_unset('wcfm\_membership\_email\_verification\_code');
458
WC()->session->\_\_unset('wcfm\_membership\_email\_verification\_for');
459
}
460
}
461
}
462
update\_user\_meta($member\_id, 'wcemailverified', 'true');
463
456
464
// SMS Verification Update - 2.3.0
457
if( apply\_filters( 'wcfm\_is\_allow\_sms\_verification', true ) && function\_exists( 'wcfm\_is\_store\_page' ) && $sms\_verification ) {
458
if( $sms\_verified ) {
459
update\_user\_meta( $member\_id, '\_wcfm\_sms\_verified', true );
460
update\_user\_meta( $member\_id, '\_wcfm\_sms\_verified\_for', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\['phone'\] );
461
if( WC()->session && WC()->session->get( 'wcfm\_membership\_sms\_verification\_code' ) ) {
462
WC()->session->\_\_unset( 'wcfm\_membership\_sms\_verification\_code' );
463
WC()->session->\_\_unset( 'wcfm\_membership\_sms\_verification\_for' );
464
}
465
}
466
}
467
465
if (apply\_filters('wcfm\_is\_allow\_sms\_verification', true) && function\_exists('wcfm\_is\_store\_page') && $sms\_verification) {
466
if ($sms\_verified) {
467
update\_user\_meta($member\_id, '\_wcfm\_sms\_verified', true);
468
update\_user\_meta($member\_id, '\_wcfm\_sms\_verified\_for', $wcfm\_membership\_registration\_form\_data\['wcfmvm\_static\_infos'\]\['phone'\]);
469
if (WC()->session && WC()->session->get('wcfm\_membership\_sms\_verification\_code')) {
470
WC()->session->\_\_unset('wcfm\_membership\_sms\_verification\_code');
471
WC()->session->\_\_unset('wcfm\_membership\_sms\_verification\_for');
472
}
473
}
474
}
475
468
476
// Free Membership Registration - 1.2.0
469
if( empty( $wcfm\_memberships\_list ) || ( WC()->session && WC()->session->get( 'wcfm\_membership\_free\_registration' ) ) ) {
477
if (empty($wcfm\_memberships\_list) || (WC()->session && WC()->session->get('wcfm\_membership\_free\_registration'))) {
470
478
$member\_user = new WP\_User(absint($member\_id));
471
479
$shop\_name = $wcfm\_membership\_registration\_form\_data\['store\_name'\];
472
if( empty( $wcfm\_memberships\_list ) || ( $wcfm\_membership == -1 ) || ( $wcfm\_membership == '-1' ) ) {
480
if (empty($wcfm\_memberships\_list) || ($wcfm\_membership == -1) || ($wcfm\_membership == '-1')) {
473
481
$membership\_reject\_rules = array();
474
if( isset( $wcfm\_membership\_options\['membership\_reject\_rules'\] ) ) $membership\_reject\_rules = $wcfm\_membership\_options\['membership\_reject\_rules'\];
475
$required\_approval = isset( $membership\_reject\_rules\['required\_approval'\] ) ? $membership\_reject\_rules\['required\_approval'\] : 'no';
482
if (isset($wcfm\_membership\_options\['membership\_reject\_rules'\])) $membership\_reject\_rules = $wcfm\_membership\_options\['membership\_reject\_rules'\];
483
$required\_approval = isset($membership\_reject\_rules\['required\_approval'\]) ? $membership\_reject\_rules\['required\_approval'\] : 'no';
476
484
} else {
477
$required\_approval = get\_post\_meta( $wcfm\_membership, 'required\_approval', true ) ? get\_post\_meta( $wcfm\_membership, 'required\_approval', true ) : 'no';
478
}
479
480
if( $required\_approval != 'yes') {
481
$has\_error = $WCFMvm->register\_vendor( $member\_id );
482
$WCFMvm->store\_subscription\_data( $member\_id, 'free', '', 'free\_subscription', 'Completed', '' );
485
$required\_approval = get\_post\_meta($wcfm\_membership, 'required\_approval', true) ? get\_post\_meta($wcfm\_membership, 'required\_approval', true) : 'no';
486
}
487
488
if ($required\_approval != 'yes') {
489
$has\_error = $WCFMvm->register\_vendor($member\_id);
490
$WCFMvm->store\_subscription\_data($member\_id, 'free', '', 'free\_subscription', 'Completed', '');
483
491
} else {
484
$WCFMvm->send\_approval\_reminder\_admin( $member\_id );
485
}
486
} elseif( WC()->session && WC()->session->get( 'wcfm\_membership' ) ) {
487
$wcfm\_membership = absint( WC()->session->get( 'wcfm\_membership' ) );
492
$WCFMvm->send\_approval\_reminder\_admin($member\_id);
493
}
494
} elseif (WC()->session && WC()->session->get('wcfm\_membership')) {
495
$wcfm\_membership = absint(WC()->session->get('wcfm\_membership'));
488
496
// Set WC Cart for WC Checout Pay Mode - 1.3.0
489
$subscription = (array) get\_post\_meta( $wcfm\_membership, 'subscription', true );
490
$subscription\_pay\_mode = isset( $subscription\['subscription\_pay\_mode'\] ) ? $subscription\['subscription\_pay\_mode'\] : 'by\_wcfm';
491
$subscription\_product = isset( $subscription\['subscription\_product'\] ) ? $subscription\['subscription\_product'\] : '';
492
if( ( $subscription\_pay\_mode == 'by\_wc' ) && $subscription\_product ) {
497
$subscription = (array) get\_post\_meta($wcfm\_membership, 'subscription', true);
498
$subscription\_pay\_mode = isset($subscription\['subscription\_pay\_mode'\]) ? $subscription\['subscription\_pay\_mode'\] : 'by\_wcfm';
499
$subscription\_product = isset($subscription\['subscription\_product'\]) ? $subscription\['subscription\_product'\] : '';
500
if (($subscription\_pay\_mode == 'by\_wc') && $subscription\_product) {
493
501
WC()->cart->empty\_cart();
494
WC()->cart->add\_to\_cart( $subscription\_product );
495
}
496
}
497
498
if( apply\_filters( 'wcfm\_is\_allow\_disable\_admin\_bar', true ) ) {
499
update\_user\_meta( $member\_id, 'show\_admin\_bar\_front', false );
500
}
501
502
if( $member\_id && !$is\_update ) {
502
WC()->cart->add\_to\_cart($subscription\_product);
503
}
504
}
505
506
if (apply\_filters('wcfm\_is\_allow\_disable\_admin\_bar', true)) {
507
update\_user\_meta($member\_id, 'show\_admin\_bar\_front', false);
508
}
509
510
if ($member\_id && !$is\_update) {
503
511
global $current\_user;
504
$current\_user = get\_user\_by( 'id', $member\_id );
505
wp\_set\_auth\_cookie( $member\_id, true );
506
}
507
508
do\_action( 'wcfm\_membership\_registration', $member\_id, $wcfm\_membership\_registration\_form\_data );
509
}
510
511
if(!$has\_error) {
512
if( apply\_filters( 'wcfmvm\_is\_allow\_registration\_first', false, $wcfm\_membership ) ) {
513
echo '{"status": true, "message": "' . esc\_html( $wcfm\_membership\_registration\_messages\['registration\_success'\] ) . '", "redirect": "' . esc\_url( add\_query\_arg( 'vmstep', 'choose\_membership', get\_wcfm\_membership\_url() ) ) . '"}';
514
} elseif( empty( $wcfm\_memberships\_list ) || ( WC()->session && WC()->session->get( 'wcfm\_membership\_free\_registration' ) ) ) {
515
echo '{"status": true, "message": "' . esc\_html( $wcfm\_membership\_registration\_messages\['registration\_success'\] ) . '", "redirect": "' . esc\_url( apply\_filters( 'wcfm\_registration\_thankyou\_url', add\_query\_arg( 'vmstep', 'thankyou', get\_wcfm\_registration\_url() ) ) ) . '"}';
516
} elseif( $subscription\_pay\_mode == 'by\_wc' ) {
517
echo '{"status": true, "message": "' . esc\_html( $wcfm\_membership\_registration\_messages\['registration\_success'\] ) . '", "redirect": "' . esc\_url( wc\_get\_checkout\_url() ) . '"}';
512
$current\_user = get\_user\_by('id', $member\_id);
513
wp\_set\_auth\_cookie($member\_id, true);
514
}
515
516
do\_action('wcfm\_membership\_registration', $member\_id, $wcfm\_membership\_registration\_form\_data);
517
}
518
519
if (!$has\_error) {
520
if (apply\_filters('wcfmvm\_is\_allow\_registration\_first', false, $wcfm\_membership)) {
521
echo '{"status": true, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_success'\]) . '", "redirect": "' . esc\_url(add\_query\_arg('vmstep', 'choose\_membership', get\_wcfm\_membership\_url())) . '"}';
522
} elseif (empty($wcfm\_memberships\_list) || (WC()->session && WC()->session->get('wcfm\_membership\_free\_registration'))) {
523
echo '{"status": true, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_success'\]) . '", "redirect": "' . esc\_url(apply\_filters('wcfm\_registration\_thankyou\_url', add\_query\_arg('vmstep', 'thankyou', get\_wcfm\_registration\_url()))) . '"}';
524
} elseif ($subscription\_pay\_mode == 'by\_wc') {
525
echo '{"status": true, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_success'\]) . '", "redirect": "' . esc\_url(wc\_get\_checkout\_url()) . '"}';
518
526
} else {
519
echo '{"status": true, "message": "' . esc\_html( $wcfm\_membership\_registration\_messages\['registration\_success'\] ) . '", "redirect": "' . esc\_url( add\_query\_arg( 'vmstep', 'payment', get\_wcfm\_membership\_url() ) ) . '"}';
520
}
521
} else { echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_failed'\]) . '"}'; }
527
echo '{"status": true, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_success'\]) . '", "redirect": "' . esc\_url(add\_query\_arg('vmstep', 'payment', get\_wcfm\_membership\_url())) . '"}';
528
}
529
} else {
530
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['registration\_failed'\]) . '"}';
531
}
522
532
}
523
533
} else {
524
534
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['no\_email'\]) . '"}';
525
535
}
526
527
} else {
536
} else {
528
537
echo '{"status": false, "message": "' . esc\_html($wcfm\_membership\_registration\_messages\['no\_username'\]) . '"}';
529
538
}
530
539
531
540
die;
532
541
}
542
543
protected function is\_valid\_member\_id( $member\_id ) {
544
$is\_valid\_member = false;
545
546
if ((get\_current\_user\_id() == $member\_id) && wcfm\_is\_allowed\_membership()) {
547
$is\_valid\_member = true;
548
}
549
550
return $is\_valid\_member;
551
}
533
552
}
wc-multivendor-membership/trunk/includes/shortcodes/class-wcfmvm-shortcode-vendor-registration.php
r2650159
r2907455
1
1
<?php
2
2
3
/\*\*
3
4
\* WCFMvm plugin shortcode
…
…
9
10
\* @version 1.2.0
10
11
\*/
11
12
12
13
class WCFM\_Vendor\_Registration\_Shortcode {
13
14
14
15
public function \_\_construct() {
15
16
16
}
17
17
…
…
23
23
\* @return void
24
24
\*/
25
static public function output( $attr ) {
25
static public function output($attr) {
26
26
global $WCFM, $WCFMvm, $wp, $WCFM\_Query;
27
27
$WCFM->nocache();
28
28
29
29
echo '<div id="wcfm-main-contentainer"> <div id="wcfm-content"><div class="wcfm-membership-wrapper"> ';
30
31
if ( isset( $wp->query\_vars\['page'\] ) || is\_wcfm\_registration\_page() ) {
32
echo "<h2 class='wcfm\_registration\_form\_heading'>" . esc\_html\_\_( "Registration", "wc-multivendor-membership" ) . "</h2>";
33
30
31
if (isset($wp->query\_vars\['page'\]) || is\_wcfm\_registration\_page()) {
32
echo "<h2 class='wcfm\_registration\_form\_heading'>" . esc\_html\_\_("Registration", "wc-multivendor-membership") . "</h2>";
33
34
34
$current\_step = wcfm\_membership\_registration\_current\_step();
35
36
if( !wcfm\_is\_vendor() && ( wcfm\_is\_allowed\_membership() || current\_user\_can( 'administrator' ) || current\_user\_can( 'shop\_manager' ) ) ) {
35
36
if (!wcfm\_is\_vendor() && (wcfm\_is\_allowed\_membership() || current\_user\_can('administrator') || current\_user\_can('shop\_manager'))) {
37
37
$application\_status = '';
38
if( is\_user\_logged\_in() ) {
39
$member\_id = apply\_filters( 'wcfm\_current\_vendor\_id', get\_current\_user\_id() );
40
$application\_status = get\_user\_meta( $member\_id, 'wcfm\_membership\_application\_status', true );
38
if (is\_user\_logged\_in()) {
39
$member\_id = apply\_filters('wcfm\_current\_vendor\_id', get\_current\_user\_id());
40
$application\_status = get\_user\_meta($member\_id, 'wcfm\_membership\_application\_status', true);
41
41
}
42
43
if( $application\_status && ( $application\_status == 'pending' ) ) {
42
43
if ($application\_status && ($application\_status == 'pending')) {
44
44
$WCFMvm->template->get\_template('vendor\_thankyou.php');
45
} elseif( isset( $\_REQUEST\['vmstep'\] ) && $current\_step && ( $current\_step == 'thankyou' ) ) {
45
} elseif (isset($\_REQUEST\['vmstep'\]) && $current\_step && ($current\_step == 'thankyou')) {
46
46
$WCFMvm->template->get\_template('vendor\_thankyou.php');
47
47
} else {
48
48
$WCFMvm->template->get\_template('vendor\_registration.php');
49
49
}
50
} elseif( isset( $\_REQUEST\['vmstep'\] ) && $current\_step && ( $current\_step == 'thankyou' ) ) {
51
$WCFMvm->template->get\_template('vendor\_thankyou.php');
50
} elseif (isset($\_REQUEST\['vmstep'\]) && $current\_step && ($current\_step == 'thankyou')) {
51
$WCFMvm->template->get\_template('vendor\_thankyou.php');
52
52
} else {
53
$WCFMvm->template->get\_template( 'vendor\_membership\_block.php' );
53
$WCFMvm->template->get\_template('vendor\_membership\_block.php');
54
54
}
55
55
}
56
56
57
57
echo '</div></div></div>';
58
58
}
wc-multivendor-membership/trunk/lang/wc-multivendor-membership.pot
r2370726
r2907455
1
#, fuzzy
2
msgid ""
3
msgstr ""
4
"Project-Id-Version: PACKAGE VERSION\\n"
5
"Report-Msgid-Bugs-To: \\n"
6
"POT-Creation-Date: 2020-08-27 23:33+0000\\n"
7
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n"
1
\# /\*! DO NOT EDIT THIS FILE. This file is a auto generated on 2023-04-26 \*/
2
\# This file is distributed under the same license as the WCFM - WooCommerce Multivendor Marketplace plugin.
3
#
4
msgid ""
5
msgstr ""
6
"Project-Id-Version: WCFM - WooCommerce Multivendor Membership 2.10.7\\n"
7
"Report-Msgid-Bugs-To: "
8
"https://wordpress.org/support/plugin/wc-multivendor-membership\\n"
9
"POT-Creation-Date: 2023-04-26 11:15:46+00:00\\n"
10
"MIME-Version: 1.0\\n"
11
"Content-Type: text/plain; charset=utf-8\\n"
12
"Content-Transfer-Encoding: 8bit\\n"
13
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\\n"
8
14
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n"
9
"Language-Team: \\n"
10
"Language: \\n"
11
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n"
12
"MIME-Version: 1.0\\n"
13
"Content-Type: text/plain; charset=UTF-8\\n"
14
"Content-Transfer-Encoding: 8bit\\n"
15
"X-Generator: Loco https://localise.biz/"
16
17
#: controllers/wcfmvm-controller-memberships-manage.php:96 core/class-wcfmvm-shortcode.php:66 core/class-wcfmvm-shortcode.php:76 templates/vendor\_membership.php:23 views/wcfmvm-view-memberships-manage.php:24 views/wcfmvm-view-memberships-settings.php:34
15
"Language-Team: LANGUAGE <[email protected]>\\n"
16
"Language: en\\n"
17
"Plural-Forms: nplurals=2; plural=(n != 1);\\n"
18
"X-Poedit-Country: United States\\n"
19
"X-Poedit-SourceCharset: UTF-8\\n"
20
"X-Poedit-KeywordsList: "
21
"\_\_;\_e;\_x:1,2c;\_ex:1,2c;\_n:1,2;\_nx:1,2,4c;\_n\_noop:1,2;\_nx\_noop:1,2,3c;esc\_"
22
"attr\_\_;esc\_html\_\_;esc\_attr\_e;esc\_html\_e;esc\_attr\_x:1,2c;esc\_html\_x:1,2c;\\n"
23
"X-Poedit-Basepath: ../\\n"
24
"X-Poedit-SearchPath-0: .\\n"
25
"X-Poedit-Bookmarks: \\n"
26
"X-Textdomain-Support: yes\\n"
27
"X-Generator: grunt-wp-i18n 1.0.3\\n"
28
29
#: controllers/wcfmvm-controller-memberships-manage.php:98
30
#: core/class-wcfmvm-shortcode.php:66 core/class-wcfmvm-shortcode.php:76
31
#: templates/vendor\_membership.php:23
32
#: views/wcfmvm-view-memberships-manage.php:24
33
#: views/wcfmvm-view-memberships-settings.php:34
18
34
msgid "Subscribe Now"
19
35
msgstr ""
20
36
21
#: controllers/wcfmvm-controller-memberships-registration.php:231 controllers/wcfmvm-controller-memberships-registration.php:238 core/class-wcfmvm-ajax.php:775 core/class-wcfmvm-ajax.php:782 core/class-wcfmvm-ajax.php:788 core/class-wcfmvm-ajax.php:795
37
#: controllers/wcfmvm-controller-memberships-registration.php:52
38
msgid "Captcha failed, please try again."
39
msgstr ""
40
41
#: controllers/wcfmvm-controller-memberships-registration.php:61
42
#: core/class-wcfmvm-ajax.php:692
43
msgid "Please provide a valid email address."
44
msgstr ""
45
46
#: controllers/wcfmvm-controller-memberships-registration.php:81
47
msgid "Please enter a valid account username."
48
msgstr ""
49
50
#: controllers/wcfmvm-controller-memberships-registration.php:88
51
msgid "There has some error in submitted data."
52
msgstr ""
53
54
#: controllers/wcfmvm-controller-memberships-registration.php:130
55
msgid "Not a valid member"
56
msgstr ""
57
58
#: controllers/wcfmvm-controller-memberships-registration.php:241
59
#: controllers/wcfmvm-controller-memberships-registration.php:248
60
#: core/class-wcfmvm-ajax.php:879 core/class-wcfmvm-ajax.php:886
61
#: core/class-wcfmvm-ajax.php:892 core/class-wcfmvm-ajax.php:899
22
62
msgid "Shop Name not available."
63
msgstr ""
64
65
#: controllers/wcfmvm-controller-memberships-settings.php:31
66
#: core/class-wcfmvm-ajax.php:69 core/class-wcfmvm-ajax.php:135
67
#: core/class-wcfmvm-ajax.php:215 core/class-wcfmvm-ajax.php:404
68
#: core/class-wcfmvm-ajax.php:524 core/class-wcfmvm-ajax.php:555
69
#: core/class-wcfmvm-ajax.php:619 core/class-wcfmvm-ajax.php:655
70
#: core/class-wcfmvm-ajax.php:687 core/class-wcfmvm-ajax.php:749
71
#: core/class-wcfmvm-ajax.php:868 core/class-wcfmvm-pay-for-product.php:210
72
msgid "Invalid nonce! Refresh your page and try again."
73
msgstr ""
74
75
#: controllers/wcfmvm-controller-memberships-settings.php:158
76
msgid "Settings saved successfully"
23
77
msgstr ""
24
78
…
…
27
81
msgstr ""
28
82
29
#: controllers/wcfmvm-controller-memberships.php:83 views/wcfmvm-view-memberships-manage.php:349
83
#: controllers/wcfmvm-controller-memberships.php:83
84
#: views/wcfmvm-view-memberships-manage.php:349
30
85
msgid "One Time"
31
86
msgstr ""
…
…
35
90
msgstr ""
36
91
37
#: controllers/wcfmvm-controller-memberships.php:98 views/wcfmvm-view-memberships-manage.php:350
92
#: controllers/wcfmvm-controller-memberships.php:98
93
#: views/wcfmvm-view-memberships-manage.php:350
38
94
msgid "WC Checkout"
39
95
msgstr ""
40
96
41
#: controllers/wcfmvm-controller-memberships.php:98 views/wcfmvm-view-memberships-manage.php:350
97
#: controllers/wcfmvm-controller-memberships.php:98
98
#: views/wcfmvm-view-memberships-manage.php:350
42
99
msgid "Integrate Payment Options"
43
100
msgstr ""
44
101
45
#: core/class-wcfmvm-ajax.php:207 core/class-wcfmvm-frontend.php:332 core/class-wcfmvm-frontend.php:639
102
#: controllers/wcfmvm-controller-memberships.php:130
103
msgid "Edit"
104
msgstr ""
105
106
#: controllers/wcfmvm-controller-memberships.php:132
107
#: controllers/wcfmvm-controller-memberships.php:134
108
msgid "Delete"
109
msgstr ""
110
111
#: core/class-wcfmvm-ajax.php:81 core/class-wcfmvm-ajax.php:91
112
#: core/class-wcfmvm-ajax.php:111 core/class-wcfmvm-ajax.php:220
113
#: core/class-wcfmvm-ajax.php:409 core/class-wcfmvm-ajax.php:529
114
#: core/class-wcfmvm-ajax.php:560 core/class-wcfmvm-ajax.php:597
115
#: core/class-wcfmvm-ajax.php:624 core/class-wcfmvm-ajax.php:660
116
#: core/class-wcfmvm-pay-for-product.php:215
117
msgid "You don’t have permission to do this."
118
msgstr ""
119
120
#: core/class-wcfmvm-ajax.php:244 core/class-wcfmvm-frontend.php:332
121
#: core/class-wcfmvm-frontend.php:639
46
122
msgid "FREE"
47
123
msgstr ""
48
124
49
#: core/class-wcfmvm-ajax.php:225 templates/vendor\_registration.php:161
125
#: core/class-wcfmvm-ajax.php:257
126
msgid "Vendor Application"
127
msgstr ""
128
129
#: core/class-wcfmvm-ajax.php:262 templates/vendor\_registration.php:161
130
#: views/wcfmvm-view-memberships-settings.php:468
50
131
msgid "First Name"
51
132
msgstr ""
52
133
53
#: core/class-wcfmvm-ajax.php:231 templates/vendor\_registration.php:162
134
#: core/class-wcfmvm-ajax.php:268 templates/vendor\_registration.php:162
135
#: views/wcfmvm-view-memberships-settings.php:469
54
136
msgid "Last Name"
55
137
msgstr ""
56
138
57
#: core/class-wcfmvm-ajax.php:236
139
#: core/class-wcfmvm-ajax.php:273
58
140
msgid "Login"
59
141
msgstr ""
60
142
61
#: core/class-wcfmvm-ajax.php:240 templates/vendor\_registration.php:68 templates/vendor\_registration.php:74
143
#: core/class-wcfmvm-ajax.php:277 templates/vendor\_registration.php:68
144
#: templates/vendor\_registration.php:74
62
145
msgid "Email"
63
146
msgstr ""
64
147
65
#: core/class-wcfmvm-ajax.php:244 templates/vendor\_registration.php:163
148
#: core/class-wcfmvm-ajax.php:281 templates/vendor\_registration.php:163
66
149
msgid "Store Name"
67
150
msgstr ""
68
151
69
#: core/class-wcfmvm-ajax.php:249
152
#: core/class-wcfmvm-ajax.php:286
70
153
msgid "Pay mode"
71
154
msgstr ""
72
155
73
#: core/class-wcfmvm-ajax.php:338
156
#: core/class-wcfmvm-ajax.php:312
157
#: views/wcfmvm-view-memberships-settings.php:471
158
msgid "Store Address"
159
msgstr ""
160
161
#: core/class-wcfmvm-ajax.php:322 templates/vendor\_registration.php:130
162
#: templates/vendor\_registration.php:260
163
#: views/wcfmvm-view-memberships-settings.php:472
164
msgid "Store Phone"
165
msgstr ""
166
167
#: core/class-wcfmvm-ajax.php:375
74
168
msgid "Rejection Reason"
75
169
msgstr ""
76
170
77
#: core/class-wcfmvm-ajax.php:344
171
#: core/class-wcfmvm-ajax.php:381
78
172
msgid "Status Update"
79
173
msgstr ""
80
174
81
#: core/class-wcfmvm-ajax.php:346
175
#: core/class-wcfmvm-ajax.php:383
82
176
msgid "Approve"
83
177
msgstr ""
84
178
85
#: core/class-wcfmvm-ajax.php:347
179
#: core/class-wcfmvm-ajax.php:384
86
180
msgid "Reject"
87
181
msgstr ""
88
182
89
#: core/class-wcfmvm-ajax.php:355
183
#: core/class-wcfmvm-ajax.php:392 core/class-wcfmvm-frontend.php:418
90
184
msgid "Update"
91
185
msgstr ""
92
186
93
#: core/class-wcfmvm-ajax.php:429
187
#: core/class-wcfmvm-ajax.php:478
94
188
msgid "Vendor Application Rejected"
95
189
msgstr ""
96
190
97
#: core/class-wcfmvm-ajax.php:460
98
msgid "Vendor Approval ststus successfully updated."
99
msgstr ""
100
101
#: core/class-wcfmvm-ajax.php:464
102
msgid "Vendor Approval ststus update failed."
103
msgstr ""
104
105
#: core/class-wcfmvm-ajax.php:480
191
#: core/class-wcfmvm-ajax.php:509
192
msgid "Vendor Approval status successfully updated."
193
msgstr ""
194
195
#: core/class-wcfmvm-ajax.php:513
196
msgid "Vendor Approval status update failed."
197
msgstr ""
198
199
#: core/class-wcfmvm-ajax.php:539
106
200
msgid "Manual Cancellation"
107
201
msgstr ""
108
202
109
#: core/class-wcfmvm-ajax.php:482
203
#: core/class-wcfmvm-ajax.php:541
110
204
msgid "Your membership successfully cancelled."
111
205
msgstr ""
112
206
113
#: core/class-wcfmvm-ajax.php:485
114
msgid "Your membership can not be cancelled right now, please contact your store admin."
115
msgstr ""
116
117
#: core/class-wcfmvm-ajax.php:509
207
#: core/class-wcfmvm-ajax.php:544
208
msgid ""
209
"Your membership can not be cancelled right now, please contact your store "
210
"admin."
211
msgstr ""
212
213
#: core/class-wcfmvm-ajax.php:578
118
214
msgid "Vendor membership successfully changed."
119
215
msgstr ""
120
216
121
#: core/class-wcfmvm-ajax.php:512
217
#: core/class-wcfmvm-ajax.php:581
122
218
msgid "Vendor membership can not be changed right now, please try after sometime."
123
219
msgstr ""
124
220
125
#: core/class-wcfmvm-ajax.php:544
221
#: core/class-wcfmvm-ajax.php:592
222
msgid "Invalid security token sent."
223
msgstr ""
224
225
#: core/class-wcfmvm-ajax.php:633
126
226
msgid "Membership Renewal Update"
127
227
msgstr ""
128
228
129
#: core/class-wcfmvm-ajax.php:548
229
#: core/class-wcfmvm-ajax.php:637
130
230
msgid "Next Renewal"
131
231
msgstr ""
132
232
133
#: core/class-wcfmvm-ajax.php:574 core/class-wcfmvm-frontend.php:306 core/class-wcfmvm-frontend.php:349 core/class-wcfmvm-frontend.php:616 core/class-wcfmvm-frontend.php:655
233
#: core/class-wcfmvm-ajax.php:642 views/wcfmvm-view-memberships-manage.php:559
234
#: views/wcfmvm-view-memberships-settings.php:821
235
msgid "Submit"
236
msgstr ""
237
238
#: core/class-wcfmvm-ajax.php:673 core/class-wcfmvm-frontend.php:306
239
#: core/class-wcfmvm-frontend.php:349 core/class-wcfmvm-frontend.php:616
240
#: core/class-wcfmvm-frontend.php:655
134
241
msgid "Never Expire"
135
242
msgstr ""
136
243
137
#: core/class-wcfmvm-ajax.php:577
244
#: core/class-wcfmvm-ajax.php:676
138
245
msgid "Next renewal successfully updated."
139
246
msgstr ""
140
247
141
#: core/class-wcfmvm-ajax.php:635
142
#, php-format
248
#: core/class-wcfmvm-ajax.php:735
143
249
msgid "Verification code sent to your email: %s."
144
250
msgstr ""
145
251
146
#: core/class-wcfmvm-ajax.php:637
252
#: core/class-wcfmvm-ajax.php:737
147
253
msgid "Email verification not working right now, please try after sometime."
148
254
msgstr ""
149
255
150
#: core/class-wcfmvm-ajax.php:678
256
#: core/class-wcfmvm-ajax.php:759
257
msgid "Please provide a valid phone number."
258
msgstr ""
259
260
#: core/class-wcfmvm-ajax.php:779
151
261
msgid "Your verification code is"
152
262
msgstr ""
153
263
154
#: core/class-wcfmvm-ajax.php:751
155
#, php-format
264
#: core/class-wcfmvm-ajax.php:797
265
msgid "SMS Sent Successfully."
266
msgstr ""
267
268
#: core/class-wcfmvm-ajax.php:850
156
269
msgid "Verification code sent to your phone: %s."
157
270
msgstr ""
158
271
159
#: core/class-wcfmvm-ajax.php:757
272
#: core/class-wcfmvm-ajax.php:856
160
273
msgid "Phone verification not working right now, please try after sometime."
161
274
msgstr ""
162
275
163
#: core/class-wcfmvm-frontend.php:139 core/class-wcfmvm-frontend.php:206 views/wcfmvm-view-memberships-manage.php:254 views/wcfmvm-view-memberships-manage.php:254 views/wcfmvm-view-memberships-settings.php:338 views/wcfmvm-view-memberships-settings.php:338 views/wcfmvm-view-memberships.php:24
276
#: core/class-wcfmvm-frontend.php:139 core/class-wcfmvm-frontend.php:206
277
#: views/wcfmvm-view-memberships-manage.php:254
278
#: views/wcfmvm-view-memberships-settings.php:338
279
#: views/wcfmvm-view-memberships.php:24
164
280
msgid "Memberships"
165
281
msgstr ""
…
…
169
285
msgstr ""
170
286
171
#: core/class-wcfmvm-frontend.php:145 views/wcfmvm-view-memberships-settings.php:324
287
#: core/class-wcfmvm-frontend.php:145
288
#: views/wcfmvm-view-memberships-settings.php:324
172
289
msgid "Membership Settings"
173
290
msgstr ""
174
291
175
#: core/class-wcfmvm-frontend.php:174 core/class-wcfmvm-frontend.php:495 core/class-wcfmvm-frontend.php:497 core/class-wcfmvm-frontend.php:505 core/class-wcfmvm-frontend.php:523 core/class-wcfmvm-frontend.php:523 core/class-wcfmvm-frontend.php:543 views/wcfmvm-view-memberships.php:53 views/wcfmvm-view-memberships.php:63
292
#: core/class-wcfmvm-frontend.php:174 core/class-wcfmvm-frontend.php:495
293
#: core/class-wcfmvm-frontend.php:497 core/class-wcfmvm-frontend.php:505
294
#: core/class-wcfmvm-frontend.php:523 core/class-wcfmvm-frontend.php:543
295
#: views/wcfmvm-view-memberships.php:53 views/wcfmvm-view-memberships.php:63
176
296
msgid "Membership"
177
297
msgstr ""
178
298
179
#: core/class-wcfmvm-frontend.php:175 helpers/wcfmvm-core-functions.php:213 helpers/wcfmvm-core-functions.php:226 views/wcfmvm-view-memberships-settings.php:398 includes/shortcodes/class-wcfmvm-shortcode-vendor-registration.php:32
299
#: core/class-wcfmvm-frontend.php:174
300
msgid "This page should have shortcode - wcfm\_vendor\_membership"
301
msgstr ""
302
303
#: core/class-wcfmvm-frontend.php:175 helpers/wcfmvm-core-functions.php:198
304
#: helpers/wcfmvm-core-functions.php:211
305
#: includes/shortcodes/class-wcfmvm-shortcode-vendor-registration.php:32
306
#: views/wcfmvm-view-memberships-settings.php:398
180
307
msgid "Registration"
181
308
msgstr ""
182
309
183
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566 core/class-wcfmvm-frontend.php:1142 core/class-wcfmvm.php:1330 templates/vendor\_membership.php:130 templates/vendor\_payment.php:119 views/wcfmvm-view-memberships-manage.php:232
310
#: core/class-wcfmvm-frontend.php:175
311
msgid ""
312
"This is an optional page, you may use this as Free Membership registration "
313
"page. This page should have shortcode - wcfm\_vendor\_registration"
314
msgstr ""
315
316
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566
317
#: core/class-wcfmvm-frontend.php:1179 core/class-wcfmvm.php:1330
318
#: templates/vendor\_membership.php:129 templates/vendor\_payment.php:119
319
#: views/wcfmvm-view-memberships-manage.php:232
184
320
msgid "Day(s)"
185
321
msgstr ""
186
322
187
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566 core/class-wcfmvm-frontend.php:1142 core/class-wcfmvm.php:1330 templates/vendor\_membership.php:130 templates/vendor\_payment.php:119 views/wcfmvm-view-memberships-manage.php:232
323
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566
324
#: core/class-wcfmvm-frontend.php:1179 core/class-wcfmvm.php:1330
325
#: templates/vendor\_membership.php:129 templates/vendor\_payment.php:119
326
#: views/wcfmvm-view-memberships-manage.php:232
188
327
msgid "Month(s)"
189
328
msgstr ""
190
329
191
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566 core/class-wcfmvm-frontend.php:1142 core/class-wcfmvm.php:1330 templates/vendor\_membership.php:130 templates/vendor\_payment.php:119 views/wcfmvm-view-memberships-manage.php:232
330
#: core/class-wcfmvm-frontend.php:258 core/class-wcfmvm-frontend.php:566
331
#: core/class-wcfmvm-frontend.php:1179 core/class-wcfmvm.php:1330
332
#: templates/vendor\_membership.php:129 templates/vendor\_payment.php:119
333
#: views/wcfmvm-view-memberships-manage.php:232
192
334
msgid "Year(s)"
193
335
msgstr ""
…
…
201
343
msgstr ""
202
344
203
#: core/class-wcfmvm-frontend.php:298 core/class-wcfmvm-frontend.php:609 templates/vendor\_payment.php:95
345
#: core/class-wcfmvm-frontend.php:298 core/class-wcfmvm-frontend.php:609
346
#: templates/vendor\_payment.php:95
204
347
msgid "FREE Plan!!! There is no payment option for this."
205
348
msgstr ""
206
349
207
#: core/class-wcfmvm-frontend.php:301 core/class-wcfmvm-frontend.php:341 core/class-wcfmvm-frontend.php:347 core/class-wcfmvm-frontend.php:612 core/class-wcfmvm-frontend.php:648 core/class-wcfmvm-frontend.php:654
350
#: core/class-wcfmvm-frontend.php:301 core/class-wcfmvm-frontend.php:341
351
#: core/class-wcfmvm-frontend.php:347 core/class-wcfmvm-frontend.php:612
352
#: core/class-wcfmvm-frontend.php:648 core/class-wcfmvm-frontend.php:654
208
353
msgid "Expire on: "
209
354
msgstr ""
…
…
221
366
msgstr ""
222
367
223
#: core/class-wcfmvm-frontend.php:358 core/class-wcfmvm-frontend.php:661 templates/vendor\_membership.php:154 templates/vendor\_membership.php:221 templates/vendor\_payment.php:127
368
#: core/class-wcfmvm-frontend.php:358 core/class-wcfmvm-frontend.php:661
369
#: templates/vendor\_membership.php:153 templates/vendor\_membership.php:220
370
#: templates/vendor\_payment.php:127
224
371
msgid "One time payment"
225
372
msgstr ""
226
373
227
#: core/class-wcfmvm-frontend.php:362 core/class-wcfmvm-frontend.php:665 templates/vendor\_membership.php:157 templates/vendor\_membership.php:224
228
#, php-format
374
#: core/class-wcfmvm-frontend.php:362 core/class-wcfmvm-frontend.php:665
375
#: templates/vendor\_membership.php:156 templates/vendor\_membership.php:223
229
376
msgid "for each %s %s"
230
377
msgstr ""
231
378
232
#: core/class-wcfmvm-frontend.php:364 core/class-wcfmvm-frontend.php:667 templates/vendor\_membership.php:159 templates/vendor\_membership.php:226
233
#, php-format
379
#: core/class-wcfmvm-frontend.php:364 core/class-wcfmvm-frontend.php:667
380
#: templates/vendor\_membership.php:158 templates/vendor\_membership.php:225
234
381
msgid "with %s for first %s %s"
235
382
msgstr ""
236
383
237
#: core/class-wcfmvm-frontend.php:366 core/class-wcfmvm-frontend.php:669 templates/vendor\_membership.php:161 templates/vendor\_membership.php:228 templates/vendor\_payment.php:133 templates/vendor\_payment.php:149
238
#, php-format
384
#: core/class-wcfmvm-frontend.php:366 core/class-wcfmvm-frontend.php:669
385
#: templates/vendor\_membership.php:160 templates/vendor\_membership.php:227
386
#: templates/vendor\_payment.php:133 templates/vendor\_payment.php:149
239
387
msgid "with %s %s free trial"
240
388
msgstr ""
…
…
277
425
278
426
#: core/class-wcfmvm-frontend.php:750 core/class-wcfmvm-frontend.php:777
279
#, php-format
280
427
msgid "%sChange or Upgrade your current membership plan >>%s"
281
428
msgstr ""
282
429
283
430
#: core/class-wcfmvm-frontend.php:752
284
#, php-format
285
431
msgid "%sChange or Upgrade: First cancel your current subscription.%s"
286
432
msgstr ""
…
…
294
440
msgstr ""
295
441
442
#: core/class-wcfmvm-frontend.php:782 core/class-wcfmvm-frontend.php:788
443
#: core/class-wcfmvm-frontend.php:789
444
msgid "Vendor"
445
msgstr ""
446
296
447
#: core/class-wcfmvm-frontend.php:783
297
448
msgid "New Membership"
…
…
318
469
msgstr ""
319
470
320
#: core/class-wcfmvm-frontend.php:789 views/wcfmvm-view-memberships-settings.php:533
471
#: core/class-wcfmvm-frontend.php:789
472
#: views/wcfmvm-view-memberships-settings.php:480
473
#: views/wcfmvm-view-memberships-settings.php:533
321
474
msgid "Enable"
322
475
msgstr ""
…
…
326
479
msgstr ""
327
480
328
#: core/class-wcfmvm-frontend.php:1159
481
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
482
msgid "Too short"
483
msgstr ""
484
485
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
486
msgid "Weak"
487
msgstr ""
488
489
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
490
msgid "Good"
491
msgstr ""
492
493
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
494
msgid "Strong"
495
msgstr ""
496
497
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
498
msgid "Password strength should be atleast \\"Good\\"."
499
msgstr ""
500
501
#: core/class-wcfmvm-frontend.php:880 core/class-wcfmvm-frontend.php:930
502
msgid "Choose "
503
msgstr ""
504
505
#: core/class-wcfmvm-frontend.php:1197
329
506
msgid "Pay"
330
507
msgstr ""
331
508
332
#: core/class-wcfmvm-frontend.php:1192
509
#: core/class-wcfmvm-frontend.php:1230
333
510
msgid "Subscribe"
334
511
msgstr ""
335
512
336
#: core/class-wcfmvm-frontend.php:1197
513
#: core/class-wcfmvm-frontend.php:1235
337
514
msgid "Stripe Plan ID missing."
338
515
msgstr ""
339
516
340
#: core/class-wcfmvm-frontend.php:1198 views/wcfmvm-view-memberships-manage.php:375
341
#, php-format
517
#: core/class-wcfmvm-frontend.php:1236
518
#: views/wcfmvm-view-memberships-manage.php:375
342
519
msgid "%sHow can I have this?%s"
343
520
msgstr ""
344
521
345
#: core/class-wcfmvm-frontend.php:1305 templates/vendor\_payment.php:101 templates/vendor\_payment.php:167 templates/vendor\_payment.php:180 templates/vendor\_payment.php:197
346
msgid "Proceed"
347
msgstr ""
348
349
#: core/class-wcfmvm-library.php:119 core/class-wcfmvm-library.php:126 core/class-wcfmvm-library.php:133
350
msgid ""
351
"Do you want to cancel this membership?\\n"
522
#: core/class-wcfmvm-library.php:101
523
msgid "Clear"
524
msgstr ""
525
526
#: core/class-wcfmvm-library.php:101
527
msgid "Default"
528
msgstr ""
529
530
#: core/class-wcfmvm-library.php:101
531
msgid "Select Color"
532
msgstr ""
533
534
#: core/class-wcfmvm-library.php:119 core/class-wcfmvm-library.php:126
535
#: core/class-wcfmvm-library.php:133
536
msgid ""
537
"Do you want to cancel this membership?\\r\\n"
352
538
"You can't undo this action ..."
353
539
msgstr ""
…
…
357
543
msgstr ""
358
544
545
#: core/class-wcfmvm-non-ajax.php:31
546
#: views/wcfmvm-view-memberships-manage.php:253
547
#: views/wcfmvm-view-memberships.php:34
548
msgid "Settings"
549
msgstr ""
550
359
551
#: core/class-wcfmvm-non-ajax.php:38 core/class-wcfmvm-non-ajax.php:65
360
552
msgid "Add custom capability with each Membership Level."
…
…
369
561
msgstr ""
370
562
371
#: core/class-wcfmvm-pay-for-product.php:61 core/class-wcfmvm-pay-for-product.php:65 core/class-wcfmvm-pay-for-product.php:268 core/class-wcfmvm-pay-for-product.php:286 core/class-wcfmvm.php:320
563
#: core/class-wcfmvm-non-ajax.php:56
564
msgid "Documentation"
565
msgstr ""
566
567
#: core/class-wcfmvm-non-ajax.php:57
568
msgid "View WCFM Video Tutorial"
569
msgstr ""
570
571
#: core/class-wcfmvm-non-ajax.php:57
572
msgid "Video Tutorial"
573
msgstr ""
574
575
#: core/class-wcfmvm-non-ajax.php:58
576
msgid "Visit premium customer support"
577
msgstr ""
578
579
#: core/class-wcfmvm-non-ajax.php:58
580
msgid "Support"
581
msgstr ""
582
583
#: core/class-wcfmvm-non-ajax.php:60
584
msgid "Any WC help feel free to contact us"
585
msgstr ""
586
587
#: core/class-wcfmvm-non-ajax.php:60
588
msgid "Customization Help"
589
msgstr ""
590
591
#: core/class-wcfmvm-pay-for-product.php:61
592
#: core/class-wcfmvm-pay-for-product.php:65
593
#: core/class-wcfmvm-pay-for-product.php:280
594
#: core/class-wcfmvm-pay-for-product.php:298 core/class-wcfmvm.php:320
372
595
msgid "Pay for Product"
373
596
msgstr ""
…
…
402
625
403
626
#: core/class-wcfmvm-pay-for-product.php:72
404
msgid "You may overwrite any other product limit setting by this and may set NO LIMIT to enforce vendors to purchase credit for adding new products."
627
msgid ""
628
"You may overwrite any other product limit setting by this and may set NO "
629
"LIMIT to enforce vendors to purchase credit for adding new products."
405
630
msgstr ""
406
631
…
…
414
639
415
640
#: core/class-wcfmvm-pay-for-product.php:191
416
#, php-format
417
641
msgid "Increase Limit By %s"
418
642
msgstr ""
…
…
422
646
msgstr ""
423
647
424
#: core/class-wcfmvm-pay-for-product.php:218
648
#: core/class-wcfmvm-pay-for-product.php:230
425
649
msgid "Pay for Product succes!"
426
650
msgstr ""
427
651
428
#: core/class-wcfmvm-pay-for-product.php:222
652
#: core/class-wcfmvm-pay-for-product.php:234
429
653
msgid "Pay for Product failed!"
430
654
msgstr ""
431
655
432
#: core/class-wcfmvm-pay-for-product.php:256
656
#: core/class-wcfmvm-pay-for-product.php:268
433
657
msgid "Pay for Product Credit Limit"
434
658
msgstr ""
435
659
436
#: core/class-wcfmvm-pay-for-product.php:259
437
#, php-format
660
#: core/class-wcfmvm-pay-for-product.php:269
661
#: core/class-wcfmvm-pay-for-product.php:288
662
msgid "Hi"
663
msgstr ""
664
665
#: core/class-wcfmvm-pay-for-product.php:271
438
666
msgid "%s has just purchased product credit limit: %s."
439
667
msgstr ""
440
668
441
#: core/class-wcfmvm-pay-for-product.php:275
669
#: core/class-wcfmvm-pay-for-product.php:272
670
#: core/class-wcfmvm-pay-for-product.php:291
671
#: helpers/wcfmvm-core-functions.php:200 helpers/wcfmvm-core-functions.php:214
672
#: views/emails/email-verification.php:27
673
#: views/emails/plain/email-verification.php:27
674
#: views/wcfmvm-view-memberships-manage.php:437
675
#: views/wcfmvm-view-memberships-settings.php:547
676
msgid "Thank You"
677
msgstr ""
678
679
#: core/class-wcfmvm-pay-for-product.php:287
442
680
msgid "Product Limit Credited"
443
681
msgstr ""
444
682
445
#: core/class-wcfmvm-pay-for-product.php:278 core/class-wcfmvm-pay-for-product.php:297
446
#, php-format
683
#: core/class-wcfmvm-pay-for-product.php:290
684
#: core/class-wcfmvm-pay-for-product.php:309
447
685
msgid "You have just received product credit limit: %s"
448
686
msgstr ""
449
687
450
#: core/class-wcfmvm-pay-for-product.php:293
451
#, php-format
688
#: core/class-wcfmvm-pay-for-product.php:305
452
689
msgid "%s has just received product credit limit: %s"
453
690
msgstr ""
454
691
455
#: core/class-wcfmvm-pay-for-product.php:309
692
#: core/class-wcfmvm-pay-for-product.php:321
456
693
msgid "Pay for Product Credit"
457
694
msgstr ""
458
695
459
#: core/class-wcfmvm-shortcode.php:48 templates/vendor\_membership.php:277 templates/vendor\_membership.php:297
696
#: core/class-wcfmvm-shortcode.php:48 templates/vendor\_membership.php:276
697
#: templates/vendor\_membership.php:296
460
698
msgid "Kindly logout from Admin account to have \\"Subscribe Now\\" button."
461
699
msgstr ""
462
700
463
#: core/class-wcfmvm-shortcode.php:61 templates/vendor\_membership.php:270 templates/vendor\_membership.php:290
701
#: core/class-wcfmvm-shortcode.php:61 templates/vendor\_membership.php:269
702
#: templates/vendor\_membership.php:289
464
703
msgid "Your Plan"
465
704
msgstr ""
…
…
529
768
msgstr ""
530
769
531
#: core/class-wcfmvm.php:1117 core/class-wcfmvm.php:1199 core/class-wcfmvm.php:1254 core/class-wcfmvm.php:1289
770
#: core/class-wcfmvm.php:1117 core/class-wcfmvm.php:1199
771
#: core/class-wcfmvm.php:1254 core/class-wcfmvm.php:1289
532
772
msgid "Visit now ..."
533
773
msgstr ""
…
…
550
790
551
791
#: core/class-wcfmvm.php:1212
552
#, php-format
553
792
msgid "<b>%s</b> (Store: <b>%s</b>) subscribed for <b>%s</b> membership plan."
554
793
msgstr ""
555
794
556
795
#: core/class-wcfmvm.php:1214
557
#, php-format
558
796
msgid "<b>%s</b> (Store: <b>%s</b>) has renewed membership plan to <b>%s</b>."
559
797
msgstr ""
560
798
561
799
#: core/class-wcfmvm.php:1216
562
#, php-format
563
800
msgid "<b>%s</b> (Store: <b>%s</b>) has changed membership plan to <b>%s</b>."
564
801
msgstr ""
565
802
566
803
#: core/class-wcfmvm.php:1222
567
#, php-format
568
804
msgid "You have subscribed for <b>%s</b> membership plan."
569
805
msgstr ""
570
806
571
807
#: core/class-wcfmvm.php:1224
572
#, php-format
573
808
msgid "You have renewed membership plan to <b>%s</b>."
574
809
msgstr ""
575
810
576
811
#: core/class-wcfmvm.php:1226
577
#, php-format
578
812
msgid "You have changed membership plan to <b>%s</b>."
579
813
msgstr ""
…
…
584
818
585
819
#: core/class-wcfmvm.php:1295
586
#, php-format
587
820
msgid "<b>%s</b> (Store: <b>%s</b>) successfully registered to our site."
588
821
msgstr ""
…
…
592
825
msgstr ""
593
826
594
#: core/class-wcfmvm.php:1532
827
#: core/class-wcfmvm.php:1541
595
828
msgid "WC Subscription Cancellation"
596
829
msgstr ""
597
830
598
#: core/class-wcfmvm.php:1621
831
#: core/class-wcfmvm.php:1630
599
832
msgid "No Membership"
600
833
msgstr ""
601
834
602
#: core/class-wcfmvm.php:1625
835
#: core/class-wcfmvm.php:1634
603
836
msgid "Check Here ..."
604
837
msgstr ""
605
838
606
#: core/class-wcfmvm.php:1626
839
#: core/class-wcfmvm.php:1635
607
840
msgid "Vendor Approval"
608
841
msgstr ""
609
842
610
#: core/class-wcfmvm.php:1641
611
#, php-format
843
#: core/class-wcfmvm.php:1650
612
844
msgid "<b>%s</b> (Store: <b>%s</b>) vendor application waiting for approval."
613
845
msgstr ""
614
846
615
#: core/class-wcfmvm.php:1643
616
#, php-format
617
msgid "<b>%s</b> (Store: <b>%s</b>) subscription for <b>%s</b> plan waiting for approval."
618
msgstr ""
619
620
#: core/class-wcfmvm.php:1702
847
#: core/class-wcfmvm.php:1652
848
msgid ""
849
"<b>%s</b> (Store: <b>%s</b>) subscription for <b>%s</b> plan waiting for "
850
"approval."
851
msgstr ""
852
853
#: core/class-wcfmvm.php:1715
621
854
msgid "Membership Subscription Cancel"
622
855
msgstr ""
623
856
624
#: core/class-wcfmvm.php:1708
625
#, php-format
857
#: core/class-wcfmvm.php:1721
626
858
msgid "<b>%s</b> (Store: <b>%s</b>) membership plan <b>%s</b> has been cancelled."
627
859
msgstr ""
628
860
629
#: core/class-wcfmvm.php:1714
630
#, php-format
861
#: core/class-wcfmvm.php:1727
631
862
msgid "Your membership plan <b>%s</b> has been cancelled."
632
863
msgstr ""
633
864
634
#: core/class-wcfmvm.php:1815
865
#: core/class-wcfmvm.php:1766 core/class-wcfmvm.php:1883
866
msgid "<b>%s</b> (Store: <b>%s</b>) has been disabled."
867
msgstr ""
868
869
#: core/class-wcfmvm.php:1772 core/class-wcfmvm.php:1889
870
msgid "Your Store: <b>%s</b> has been disabled."
871
msgstr ""
872
873
#: core/class-wcfmvm.php:1834
635
874
msgid "Membership Subscription Expired"
636
875
msgstr ""
637
876
638
#: core/class-wcfmvm.php:1821
639
#, php-format
877
#: core/class-wcfmvm.php:1840
640
878
msgid "<b>%s</b> (Store: <b>%s</b>) membership plan <b>%s</b> has been expired."
641
879
msgstr ""
642
880
643
#: core/class-wcfmvm.php:1827
644
#, php-format
881
#: core/class-wcfmvm.php:1846
645
882
msgid "Your membership plan <b>%s</b> has been expired."
646
883
msgstr ""
647
884
648
#: core/class-wcfmvm.php:1922
649
#, php-format
885
#: core/class-wcfmvm.php:1943
650
886
msgid "Subscription cancelled at %s"
651
887
msgstr ""
652
888
653
#: core/class-wcfmvm.php:2081 core/class-wcfmvm.php:2084
889
#: core/class-wcfmvm.php:2102 core/class-wcfmvm.php:2105
654
890
msgid "in"
655
891
msgstr ""
656
892
657
#: core/class-wcfmvm.php:2081 core/class-wcfmvm.php:2084
893
#: core/class-wcfmvm.php:2102 core/class-wcfmvm.php:2105
658
894
msgid "Days"
659
895
msgstr ""
660
896
661
#: core/class-wcfmvm.php:2088
897
#: core/class-wcfmvm.php:2109
662
898
msgid "Today"
663
899
msgstr ""
664
900
665
#: core/class-wcfmvm.php:2114
901
#: core/class-wcfmvm.php:2135
666
902
msgid "Membership Subscription Renewal"
667
903
msgstr ""
668
904
669
#: core/class-wcfmvm.php:2116
905
#: core/class-wcfmvm.php:2137
670
906
msgid "Subscription Next Payment"
671
907
msgstr ""
672
908
673
#: core/class-wcfmvm.php:2126
674
#, php-format
909
#: core/class-wcfmvm.php:2147
675
910
msgid "<b>%s</b> membership plan (<strong>%s</strong>) will expire <b>%s</b>."
676
911
msgstr ""
677
912
678
#: core/class-wcfmvm.php:2128
679
#, php-format
680
msgid "<b>%s</b> membership plan (<strong>%s</strong>) subscription next billing date <b>%s</b>."
681
msgstr ""
682
683
#: core/class-wcfmvm.php:2136
684
#, php-format
913
#: core/class-wcfmvm.php:2149
914
msgid ""
915
"<b>%s</b> membership plan (<strong>%s</strong>) subscription next billing "
916
"date <b>%s</b>."
917
msgstr ""
918
919
#: core/class-wcfmvm.php:2157
685
920
msgid "Your membership plan (<strong>%s</strong>) will expire <b>%s</b>."
686
921
msgstr ""
687
922
688
#: core/class-wcfmvm.php:2138
689
#, php-format
690
msgid "Your membership plan (<strong>%s</strong>) subscription next billing date <b>%s</b>."
923
#: core/class-wcfmvm.php:2159
924
msgid ""
925
"Your membership plan (<strong>%s</strong>) subscription next billing date "
926
"<b>%s</b>."
691
927
msgstr ""
692
928
…
…
699
935
msgstr ""
700
936
701
#: helpers/wcfmvm-core-functions.php:165
937
#: helpers/wcfmvm-core-functions.php:6
938
msgid ""
939
"%sWCFM - Membership is inactive.%s The %sWooCommerce plugin%s must be "
940
"active for the WCFM - Membership to work. Please %sinstall & activate "
941
"WooCommerce%s"
942
msgstr ""
943
944
#: helpers/wcfmvm-core-functions.php:16
945
msgid ""
946
"%sWCFM - Membership is inactive.%s The %sWooCommerce Frontend Manager%s "
947
"must be active for the WCFM - Membership to work. Please %sinstall & "
948
"activate WooCommerce Frontend Manager%s"
949
msgstr ""
950
951
#: helpers/wcfmvm-core-functions.php:150
702
952
msgid "PayPal"
703
953
msgstr ""
704
954
705
#: helpers/wcfmvm-core-functions.php:166
955
#: helpers/wcfmvm-core-functions.php:151
706
956
msgid "Credit or Debit Card (Stripe)"
707
957
msgstr ""
708
958
709
#: helpers/wcfmvm-core-functions.php:167
959
#: helpers/wcfmvm-core-functions.php:152
710
960
msgid "Bank Transfer"
711
961
msgstr ""
712
962
713
#: helpers/wcfmvm-core-functions.php:212 helpers/wcfmvm-core-functions.php:227 templates/vendor\_registration.php:442
963
#: helpers/wcfmvm-core-functions.php:197 helpers/wcfmvm-core-functions.php:212
964
#: templates/vendor\_registration.php:431
714
965
msgid "Plans"
715
966
msgstr ""
716
967
717
#: helpers/wcfmvm-core-functions.php:214 helpers/wcfmvm-core-functions.php:228 templates/vendor\_payment.php:93
968
#: helpers/wcfmvm-core-functions.php:199 helpers/wcfmvm-core-functions.php:213
969
#: templates/vendor\_payment.php:93
718
970
msgid "Confirmation"
719
971
msgstr ""
720
972
721
#: helpers/wcfmvm-core-functions.php:215 helpers/wcfmvm-core-functions.php:229 views/wcfmvm-view-memberships-manage.php:437 views/wcfmvm-view-memberships-settings.php:547
722
msgid "Thank You"
723
msgstr ""
724
725
#: helpers/wcfmvm-core-functions.php:238
973
#: helpers/wcfmvm-core-functions.php:223
974
#: views/wcfmvm-view-memberships-settings.php:499
726
975
msgid "Payment"
727
976
msgstr ""
728
977
729
#: helpers/wcfmvm-core-functions.php:243
978
#: helpers/wcfmvm-core-functions.php:228
730
979
msgid "Profile"
731
980
msgstr ""
732
981
733
#: helpers/wcfmvm-core-functions.php:308
982
#: helpers/wcfmvm-core-functions.php:292
734
983
msgid "Email Verification"
735
984
msgstr ""
736
985
986
#: helpers/wcfmvm-core-functions.php:303
987
msgid "Please insert Membership Name before submit."
988
msgstr ""
989
990
#: helpers/wcfmvm-core-functions.php:304
991
msgid "Membership Saving Failed."
992
msgstr ""
993
994
#: helpers/wcfmvm-core-functions.php:305
995
msgid "Membership Successfully Saved."
996
msgstr ""
997
998
#: helpers/wcfmvm-core-functions.php:317
999
msgid "Please insert Username before submit."
1000
msgstr ""
1001
1002
#: helpers/wcfmvm-core-functions.php:318
1003
msgid "Please insert Email before submit."
1004
msgstr ""
1005
737
1006
#: helpers/wcfmvm-core-functions.php:319
738
msgid "Please insert Membership Name before submit."
1007
msgid "This Username already exists. Please login to the site and apply as vendor."
739
1008
msgstr ""
740
1009
741
1010
#: helpers/wcfmvm-core-functions.php:320
742
msgid "Membership Saving Failed."
1011
msgid "This Email already exists. Please login to the site and apply as vendor."
743
1012
msgstr ""
744
1013
745
1014
#: helpers/wcfmvm-core-functions.php:321
746
msgid "Membership Successfully Saved."
747
msgstr ""
748
749
#: helpers/wcfmvm-core-functions.php:333
750
msgid "Please insert Username before submit."
751
msgstr ""
752
753
#: helpers/wcfmvm-core-functions.php:334
754
msgid "Please insert Email before submit."
755
msgstr ""
756
757
#: helpers/wcfmvm-core-functions.php:335
758
msgid "This Username already exists. Please login to the site and apply as vendor."
1015
msgid "Email verification code invalid."
1016
msgstr ""
1017
1018
#: helpers/wcfmvm-core-functions.php:322
1019
msgid "Phone verification code (OTP) invalid."
1020
msgstr ""
1021
1022
#: helpers/wcfmvm-core-functions.php:323
1023
msgid "Registration Failed."
1024
msgstr ""
1025
1026
#: helpers/wcfmvm-core-functions.php:324
1027
msgid "Registration Successfully Completed."
759
1028
msgstr ""
760
1029
761
1030
#: helpers/wcfmvm-core-functions.php:336
762
msgid "This Email already exists. Please login to the site and apply as vendor."
1031
msgid "No Membership ID found, please try again."
763
1032
msgstr ""
764
1033
765
1034
#: helpers/wcfmvm-core-functions.php:337
766
msgid "Email verification code invalid."
1035
msgid "Subscription Failed."
767
1036
msgstr ""
768
1037
769
1038
#: helpers/wcfmvm-core-functions.php:338
770
msgid "Phone verification code (OTP) invalid."
771
msgstr ""
772
773
#: helpers/wcfmvm-core-functions.php:339
774
msgid "Registration Failed."
775
msgstr ""
776
777
#: helpers/wcfmvm-core-functions.php:340
778
msgid "Registration Successfully Completed."
779
msgstr ""
780
781
#: helpers/wcfmvm-core-functions.php:352
782
msgid "No Membership ID found, please try again."
783
msgstr ""
784
785
#: helpers/wcfmvm-core-functions.php:353
786
msgid "Subscription Failed."
787
msgstr ""
788
789
#: helpers/wcfmvm-core-functions.php:354
790
1039
msgid "Subscription Successfully Completed."
791
1040
msgstr ""
792
1041
793
#: helpers/wcfmvm-core-functions.php:392 helpers/wcfmvm-core-functions.php:409 views/wcfmvm-view-memberships-settings.php:534
1042
#: helpers/wcfmvm-core-functions.php:376 helpers/wcfmvm-core-functions.php:393
1043
#: views/wcfmvm-view-memberships-settings.php:534
794
1044
msgid "Tax"
795
1045
msgstr ""
796
1046
797
#: helpers/wcfmvm-core-functions.php:396
1047
#: helpers/wcfmvm-core-functions.php:380
798
1048
msgid "will be applied"
799
1049
msgstr ""
800
1050
801
#: helpers/wcfmvm-core-functions.php:397
1051
#: helpers/wcfmvm-core-functions.php:381
802
1052
msgid "applied"
803
1053
msgstr ""
804
1054
805
#: helpers/wcfmvm-core-functions.php:429
1055
#: helpers/wcfmvm-core-functions.php:413
806
1056
msgid "Plan Details"
807
1057
msgstr ""
808
1058
809
#: templates/vendor\_membership.php:138 templates/vendor\_membership.php:205
1059
#: includes/emails/class-wcfmvm-email-email-verification.php:21
1060
msgid "Email verification emails are sent during vendor registertion."
1061
msgstr ""
1062
1063
#: includes/emails/class-wcfmvm-email-email-verification.php:24
1064
msgid "Email Verification Code"
1065
msgstr ""
1066
1067
#: includes/emails/class-wcfmvm-email-email-verification.php:143
1068
msgid "Enable/Disable"
1069
msgstr ""
1070
1071
#: includes/emails/class-wcfmvm-email-email-verification.php:145
1072
msgid "Enable this email notification."
1073
msgstr ""
1074
1075
#: includes/emails/class-wcfmvm-email-email-verification.php:149
1076
msgid "Subject"
1077
msgstr ""
1078
1079
#: includes/emails/class-wcfmvm-email-email-verification.php:151
1080
msgid ""
1081
"This controls the email subject line. Leave it blank to use the default "
1082
"subject: <code>%s</code>."
1083
msgstr ""
1084
1085
#: includes/emails/class-wcfmvm-email-email-verification.php:156
1086
msgid "Email Heading"
1087
msgstr ""
1088
1089
#: includes/emails/class-wcfmvm-email-email-verification.php:158
1090
msgid ""
1091
"This controls the main heading contained within the email notification. "
1092
"Leave it blank to use the default heading: <code>%s</code>."
1093
msgstr ""
1094
1095
#: includes/emails/class-wcfmvm-email-email-verification.php:163
1096
msgid "Email Type"
1097
msgstr ""
1098
1099
#: includes/emails/class-wcfmvm-email-email-verification.php:165
1100
msgid "Choose which format of email to be sent."
1101
msgstr ""
1102
1103
#: includes/emails/class-wcfmvm-email-email-verification.php:169
1104
msgid "Plain Text"
1105
msgstr ""
1106
1107
#: includes/emails/class-wcfmvm-email-email-verification.php:170
1108
msgid "HTML"
1109
msgstr ""
1110
1111
#: includes/emails/class-wcfmvm-email-email-verification.php:171
1112
msgid "Multipart"
1113
msgstr ""
1114
1115
#: templates/vendor\_membership.php:137 templates/vendor\_membership.php:204
810
1116
msgid "Most Popular"
811
1117
msgstr ""
812
1118
813
#: templates/vendor\_membership.php:150 templates/vendor\_membership.php:217
1119
#: templates/vendor\_membership.php:149 templates/vendor\_membership.php:216
814
1120
msgid "No payment required"
815
1121
msgstr ""
816
1122
817
#: templates/vendor\_membership.php:267 templates/vendor\_membership.php:287
1123
#: templates/vendor\_membership.php:266 templates/vendor\_membership.php:286
818
1124
msgid "Extend Subscription"
819
1125
msgstr ""
820
1126
821
1127
#: templates/vendor\_membership\_block.php:18
822
#, php-format
823
msgid "Restricted: You are not allowed to access this page. May be you already have a %sMembership Plan%s or your %sUser Role%s does not allow for this action. %sPlease contact %sStore Admin%s for more details."
1128
msgid ""
1129
"Restricted: You are not allowed to access this page. May be you already "
1130
"have a %sMembership Plan%s or your %sUser Role%s does not allow for this "
1131
"action. %sPlease contact %sStore Admin%s for more details."
824
1132
msgstr ""
825
1133
826
1134
#: templates/vendor\_no\_free\_membership.php:18
827
#, php-format
828
msgid "Restricted: There is no %sFREE Membership Plan%s in the system or you are not allowed to access this page. Please contact %sStore Admin%s for more details."
1135
msgid ""
1136
"Restricted: There is no %sFREE Membership Plan%s in the system or you are "
1137
"not allowed to access this page. Please contact %sStore Admin%s for more "
1138
"details."
829
1139
msgstr ""
830
1140
831
1141
#: templates/vendor\_payment.php:54
832
msgid "Something Wrong: You are not allowed to access this page now. Please contact Store Admin for more details."
1142
msgid ""
1143
"Something Wrong: You are not allowed to access this page now. Please "
1144
"contact Store Admin for more details."
833
1145
msgstr ""
834
1146
…
…
837
1149
msgstr ""
838
1150
1151
#: templates/vendor\_payment.php:101 templates/vendor\_payment.php:167
1152
#: templates/vendor\_payment.php:180 templates/vendor\_payment.php:197
1153
msgid "Proceed"
1154
msgstr ""
1155
839
1156
#: templates/vendor\_payment.php:108
840
1157
msgid "Payment options:"
841
1158
msgstr ""
842
1159
843
#: templates/vendor\_payment.php:132 templates/vendor\_payment.php:148 templates/vendor\_payment.php:154
844
#, php-format
1160
#: templates/vendor\_payment.php:132 templates/vendor\_payment.php:148
1161
#: templates/vendor\_payment.php:154
845
1162
msgid "%s for each %s %s"
846
1163
msgstr ""
847
1164
848
1165
#: templates/vendor\_payment.php:137 templates/vendor\_payment.php:144
849
#, php-format
850
1166
msgid "%s for first %s %s"
851
1167
msgstr ""
852
1168
853
1169
#: templates/vendor\_payment.php:138 templates/vendor\_payment.php:145
854
#, php-format
855
1170
msgid "and then %s for each %s %s"
856
1171
msgstr ""
…
…
868
1183
msgstr ""
869
1184
1185
#: templates/vendor\_registration.php:105 templates/vendor\_registration.php:146
1186
#: templates/vendor\_registration.php:389
1187
msgid "This field is required."
1188
msgstr ""
1189
870
1190
#: templates/vendor\_registration.php:105
871
1191
msgid "Verification Code"
…
…
896
1216
msgstr ""
897
1217
1218
#: templates/vendor\_registration.php:244
1219
msgid "Address 1"
1220
msgstr ""
1221
1222
#: templates/vendor\_registration.php:245
1223
msgid "Address 2"
1224
msgstr ""
1225
1226
#: templates/vendor\_registration.php:246
1227
msgid "Country"
1228
msgstr ""
1229
1230
#: templates/vendor\_registration.php:247
1231
msgid "City/Town"
1232
msgstr ""
1233
1234
#: templates/vendor\_registration.php:248
1235
msgid "State/County"
1236
msgstr ""
1237
1238
#: templates/vendor\_registration.php:249
1239
msgid "Postcode/Zip"
1240
msgstr ""
1241
1242
#: templates/vendor\_registration.php:357
1243
msgid "-Select-"
1244
msgstr ""
1245
898
1246
#: templates/vendor\_registration.php:378
899
1247
msgid "Password"
…
…
912
1260
msgstr ""
913
1261
914
#: templates/vendor\_registration.php:389 templates/vendor\_registration.php:397 templates/vendor\_registration.php:399
1262
#: templates/vendor\_registration.php:389 templates/vendor\_registration.php:397
1263
#: templates/vendor\_registration.php:399
1264
#: views/wcfmvm-view-memberships-settings.php:473
915
1265
msgid "Terms & Conditions"
916
1266
msgstr ""
917
1267
918
#: templates/vendor\_registration.php:440
1268
#: templates/vendor\_registration.php:429
919
1269
msgid "Confirm"
920
1270
msgstr ""
921
1271
922
#: templates/vendor\_registration.php:440
1272
#: templates/vendor\_registration.php:429
923
1273
msgid "Register"
924
1274
msgstr ""
925
1275
926
#: templates/vendor\_registration.php:445
1276
#: templates/vendor\_registration.php:434
927
1277
msgid "Your user role not allowed to subscription!"
928
1278
msgstr ""
…
…
936
1286
msgstr ""
937
1287
938
#: views/wcfmvm-view-capability.php:31
1288
#: views/emails/email-verification.php:19
1289
#: views/emails/plain/email-verification.php:19
1290
msgid "Hi,"
1291
msgstr ""
1292
1293
#: views/emails/email-verification.php:23
1294
#: views/emails/plain/email-verification.php:23
1295
msgid "Here is your email verification code - <b>%s</b>"
1296
msgstr ""
1297
1298
#: views/wcfmvm-view-capability.php:31 views/wcfmvm-view-capability.php:35
939
1299
msgid "Analytics"
940
1300
msgstr ""
941
1301
942
1302
#: views/wcfmvm-view-memberships-disable.php:21
943
#, php-format
944
msgid "Restricted: You are not allowed to access this page. May be you do not have a %sMulti-vendor Plugin%s on your site."
1303
msgid ""
1304
"Restricted: You are not allowed to access this page. May be you do not have "
1305
"a %sMulti-vendor Plugin%s on your site."
945
1306
msgstr ""
946
1307
…
…
969
1330
msgstr ""
970
1331
971
#: views/wcfmvm-view-memberships-manage.php:256 views/wcfmvm-view-memberships-settings.php:340 views/wcfmvm-view-memberships.php:36
1332
#: views/wcfmvm-view-memberships-manage.php:256
1333
#: views/wcfmvm-view-memberships-settings.php:340
1334
#: views/wcfmvm-view-memberships.php:36
972
1335
msgid "Add New Membership"
973
1336
msgstr ""
974
1337
975
#: views/wcfmvm-view-memberships-manage.php:258 views/wcfmvm-view-memberships-settings.php:342 views/wcfmvm-view-memberships.php:38
1338
#: views/wcfmvm-view-memberships-manage.php:258
1339
#: views/wcfmvm-view-memberships-settings.php:342
1340
#: views/wcfmvm-view-memberships.php:38
976
1341
msgid "Membership Plan Table"
977
1342
msgstr ""
978
1343
979
#: views/wcfmvm-view-memberships-manage.php:259 views/wcfmvm-view-memberships-settings.php:343 views/wcfmvm-view-memberships.php:39
1344
#: views/wcfmvm-view-memberships-manage.php:259
1345
#: views/wcfmvm-view-memberships-settings.php:343
1346
#: views/wcfmvm-view-memberships.php:39
980
1347
msgid "Tutorial"
981
1348
msgstr ""
…
…
1005
1372
msgstr ""
1006
1373
1007
#: views/wcfmvm-view-memberships-manage.php:280 views/wcfmvm-view-memberships-settings.php:401
1374
#: views/wcfmvm-view-memberships-manage.php:280
1375
#: views/wcfmvm-view-memberships-settings.php:401
1008
1376
msgid "Subscribe Button Label"
1009
1377
msgstr ""
…
…
1018
1386
1019
1387
#: views/wcfmvm-view-memberships-manage.php:282
1020
msgid "Add this short code anywhere to your site to show subscribe button for this membership plan. Default button label \`Subscribe Now\`, change using parameter \`subscribe\_now\`. e.g. \[wcfmvm\_subscribe id=\\"599\\" subscribe\_now=\\"Register Now\\"\]"
1388
msgid ""
1389
"Add this short code anywhere to your site to show subscribe button for this "
1390
"membership plan. Default button label \`Subscribe Now\`, change using "
1391
"parameter \`subscribe\_now\`. e.g. \[wcfmvm\_subscribe id=\\"599\\" "
1392
"subscribe\_now=\\"Register Now\\"\]"
1021
1393
msgstr ""
1022
1394
…
…
1029
1401
msgstr ""
1030
1402
1031
#: views/wcfmvm-view-memberships-manage.php:303 views/wcfmvm-view-memberships-settings.php:435
1403
#: views/wcfmvm-view-memberships-manage.php:303
1404
#: views/wcfmvm-view-memberships-settings.php:435
1032
1405
msgid "Features"
1033
1406
msgstr ""
…
…
1037
1410
msgstr ""
1038
1411
1039
#: views/wcfmvm-view-memberships-manage.php:323 views/wcfmvm-view-memberships-manage.php:326
1412
#: views/wcfmvm-view-memberships-manage.php:323
1413
#: views/wcfmvm-view-memberships-manage.php:326
1040
1414
msgid "here"
1041
1415
msgstr ""
…
…
1066
1440
1067
1441
#: views/wcfmvm-view-memberships-manage.php:350
1068
msgid "WC Checkout option will allow to process payment using WC default checkout page, all WC payment gateways supported."
1442
msgid ""
1443
"WC Checkout option will allow to process payment using WC default checkout "
1444
"page, all WC payment gateways supported."
1445
msgstr ""
1446
1447
#: views/wcfmvm-view-memberships-manage.php:351
1448
msgid "WC Product"
1069
1449
msgstr ""
1070
1450
…
…
1078
1458
1079
1459
#: views/wcfmvm-view-memberships-manage.php:360
1080
msgid "Enter payment amount. Example values: 10.00 or 19.50 or 299.95 etc (do not put currency symbol)."
1460
msgid ""
1461
"Enter payment amount. Example values: 10.00 or 19.50 or 299.95 etc (do not "
1462
"put currency symbol)."
1081
1463
msgstr ""
1082
1464
1083
1465
#: views/wcfmvm-view-memberships-manage.php:369
1084
#, php-format
1085
msgid "<b>PayPal</b> does not support Free trial, if leave empty it will be considered as <b>%s1</b>."
1466
msgid ""
1467
"<b>PayPal</b> does not support Free trial, if leave empty it will be "
1468
"considered as <b>%s1</b>."
1086
1469
msgstr ""
1087
1470
1088
1471
#: views/wcfmvm-view-memberships-manage.php:373
1089
msgid "<b>Stripe</b> does not support trial amount, trial period will be always <b>FREE</b>."
1472
msgid ""
1473
"<b>Stripe</b> does not support trial amount, trial period will be always "
1474
"<b>FREE</b>."
1090
1475
msgstr ""
1091
1476
…
…
1107
1492
1108
1493
#: views/wcfmvm-view-memberships-manage.php:384
1109
msgid "Length of the trial period. Leave empty to disable trial period for this subscription."
1494
msgid ""
1495
"Length of the trial period. Leave empty to disable trial period for this "
1496
"subscription."
1110
1497
msgstr ""
1111
1498
…
…
1115
1502
1116
1503
#: views/wcfmvm-view-memberships-manage.php:386
1117
msgid "Amount to be charged for the trial period. Leave empty if you want to offer a free trial period."
1504
msgid ""
1505
"Amount to be charged for the trial period. Leave empty if you want to offer "
1506
"a free trial period."
1118
1507
msgstr ""
1119
1508
…
…
1127
1516
1128
1517
#: views/wcfmvm-view-memberships-manage.php:394
1129
msgid "Amount to be charged on every billing cycle. If used with a trial period then this amount will be charged after the trial period is over. Example values: 10.00 or 19.50 or 299.95 etc (do not put currency symbol)."
1518
msgid ""
1519
"Amount to be charged on every billing cycle. If used with a trial period "
1520
"then this amount will be charged after the trial period is over. Example "
1521
"values: 10.00 or 19.50 or 299.95 etc (do not put currency symbol)."
1130
1522
msgstr ""
1131
1523
…
…
1135
1527
1136
1528
#: views/wcfmvm-view-memberships-manage.php:395
1137
msgid "Set the interval of the recurring payment. Example value: 1 Month (if you want to charge every month)"
1529
msgid ""
1530
"Set the interval of the recurring payment. Example value: 1 Month (if you "
1531
"want to charge every month)"
1138
1532
msgstr ""
1139
1533
…
…
1143
1537
1144
1538
#: views/wcfmvm-view-memberships-manage.php:397
1145
msgid "After how many cycles should billing stop. Leave this field empty (or enter 0) if you want the payment to continue until the subscription is canceled."
1539
msgid ""
1540
"After how many cycles should billing stop. Leave this field empty (or enter "
1541
"0) if you want the payment to continue until the subscription is canceled."
1146
1542
msgstr ""
1147
1543
…
…
1151
1547
1152
1548
#: views/wcfmvm-view-memberships-manage.php:398
1153
msgid "When checked, the payment will be re-attempted two more times if the payment fails. After the third failure, the subscription will be canceled."
1549
msgid ""
1550
"When checked, the payment will be re-attempted two more times if the "
1551
"payment fails. After the third failure, the subscription will be canceled."
1154
1552
msgstr ""
1155
1553
…
…
1166
1564
msgstr ""
1167
1565
1168
#: views/wcfmvm-view-memberships-manage.php:425 views/wcfmvm-view-memberships-settings.php:377
1566
#: views/wcfmvm-view-memberships-manage.php:425
1567
#: views/wcfmvm-view-memberships-settings.php:377
1169
1568
msgid "Required Approval"
1170
1569
msgstr ""
1171
1570
1172
#: views/wcfmvm-view-memberships-manage.php:425 views/wcfmvm-view-memberships-settings.php:377
1571
#: views/wcfmvm-view-memberships-manage.php:425
1572
#: views/wcfmvm-view-memberships-settings.php:377
1173
1573
msgid "Whether user required Admin Approval to become vendor or not!"
1174
1574
msgstr ""
1175
1575
1176
#: views/wcfmvm-view-memberships-manage.php:426 views/wcfmvm-view-memberships-settings.php:777
1576
#: views/wcfmvm-view-memberships-manage.php:426
1577
#: views/wcfmvm-view-memberships-settings.php:777
1177
1578
msgid "If Application Rejected?"
1178
1579
msgstr ""
1179
1580
1180
#: views/wcfmvm-view-memberships-manage.php:426 views/wcfmvm-view-memberships-settings.php:777
1581
#: views/wcfmvm-view-memberships-manage.php:426
1582
#: views/wcfmvm-view-memberships-settings.php:777
1181
1583
msgid "Keep as normal user"
1182
1584
msgstr ""
1183
1585
1184
#: views/wcfmvm-view-memberships-manage.php:426 views/wcfmvm-view-memberships-settings.php:777
1586
#: views/wcfmvm-view-memberships-manage.php:426
1587
#: views/wcfmvm-view-memberships-settings.php:777
1185
1588
msgid "Delete user from system"
1186
1589
msgstr ""
1187
1590
1188
#: views/wcfmvm-view-memberships-manage.php:426 views/wcfmvm-view-memberships-settings.php:777
1591
#: views/wcfmvm-view-memberships-manage.php:426
1592
#: views/wcfmvm-view-memberships-settings.php:777
1189
1593
msgid "This rule will be applicable if a vendor application reject by Admin."
1190
1594
msgstr ""
1191
1595
1192
#: views/wcfmvm-view-memberships-manage.php:441 views/wcfmvm-view-memberships-settings.php:551
1596
#: views/wcfmvm-view-memberships-manage.php:441
1597
#: views/wcfmvm-view-memberships-settings.php:551
1193
1598
msgid "Thank You Page Content"
1194
1599
msgstr ""
1195
1600
1196
#: views/wcfmvm-view-memberships-manage.php:445 views/wcfmvm-view-memberships-settings.php:556
1197
msgid "Please don't include Dashboard URL, it will be automatically append with the content."
1198
msgstr ""
1199
1200
#: views/wcfmvm-view-memberships-manage.php:449 views/wcfmvm-view-memberships-settings.php:560
1601
#: views/wcfmvm-view-memberships-manage.php:445
1602
#: views/wcfmvm-view-memberships-settings.php:556
1603
msgid ""
1604
"Please don't include Dashboard URL, it will be automatically append with "
1605
"the content."
1606
msgstr ""
1607
1608
#: views/wcfmvm-view-memberships-manage.php:449
1609
#: views/wcfmvm-view-memberships-settings.php:560
1201
1610
msgid "On Approval Thank You Page Content"
1202
1611
msgstr ""
1203
1612
1204
#: views/wcfmvm-view-memberships-manage.php:453 views/wcfmvm-view-memberships-settings.php:564
1205
msgid "This content will be visible when user will require Admin approval to become vendor."
1206
msgstr ""
1207
1208
#: views/wcfmvm-view-memberships-manage.php:465 views/wcfmvm-view-memberships-settings.php:576
1613
#: views/wcfmvm-view-memberships-manage.php:453
1614
#: views/wcfmvm-view-memberships-settings.php:564
1615
msgid ""
1616
"This content will be visible when user will require Admin approval to "
1617
"become vendor."
1618
msgstr ""
1619
1620
#: views/wcfmvm-view-memberships-manage.php:465
1621
#: views/wcfmvm-view-memberships-settings.php:576
1209
1622
msgid "Welcome Email"
1210
1623
msgstr ""
1211
1624
1212
#: views/wcfmvm-view-memberships-manage.php:469 views/wcfmvm-view-memberships-settings.php:580
1625
#: views/wcfmvm-view-memberships-manage.php:469
1626
#: views/wcfmvm-view-memberships-settings.php:580
1213
1627
msgid "Vendor Welcome Email"
1214
1628
msgstr ""
1215
1629
1216
#: views/wcfmvm-view-memberships-manage.php:473 views/wcfmvm-view-memberships-settings.php:624 views/wcfmvm-view-memberships-settings.php:635 views/wcfmvm-view-memberships-settings.php:657 views/wcfmvm-view-memberships-settings.php:666 views/wcfmvm-view-memberships-settings.php:688 views/wcfmvm-view-memberships-settings.php:710 views/wcfmvm-view-memberships-settings.php:733 views/wcfmvm-view-memberships-settings.php:755 views/wcfmvm-view-memberships-settings.php:779
1630
#: views/wcfmvm-view-memberships-manage.php:473
1631
#: views/wcfmvm-view-memberships-settings.php:624
1632
#: views/wcfmvm-view-memberships-settings.php:635
1633
#: views/wcfmvm-view-memberships-settings.php:657
1634
#: views/wcfmvm-view-memberships-settings.php:666
1635
#: views/wcfmvm-view-memberships-settings.php:688
1636
#: views/wcfmvm-view-memberships-settings.php:710
1637
#: views/wcfmvm-view-memberships-settings.php:733
1638
#: views/wcfmvm-view-memberships-settings.php:755
1639
#: views/wcfmvm-view-memberships-settings.php:779
1217
1640
msgid "Notification Subject"
1218
1641
msgstr ""
1219
1642
1220
#: views/wcfmvm-view-memberships-manage.php:474 views/wcfmvm-view-memberships-settings.php:625 views/wcfmvm-view-memberships-settings.php:636 views/wcfmvm-view-memberships-settings.php:658 views/wcfmvm-view-memberships-settings.php:667 views/wcfmvm-view-memberships-settings.php:689 views/wcfmvm-view-memberships-settings.php:711 views/wcfmvm-view-memberships-settings.php:780
1643
#: views/wcfmvm-view-memberships-manage.php:474
1644
#: views/wcfmvm-view-memberships-settings.php:625
1645
#: views/wcfmvm-view-memberships-settings.php:636
1646
#: views/wcfmvm-view-memberships-settings.php:658
1647
#: views/wcfmvm-view-memberships-settings.php:667
1648
#: views/wcfmvm-view-memberships-settings.php:689
1649
#: views/wcfmvm-view-memberships-settings.php:711
1650
#: views/wcfmvm-view-memberships-settings.php:780
1221
1651
msgid "Notification Content"
1222
1652
msgstr ""
…
…
1259
1689
1260
1690
#: views/wcfmvm-view-memberships-manage.php:544
1261
#, php-format
1262
1691
msgid "<a target=\\"\_blank\\" href=\\"%s\\">Know more about WCFM Badges.</a>"
1263
1692
msgstr ""
…
…
1279
1708
msgstr ""
1280
1709
1710
#: views/wcfmvm-view-memberships-settings.php:363
1711
msgid "General"
1712
msgstr ""
1713
1714
#: views/wcfmvm-view-memberships-settings.php:368
1715
msgid "--Select page-- "
1716
msgstr ""
1717
1281
1718
#: views/wcfmvm-view-memberships-settings.php:383
1282
1719
msgid "OPT Verification on Registration"
…
…
1292
1729
1293
1730
#: views/wcfmvm-view-memberships-settings.php:394
1294
msgid "You have created your own membership plan page then set that here. It is important when vendors will change plan."
1731
msgid ""
1732
"You have created your own membership plan page then set that here. It is "
1733
"important when vendors will change plan."
1295
1734
msgstr ""
1296
1735
…
…
1312
1751
1313
1752
#: views/wcfmvm-view-memberships-settings.php:398
1314
msgid "This will ensure which will be first step of membership subscription - Plan selection or Registration."
1753
msgid ""
1754
"This will ensure which will be first step of membership subscription - Plan "
1755
"selection or Registration."
1315
1756
msgstr ""
1316
1757
…
…
1320
1761
1321
1762
#: views/wcfmvm-view-memberships-settings.php:399
1322
msgid "This membership will auto-assign to vendors when subscription expired or recurring subscription cancelled."
1763
msgid ""
1764
"This membership will auto-assign to vendors when subscription expired or "
1765
"recurring subscription cancelled."
1323
1766
msgstr ""
1324
1767
…
…
1359
1802
msgstr ""
1360
1803
1804
#: views/wcfmvm-view-memberships-settings.php:470
1805
msgid "User Name"
1806
msgstr ""
1807
1808
#: views/wcfmvm-view-memberships-settings.php:474
1809
msgid "Terms Page"
1810
msgstr ""
1811
1361
1812
#: views/wcfmvm-view-memberships-settings.php:479
1362
1813
msgid "Registration Form Custom Fields"
1363
1814
msgstr ""
1364
1815
1816
#: views/wcfmvm-view-memberships-settings.php:481
1817
msgid "Field Type"
1818
msgstr ""
1819
1820
#: views/wcfmvm-view-memberships-settings.php:482
1821
msgid "Label"
1822
msgstr ""
1823
1824
#: views/wcfmvm-view-memberships-settings.php:483
1825
msgid "Options"
1826
msgstr ""
1827
1828
#: views/wcfmvm-view-memberships-settings.php:483
1829
msgid "Insert option values | separated"
1830
msgstr ""
1831
1832
#: views/wcfmvm-view-memberships-settings.php:484
1833
msgid "Content"
1834
msgstr ""
1835
1836
#: views/wcfmvm-view-memberships-settings.php:485
1837
msgid "Help Content"
1838
msgstr ""
1839
1840
#: views/wcfmvm-view-memberships-settings.php:486
1841
msgid "Required?"
1842
msgstr ""
1843
1365
1844
#: views/wcfmvm-view-memberships-settings.php:505
1366
1845
msgid "Payment Methods"
…
…
1415
1894
msgstr ""
1416
1895
1417
#: views/wcfmvm-view-memberships-settings.php:584 views/wcfmvm-view-memberships-settings.php:613
1896
#: views/wcfmvm-view-memberships-settings.php:584
1897
#: views/wcfmvm-view-memberships-settings.php:613
1418
1898
msgid "Non-Membership Notification Subject"
1419
1899
msgstr ""
1420
1900
1421
#: views/wcfmvm-view-memberships-settings.php:585 views/wcfmvm-view-memberships-settings.php:614
1901
#: views/wcfmvm-view-memberships-settings.php:585
1902
#: views/wcfmvm-view-memberships-settings.php:614
1422
1903
msgid "Non-Membership Notification Content"
1423
1904
msgstr ""
…
…
1431
1912
msgstr ""
1432
1913
1433
#: views/wcfmvm-view-memberships-settings.php:605 views/wcfmvm-view-memberships-settings.php:653
1914
#: views/wcfmvm-view-memberships-settings.php:605
1915
#: views/wcfmvm-view-memberships-settings.php:653
1434
1916
msgid "Admin Notification"
1435
1917
msgstr ""
…
…
1463
1945
msgstr ""
1464
1946
1465
#: views/wcfmvm-view-memberships-settings.php:686 views/wcfmvm-view-memberships-settings.php:708
1947
#: views/wcfmvm-view-memberships-settings.php:686
1948
#: views/wcfmvm-view-memberships-settings.php:708
1466
1949
msgid "First Reminder"
1467
1950
msgstr ""
1468
1951
1469
#: views/wcfmvm-view-memberships-settings.php:686 views/wcfmvm-view-memberships-settings.php:687 views/wcfmvm-view-memberships-settings.php:708 views/wcfmvm-view-memberships-settings.php:709
1952
#: views/wcfmvm-view-memberships-settings.php:686
1953
#: views/wcfmvm-view-memberships-settings.php:687
1954
#: views/wcfmvm-view-memberships-settings.php:708
1955
#: views/wcfmvm-view-memberships-settings.php:709
1470
1956
msgid "Never"
1471
1957
msgstr ""
1472
1958
1473
#: views/wcfmvm-view-memberships-settings.php:686 views/wcfmvm-view-memberships-settings.php:708
1959
#: views/wcfmvm-view-memberships-settings.php:686
1960
#: views/wcfmvm-view-memberships-settings.php:708
1474
1961
msgid "Before 5 Days"
1475
1962
msgstr ""
1476
1963
1477
#: views/wcfmvm-view-memberships-settings.php:686 views/wcfmvm-view-memberships-settings.php:708
1964
#: views/wcfmvm-view-memberships-settings.php:686
1965
#: views/wcfmvm-view-memberships-settings.php:708
1478
1966
msgid "Before 7 Days"
1479
1967
msgstr ""
1480
1968
1481
#: views/wcfmvm-view-memberships-settings.php:686 views/wcfmvm-view-memberships-settings.php:708
1969
#: views/wcfmvm-view-memberships-settings.php:686
1970
#: views/wcfmvm-view-memberships-settings.php:708
1482
1971
msgid "Before 10 Days"
1483
1972
msgstr ""
…
…
1487
1976
msgstr ""
1488
1977
1489
#: views/wcfmvm-view-memberships-settings.php:687 views/wcfmvm-view-memberships-settings.php:709
1978
#: views/wcfmvm-view-memberships-settings.php:687
1979
#: views/wcfmvm-view-memberships-settings.php:709
1490
1980
msgid "Second Reminder"
1491
1981
msgstr ""
1492
1982
1493
#: views/wcfmvm-view-memberships-settings.php:687 views/wcfmvm-view-memberships-settings.php:709
1983
#: views/wcfmvm-view-memberships-settings.php:687
1984
#: views/wcfmvm-view-memberships-settings.php:709
1494
1985
msgid "Before 3 Days"
1495
1986
msgstr ""
1496
1987
1497
#: views/wcfmvm-view-memberships-settings.php:687 views/wcfmvm-view-memberships-settings.php:709
1988
#: views/wcfmvm-view-memberships-settings.php:687
1989
#: views/wcfmvm-view-memberships-settings.php:709
1498
1990
msgid "Before 2 Days"
1499
1991
msgstr ""
1500
1992
1501
#: views/wcfmvm-view-memberships-settings.php:687 views/wcfmvm-view-memberships-settings.php:709
1993
#: views/wcfmvm-view-memberships-settings.php:687
1994
#: views/wcfmvm-view-memberships-settings.php:709
1502
1995
msgid "Before 1 Day"
1503
1996
msgstr ""
…
…
1535
2028
msgstr ""
1536
2029
1537
#: views/wcfmvm-view-memberships-settings.php:731 views/wcfmvm-view-memberships-settings.php:753
2030
#: views/wcfmvm-view-memberships-settings.php:731
2031
#: views/wcfmvm-view-memberships-settings.php:753
1538
2032
msgid "Assign Basic Membership"
1539
2033
msgstr ""
1540
2034
1541
#: views/wcfmvm-view-memberships-settings.php:731 views/wcfmvm-view-memberships-settings.php:753
2035
#: views/wcfmvm-view-memberships-settings.php:731
2036
#: views/wcfmvm-view-memberships-settings.php:753
1542
2037
msgid "Disable Vendor User"
1543
2038
msgstr ""
…
…
1547
2042
msgstr ""
1548
2043
1549
#: views/wcfmvm-view-memberships-settings.php:732 views/wcfmvm-view-memberships-settings.php:754
2044
#: views/wcfmvm-view-memberships-settings.php:732
2045
#: views/wcfmvm-view-memberships-settings.php:754
1550
2046
msgid "Product Status?"
1551
2047
msgstr ""
1552
2048
1553
#: views/wcfmvm-view-memberships-settings.php:732 views/wcfmvm-view-memberships-settings.php:754
2049
#: views/wcfmvm-view-memberships-settings.php:732
2050
#: views/wcfmvm-view-memberships-settings.php:754
1554
2051
msgid "Keep as same"
1555
2052
msgstr ""
1556
2053
1557
#: views/wcfmvm-view-memberships-settings.php:732 views/wcfmvm-view-memberships-settings.php:754
2054
#: views/wcfmvm-view-memberships-settings.php:732
2055
#: views/wcfmvm-view-memberships-settings.php:754
2056
msgid "Archived"
2057
msgstr ""
2058
2059
#: views/wcfmvm-view-memberships-settings.php:732
2060
#: views/wcfmvm-view-memberships-settings.php:754
1558
2061
msgid "Save as Draft"
1559
2062
msgstr ""
1560
2063
1561
#: views/wcfmvm-view-memberships-settings.php:732 views/wcfmvm-view-memberships-settings.php:754
2064
#: views/wcfmvm-view-memberships-settings.php:732
2065
#: views/wcfmvm-view-memberships-settings.php:754
1562
2066
msgid "Delete from site"
1563
2067
msgstr ""
1564
2068
1565
#: views/wcfmvm-view-memberships-settings.php:734 views/wcfmvm-view-memberships-settings.php:756
2069
#: views/wcfmvm-view-memberships-settings.php:734
2070
#: views/wcfmvm-view-memberships-settings.php:756
1566
2071
msgid "Notification content"
1567
2072
msgstr ""
…
…
1595
2100
msgstr ""
1596
2101
2102
#: views/wcfmvm-view-memberships-settings.php:791
2103
msgid "Style"
2104
msgstr ""
2105
1597
2106
#: views/wcfmvm-view-memberships-settings.php:795
1598
2107
msgid "Membership plan display page styling"
1599
2108
msgstr ""
1600
2109
2110
#: views/wcfmvm-view-memberships-settings.php:808
2111
msgid "Reset to Default"
2112
msgstr ""
2113
1601
2114
#: views/wcfmvm-view-memberships.php:31
1602
2115
msgid "Manage Memberships"
1603
2116
msgstr ""
1604
2117
2118
#: views/wcfmvm-view-memberships.php:36
2119
msgid "Add New"
2120
msgstr ""
2121
1605
2122
#: views/wcfmvm-view-memberships.php:54 views/wcfmvm-view-memberships.php:64
1606
2123
msgid "Details"
…
…
1615
2132
msgstr ""
1616
2133
2134
#: views/wcfmvm-view-memberships.php:57 views/wcfmvm-view-memberships.php:67
2135
msgid "Store"
2136
msgstr ""
2137
1617
2138
#: views/wcfmvm-view-memberships.php:58 views/wcfmvm-view-memberships.php:68
1618
2139
msgid "Actions"
1619
2140
msgstr ""
1620
2141
1621
#: includes/emails/class-wcfmvm-email-email-verification.php:21
1622
msgid "Email verification emails are sent during vendor registertion."
1623
msgstr ""
1624
1625
#: includes/emails/class-wcfmvm-email-email-verification.php:24
1626
msgid "Email Verification Code"
1627
msgstr ""
1628
1629
#: includes/emails/class-wcfmvm-email-email-verification.php:143
1630
msgid "Enable/Disable"
1631
msgstr ""
1632
1633
#: includes/emails/class-wcfmvm-email-email-verification.php:145
1634
msgid "Enable this email notification."
1635
msgstr ""
1636
1637
#: includes/emails/class-wcfmvm-email-email-verification.php:149
1638
msgid "Subject"
1639
msgstr ""
1640
1641
#: includes/emails/class-wcfmvm-email-email-verification.php:151
1642
#, php-format
1643
msgid "This controls the email subject line. Leave it blank to use the default subject: <code>%s</code>."
1644
msgstr ""
1645
1646
#: includes/emails/class-wcfmvm-email-email-verification.php:156
1647
msgid "Email Heading"
1648
msgstr ""
1649
1650
#: includes/emails/class-wcfmvm-email-email-verification.php:158
1651
#, php-format
1652
msgid "This controls the main heading contained within the email notification. Leave it blank to use the default heading: <code>%s</code>."
1653
msgstr ""
1654
1655
#: includes/emails/class-wcfmvm-email-email-verification.php:163
1656
msgid "Email Type"
1657
msgstr ""
1658
1659
#: includes/emails/class-wcfmvm-email-email-verification.php:165
1660
msgid "Choose which format of email to be sent."
1661
msgstr ""
1662
1663
#: includes/emails/class-wcfmvm-email-email-verification.php:169
1664
msgid "Plain Text"
1665
msgstr ""
1666
1667
#: includes/emails/class-wcfmvm-email-email-verification.php:170
1668
msgid "HTML"
1669
msgstr ""
1670
1671
#: includes/emails/class-wcfmvm-email-email-verification.php:171
1672
msgid "Multipart"
1673
msgstr ""
1674
1675
#: views/emails/email-verification.php:23 views/emails/plain/email-verification.php:23
1676
#, php-format
1677
msgid "Here is your email verification code - <b>%s</b>"
1678
msgstr ""
1679
1680
#. Name of the plugin
2142
#. Plugin Name of the plugin/theme
1681
2143
msgid "WCFM - WooCommerce Multivendor Membership"
1682
2144
msgstr ""
1683
2145
1684
#. Description of the plugin
2146
#. Plugin URI of the plugin/theme
2147
msgid "https://wclovers.com/product/woocommerce-multivendor-membership"
2148
msgstr ""
2149
2150
#. Description of the plugin/theme
1685
2151
msgid "A simple membership plugin for your multi-vendor marketplace."
1686
2152
msgstr ""
1687
2153
1688
#. URI of the plugin
1689
msgid "https://wclovers.com/product/woocommerce-multivendor-membership"
1690
msgstr ""
1691
1692
#. Author of the plugin
2154
#. Author of the plugin/theme
1693
2155
msgid "WC Lovers"
1694
2156
msgstr ""
1695
2157
1696
#. Author URI of the plugin
2158
#. Author URI of the plugin/theme
1697
2159
msgid "https://wclovers.com"
1698
2160
msgstr ""
2161
2162
#: helpers/class-wcfmvm-install.php:98
2163
msgctxt "page\_slug"
2164
msgid "vendor-membership"
2165
msgstr ""
2166
2167
#: helpers/class-wcfmvm-install.php:99
2168
msgctxt "page\_slug"
2169
msgid "vendor-register"
2170
msgstr ""
wc-multivendor-membership/trunk/readme.txt
r2887033
r2907455
4
4
Donate link: https://www.paypal.me/wclovers/25usd
5
5
Requires at least: 4.4
6
Tested up to: 6.0
6
Tested up to: 6.2
7
7
WC requires at least: 3.0
8
WC tested up to: 7.5.0
8
WC tested up to: 7.6.0
9
9
Requires PHP: 5.6
10
Stable tag: 2.10.7
10
Stable tag: 2.11.0
11
11
License: GPLv2 or later
12
12
License URI: http://www.gnu.org/licenses/gpl-2.0.html
…
…
156
156
\== Changelog ==
157
157
158
\= 2.11.0 =
159
\*Updated - 03/05/2023\*
160
161
\* Enhance - WooCommerce 7.6+ compatibility check added
162
\* Fixed - Security patch added: Unauthenticated Insecure Direct Object Reference to Arbitrary User Password Change
163
158
164
\= 2.10.7 =
159
165
\*Updated - 26/03/2023\*
…
…
796
802
\== Upgrade Notice ==
797
803
798
\= 2.10.7 =
799
\* Enhance - WooCommerce 7.5\+ compatibility check added
800
\* Fixed - Other minor fixes
804
\= 2.11.0 =
805
\* Enhance - WooCommerce 7.6\+ compatibility check added
806
\* Fixed - Security patch added: Unauthenticated Insecure Direct Object Reference to Arbitrary User Password Change
wc-multivendor-membership/trunk/views/wcfmvm-view-memberships-settings.php
r2650159
r2907455
365
365
<div class="wcfm-container">
366
366
<div id="membership\_settings\_form\_visibility\_expander" class="wcfm-content">
367
<?php
368
$pages\_array = array();
369
if( $wcfm\_custom\_plan\_page ) {
370
$pages\_array\[$wcfm\_custom\_plan\_page\] = get\_post( $wcfm\_custom\_plan\_page )->post\_title;
371
}
372
if( $wcfm\_custom\_thankyou\_page ) {
373
$pages\_array\[$wcfm\_custom\_thankyou\_page\] = get\_post( $wcfm\_custom\_thankyou\_page )->post\_title;
374
}
375
376
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field( apply\_filters( 'membership\_setting\_approval\_fields', array(
377
"required\_approval" => array( 'label' => \_\_( 'Required Approval', 'wc-multivendor-membership' ), 'type' => 'checkbox', 'name' => 'membership\_reject\_rules\[required\_approval\]', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $required\_approval, 'hints' => \_\_( 'Whether user required Admin Approval to become vendor or not!', 'wc-multivendor-membership' ) ),
378
) ) );
379
380
if( function\_exists( 'wcfm\_is\_store\_page' ) ) {
381
if( WCFMmp\_Dependencies::wcfm\_sms\_alert\_plugin\_active\_check() || WCFMmp\_Dependencies::wcfm\_twilio\_plugin\_active\_check() || WCFMmp\_Dependencies::wcfm\_msg91\_plugin\_active\_check() || function\_exists( 'netgsm\_sendSMS\_oneToMany' ) || apply\_filters( 'wcfm\_is\_allow\_custom\_otp\_verification', false ) ) {
382
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field( array(
383
"sms\_verification" => array( 'label' => \_\_( 'OPT Verification on Registration', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[sms\_verification\]', 'type' => 'checkbox', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $sms\_verification )
384
) );
385
}
386
}
387
388
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field( array(
389
'email\_verification' => array( 'label' => \_\_( 'Email Verification on Registration', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[email\_verification\]', 'type' => 'checkbox', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $email\_verification )
390
) );
391
392
if( apply\_filters( 'wcfm\_is\_pref\_membership', true ) ) {
393
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field( array(
394
'wcfm\_custom\_plan\_page' => array( 'label' => \_\_('Custom Plan Page', 'wc-multivendor-membership'), 'type' => 'select', 'name' => 'membership\_type\_settings\[wcfm\_custom\_plan\_page\]', 'options' => $pages\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $wcfm\_custom\_plan\_page, 'attributes' => array( 'style' => 'width:60%' ), 'desc\_class' => 'wcfm\_page\_options\_desc', 'desc' => \_\_( 'You have created your own membership plan page then set that here. It is important when vendors will change plan.', 'wc-multivendor-membership') ),
395
'wcfm\_custom\_thankyou\_page' => array( 'label' => \_\_('Custom Thank You Page', 'wc-multivendor-membership'), 'type' => 'select', 'name' => 'membership\_type\_settings\[wcfm\_custom\_thankyou\_page\]', 'options' => $pages\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $wcfm\_custom\_thankyou\_page, 'attributes' => array( 'style' => 'width:60%' ), 'desc\_class' => 'wcfm\_page\_options\_desc', 'desc' => \_\_( 'You have created your own thank you page then set that here.', 'wc-multivendor-membership') ),
396
"memberships\_setting\_break\_1" => array( 'type' => 'html', 'value' => '<div style="height: 15px;"></div>' ),
397
398
'first\_step' => array( 'label' => \_\_( 'Subscription First Step', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[first\_step\]', 'type' => 'select', 'options' => array( 'plan' => \_\_( 'Choose Plan', 'wc-multivendor-membership' ), 'registration' => \_\_( 'Registration', 'wc-multivendor-membership' ) ), 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'hints' => \_\_( 'This will ensure which will be first step of membership subscription - Plan selection or Registration.', 'wc-multivendor-membership' ), 'value' => $first\_step ),
399
'free\_membership' => array( 'label' => \_\_( 'Basic Membership', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[free\_membership\]', 'type' => 'select', 'options' => $wcfm\_memberships\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'hints' => \_\_( 'This membership will auto-assign to vendors when subscription expired or recurring subscription cancelled.', 'wc-multivendor-membership' ), 'value' => $free\_membership ),
400
'featured\_membership' => array( 'label' => \_\_( 'Featured Membership', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[featured\_membership\]', 'type' => 'select', 'options' => $wcfm\_memberships\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $featured\_membership ),
401
'subscribe\_button\_label' => array( 'label' => \_\_( 'Subscribe Button Label', 'wc-multivendor-membership' ), 'name' => 'membership\_type\_settings\[subscribe\_button\_label\]', 'type' => 'text', 'class' => 'wcfm-text wcfm\_ele', 'label\_class' => 'wcfm\_title', 'custom\_attributes' => array( 'required' => true ), 'value' => $subscribe\_button\_label )
402
) );
403
}
404
?>
367
<?php
368
$pages\_array = array('' => \_\_('--Select page-- ','wc-multivendor-membership'));
369
if ($wcfm\_custom\_plan\_page) {
370
$pages\_array\[$wcfm\_custom\_plan\_page\] = get\_post($wcfm\_custom\_plan\_page)->post\_title;
371
}
372
if ($wcfm\_custom\_thankyou\_page) {
373
$pages\_array\[$wcfm\_custom\_thankyou\_page\] = get\_post($wcfm\_custom\_thankyou\_page)->post\_title;
374
}
375
376
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field(apply\_filters('membership\_setting\_approval\_fields', array(
377
"required\_approval" => array('label' => \_\_('Required Approval', 'wc-multivendor-membership'), 'type' => 'checkbox', 'name' => 'membership\_reject\_rules\[required\_approval\]', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $required\_approval, 'hints' => \_\_('Whether user required Admin Approval to become vendor or not!', 'wc-multivendor-membership')),
378
)));
379
380
if (function\_exists('wcfm\_is\_store\_page')) {
381
if (WCFMmp\_Dependencies::wcfm\_sms\_alert\_plugin\_active\_check() || WCFMmp\_Dependencies::wcfm\_twilio\_plugin\_active\_check() || WCFMmp\_Dependencies::wcfm\_msg91\_plugin\_active\_check() || function\_exists('netgsm\_sendSMS\_oneToMany') || apply\_filters('wcfm\_is\_allow\_custom\_otp\_verification', false)) {
382
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field(array(
383
"sms\_verification" => array('label' => \_\_('OPT Verification on Registration', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[sms\_verification\]', 'type' => 'checkbox', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $sms\_verification)
384
));
385
}
386
}
387
388
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field(array(
389
'email\_verification' => array('label' => \_\_('Email Verification on Registration', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[email\_verification\]', 'type' => 'checkbox', 'class' => 'wcfm-checkbox wcfm\_ele', 'label\_class' => 'wcfm\_title checkbox\_title', 'value' => 'yes', 'dfvalue' => $email\_verification)
390
));
391
392
if (apply\_filters('wcfm\_is\_pref\_membership', true)) {
393
$WCFM->wcfm\_fields->wcfm\_generate\_form\_field(array(
394
'wcfm\_custom\_plan\_page' => array('label' => \_\_('Custom Plan Page', 'wc-multivendor-membership'), 'type' => 'select', 'name' => 'membership\_type\_settings\[wcfm\_custom\_plan\_page\]', 'options' => $pages\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $wcfm\_custom\_plan\_page, 'attributes' => array('style' => 'width:60%'), 'desc\_class' => 'wcfm\_page\_options\_desc', 'desc' => \_\_('You have created your own membership plan page then set that here. It is important when vendors will change plan.', 'wc-multivendor-membership')),
395
'wcfm\_custom\_thankyou\_page' => array('label' => \_\_('Custom Thank You Page', 'wc-multivendor-membership'), 'type' => 'select', 'name' => 'membership\_type\_settings\[wcfm\_custom\_thankyou\_page\]', 'options' => $pages\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $wcfm\_custom\_thankyou\_page, 'attributes' => array('style' => 'width:60%'), 'desc\_class' => 'wcfm\_page\_options\_desc', 'desc' => \_\_('You have created your own thank you page then set that here.', 'wc-multivendor-membership')),
396
"memberships\_setting\_break\_1" => array('type' => 'html', 'value' => '<div style="height: 15px;"></div>'),
397
398
'first\_step' => array('label' => \_\_('Subscription First Step', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[first\_step\]', 'type' => 'select', 'options' => array('plan' => \_\_('Choose Plan', 'wc-multivendor-membership'), 'registration' => \_\_('Registration', 'wc-multivendor-membership')), 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'hints' => \_\_('This will ensure which will be first step of membership subscription - Plan selection or Registration.', 'wc-multivendor-membership'), 'value' => $first\_step),
399
'free\_membership' => array('label' => \_\_('Basic Membership', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[free\_membership\]', 'type' => 'select', 'options' => $wcfm\_memberships\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'hints' => \_\_('This membership will auto-assign to vendors when subscription expired or recurring subscription cancelled.', 'wc-multivendor-membership'), 'value' => $free\_membership),
400
'featured\_membership' => array('label' => \_\_('Featured Membership', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[featured\_membership\]', 'type' => 'select', 'options' => $wcfm\_memberships\_array, 'class' => 'wcfm-select wcfm\_ele', 'label\_class' => 'wcfm\_title', 'value' => $featured\_membership),
401
'subscribe\_button\_label' => array('label' => \_\_('Subscribe Button Label', 'wc-multivendor-membership'), 'name' => 'membership\_type\_settings\[subscribe\_button\_label\]', 'type' => 'text', 'class' => 'wcfm-text wcfm\_ele', 'label\_class' => 'wcfm\_title', 'custom\_attributes' => array('required' => true), 'value' => $subscribe\_button\_label)
402
));
403
}
404
?>
405
405
406
406
<?php if( apply\_filters( 'wcfm\_is\_pref\_membership', true ) ) { ?>
wc-multivendor-membership/trunk/wc-multivendor-membership-config.php
r2887033
r2907455
5
5
define('WCFMvm\_TEXT\_DOMAIN', 'wc-multivendor-membership');
6
6
7
define('WCFMvm\_VERSION', '2.10.7');
7
define('WCFMvm\_VERSION', '2.11.0');
8
8
9
9
define('WCFMvm\_SERVER\_URL', 'https://wclovers.com');
wc-multivendor-membership/trunk/wc-multivendor-membership.php
r2887033
r2907455
5
5
\* Description: A simple membership plugin for your multi-vendor marketplace.
6
6
\* Author: WC Lovers
7
\* Version: 2.10.7
7
\* Version: 2.11.0
8
8
\* Author URI: https://wclovers.com
9
9
\*
…
…
12
12
\*
13
13
\* WC requires at least: 3.0.0
14
\* WC tested up to: 7.5.0
14
\* WC tested up to: 7.6.0
15
15
\*
16
16
\*/