• Resolved vonwa

    (@vonwa)


    Hi,

    Super happy with this plugin, except for one thing :

    Checkboxes for consent in the modal should be checked by default.
    That means if the user open the modal, if consent is not active (in admin setting) and required (in admin setting) and neither rejected or accepted (by the user), then the checkbox should be checked.

    After sources inspection, it can be easily done in getConsentIdsByCookie() function at Includes/Helper.php line 648 in an “else” block :

    else {
        // Undefined so we presume the user want them all and then opt out
        $consents = Consent::getInstance()->getList(array(
            'required' => array(
                'value' => 0
            ),
            'active' => array(
                'value' => 1
            )
        ));
        foreach ($consents as $consent) {
            $output[] = intval($consent->getId());
        }
    }

    Like in the “accept” case in the switch right above line 626.

    What da ya thank ?

    • This topic was modified 4 years, 10 months ago by vonwa.
Viewing 1 replies (of 1 total)
  • Hey @vonwa,

    If consent is not active in admin settings the modal doesn’t show.
    So, I am failing to understand what you mean.
    Could you explain a bit more?

    Generally speaking, enabling checkboxes by default is not according to GDPR as far as I can understand.

    Kind Regards,

    Merijn

Viewing 1 replies (of 1 total)
  • The topic ‘Consent on Modal should be checked by default’ is closed to new replies.