WCMp Core
Tagged: terms&conditions
-
AuthorPosts
-
-
March 5, 2021 at 5:13 PM #117013WLS_FHParticipant
Hi,
we added the following snippet to enable the acceptance of terms & conditions in the login/register page for customers.
I’m wondering whether we can do the same for the Vendors_registration// Add term and conditions check box on registration form
add_action( ‘woocommerce_register_form’, ‘add_terms_and_conditions_to_registration’, 20 );
function add_terms_and_conditions_to_registration() {if ( wc_get_page_id( ‘terms’ ) > 0 && is_account_page() ) {
?>
<p class=”form-row terms wc-terms-and-conditions”>
<label class=”woocommerce-form__label woocommerce-form__label-for-checkbox checkbox”>
<input type=”checkbox” class=”woocommerce-form__input woocommerce-form__input-checkbox input-checkbox” name=”terms” <?php checked( apply_filters( ‘woocommerce_terms_is_checked_default’, isset( $_POST[‘terms’] ) ), true ); ?> id=”terms” /> <span><?php printf( __( ‘<span>I have read and accept the terms & conditions</span><span> and the Privacy Policy</span></span>’, ‘woocommerce’ ), esc_url( wc_get_page_permalink( ‘terms’ ) ) ); ?></span> <span class=”required”>*</span>
</label>
<input type=”hidden” name=”terms-field” value=”1″ />
</p>
<?php
}
}// Validate required term and conditions check box
add_action( ‘woocommerce_register_post’, ‘terms_and_conditions_validation’, 20, 3 );
function terms_and_conditions_validation( $username, $email, $validation_errors ) {
if ( ! isset( $_POST[‘terms’] ) )
$validation_errors->add( ‘terms_error’, __( ‘Terms and condition are not checked!’, ‘woocommerce’ ) );return $validation_errors;
} -
March 8, 2021 at 5:33 PM #117113NerdySupportExpert MoumitaKeymaster
Hi @WLS_FH, this link will help you out further: https://multivendorx.com/support-forum/topic/vendor-terms-conditions-on-sign-up/
-
March 8, 2021 at 8:25 PM #117162WLS_FHParticipant
Thanks Moumita,
will look into that and let you know.
-
March 9, 2021 at 1:59 AM #117174WLS_FHParticipant
Awesome it worked. Thank you.
We still have an issue with recaptcha not working. -
March 9, 2021 at 10:21 AM #117192MVX Support NinjaKeymaster
Hello,
Thank you for the update. May I know what is the issue that you are facing with recaptcha?
-
March 9, 2021 at 1:12 PM #117205WLS_FHParticipant
You may want to liaise with Moumita as we discussed over email.
We currently solved the issue by installing ‘Advanced nocaptcha …’ and siabling WCMP’s recaptcha widget. -
March 9, 2021 at 2:54 PM #117214MVX Support NinjaKeymaster
Thank you for the update.
-
-
AuthorPosts
The topic ‘Adding terms and condition on Vendors_registration_page’ is closed to new replies.