Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Cookie Consent Banner Revisit and change

How to allow users to reopen Cookie Consent Banner on Shopify Privacy & Compliance app?

RogerDavie
Excursionist
14 0 5

Using the Shopify Privacy & Compliance app...

 

This all works, but I cannot find a way for users to reopen the popup to change things.

 

Any ideas please?

 

Thank you.

Replies 12 (12)
RogerDavie
Excursionist
14 0 5

Can't you just help me here?

 

It may help others in the future too.

PureTime
Explorer
70 2 24

Exactly!

 

I need it too as this is yet another Shopify app with a lot of shortcomings. Especially for Scandinavian countries.

RogerDavie
Excursionist
14 0 5

The best idea I have come up with so far is to add a note to the privacy page to clear cookies for the site and start again. Not ideal, but a workaround. I see no way to add a simple button.

scholar123
Visitor
1 0 0

That is a great idea! How do you do that?

BenjaminHD
Shopify Partner
10 1 5

my understanding is that the GDPR makes this a necessity for all EU-countries.

PureTime
Explorer
70 2 24

Yes - but that should be part of the app - not anything to code on top.

RogerDavie
Excursionist
14 0 5

Bump

Djurmamman
Explorer
63 4 11

There must be a way to trigger the, shopify-pc__prefs__dialog !?

 

window.Shopify.customerPrivacy.currentVisitorConsent()

storefront-banner.js

JimmyUK
Shopify Partner
7 0 5

Bumping this too—I also need to understand how to do this. Thanks

Phillip1337
Shopify Partner
5 3 1

I just had the same question. There is actually a function to do that.
Just call "privacyBanner.showPreferences()" in your js. This opens the advanced (big one) cookie banner. The default one (the small one) doesn't work since it only works oncee. But this way the customer can change the settings according to GDPR.

BenjaminHD
Shopify Partner
10 1 5

This worked for me: onclick="event.preventDefault(); privacyBanner.showPreferences();"

Initial code from @Waldi_7 

Franek1
Tourist
8 0 4

I think I found a solution, let me know if it works for you. I added this link to one of the menus in the footer, but you can place it anywhere.

 

https://YOURDOMAIN/?preview_privacy_banner=1