Link to Legal Documents

This topic contains 15 replies, has 3 voices, and was last updated by  Al Sommer 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #522408

    Al Sommer
    Expired Member
    Post count: 27

    I’d like to create one checkbox that has the following that includes more than just the Terms and Conditions. There are three documents that require consent and I’d like to combine them all into one checkbox for approval.

    Consent* (CHECKBOX)

    I have read and agree to the BiddyDiddy Terms and Conditions, Privacy Policy, and Prohibited Products Policy.

    Can anyone help accomplish this?

    Thanks in advance,
    Al

    #522423

    Alex Rollin
    Moderator
    Post count: 27815

    I can see that on my test site. The field description is supposed to support HTML. I will flag your topic for the developers.

    #522528

    Kiran
    Moderator
    Post count: 7069

    Hi Al,

    Try following PHP snippet to allow HTML tags in specific field description.

    
    
    /**
     * Allow HTML tags in field description.
     */
    function gd_snippet_191220_allow_html_in_field_desc( $field, $input ) {
    	/* FIELDS HERE */
    	$allowed_fields = array(
    		'custom_email',
    		'custom_phone',
    		'my_url',
    	);
    
    	if ( ! empty( $input['frontend_desc'] ) && ! empty( $field->htmlvar_name ) && in_array( $field->htmlvar_name, $allowed_fields ) ) {
    		$field->frontend_desc = stripslashes( geodir_sanitize_html_field( $input['frontend_desc'] ) );
    	}
    	return $field;
    }
    add_filter( 'geodir_cpt_cf_sanatize_custom_field', 'gd_snippet_191220_allow_html_in_field_desc', 20, 2 );

    Regards,
    Kiran

    #522559

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #522564

    Kiran
    Moderator
    Post count: 7069

    Hello Al Sommer,

    It is a PHP code that needs to execute to achieve what you asked. That snippet should be put child theme functions.php file or added via snippet plugin.

    Kiran

    #523525

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #523585

    Kiran
    Moderator
    Post count: 7069

    Hello,

    It looks like you can copied snippet from emails. Please copy snippet from here #522528
    After adding snippet change “custom_email, custom_phone & custom_url” to your desired field, because those field are just for examples.

    Provide us admin credentials to do this from our side if you are facing problem in adding a snippet.

    Regards,
    Kiran

    #523619

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #523640

    Kiran
    Moderator
    Post count: 7069

    Hi Al Sommer,

    Please provide us site link & admin credentials in a private reply to look into there.

    Thanks,
    Kiran

    #523680

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #523698

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Issue has been fixed.

    – Changed custom_consent to consent in PHP snippet, because field key is consent at field setting.
    – Re-saved field with html description.

    Please check and let us know.

    Regards,
    Kiran

    #523701

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #523702

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

    #524093

    Al Sommer
    Expired Member
    Post count: 27
    This reply has been marked as private.
    #524232

    Kiran
    Moderator
    Post count: 7069

    I have done following.
    – From Professional Profiles > Settings > Custom Fields > Package
    – Re-entered html in “front end description”
    – Save

    Please check and let us know.

    Kiran

Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket