Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified + complex version at the same time #91

Open
Yoann-VINCENT opened this issue Apr 7, 2021 · 1 comment
Open

Simplified + complex version at the same time #91

Yoann-VINCENT opened this issue Apr 7, 2021 · 1 comment

Comments

@Yoann-VINCENT
Copy link

Hi !
First of all, thanks for this great bundle !
However I was wondering if it was possible to make both simplified and complex version coexist ?
I manage to display all three buttons, but 'save' will only work with simplified on false and the other two with simplified on true.
Therefore I deleted all occurences of the simplified option, but the problem persists, as if the option was always set on false...
Do you have any idea ?
Thanks !

@dduenker
Copy link

You have to modify CookieConsentType for this: https://github.com/ConnectHolland/cookie-consent-bundle/blob/master/Form/CookieConsentType.php#L62
Note, that not only do you have to add the button via the builder, but also modify the function listening to PRE_SUBMIT, as it currently only checks, whether all cookies should be saved or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants