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

RogerDavie
Excursionist
14 0 4

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 10 (10)
RogerDavie
Excursionist
14 0 4

Can't you just help me here?

 

It may help others in the future too.

PureTime
Explorer
66 2 23

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 4

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?

BenjaminB
Shopify Expert
4 0 1

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

PureTime
Explorer
66 2 23

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

RogerDavie
Excursionist
14 0 4

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.