Add a privacy policy acceptance flag

You can add a checkbox custom field for your privacy policy acceptance on the Salon Booking checkout form adding this code to your functions.php file.

add_filter('sln.checkout.additional_fields',function(){
return array(
'custom_field_a'=> array(
"label" => 'I accept the terms of your <a href="#">Privacy Policy</a>',
"type" => 'checkbox',
"width" =>'full'
)

);
});

From the "Settings > Check-out > Form fields" you can set this field as "required".

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.