Open cookie settings with a click (TinyCookie - Dawn Theme)

Solved

Open cookie settings with a click (TinyCookie - Dawn Theme)

Cookie2024
Tourist
4 0 1

Hello everyone,


I use the cookie plugin “TinyCookie”.

The plugin offers various options for store front integration:

Storefront integration

If you want to add a cookie banner or preference feature, you can easily do so using our pre-built features.

To open the cookie bar from a URL, simply add ?tinycookie-preview to the end of any URL on your store.


https://*****.com?tinycookie-preview

To open Cookie Preferences from a URL, simply add ?tinycookie-preferences to the end of any URL on your store.


https://*****.com?tinycookie-preferences


To open the cookie bar or preferences without page refresh, you can use our ready-made JavaScript.


window.Shopify.tinycookie.loadCookieBar();


window.Shopify.tinycookie.loadPreferences();

 

I would now like to be able to open the preferences from both the footer and the privacy policy with a click without the page reloading.

So create a clickable link that I can place in both the footer and the privacy policy that the user can click to open the cookie settings without reloading the page.

 

I can't use the URL extensions for this because this involves a reload.

So the solution probably lies in JavaScript, which is also offered. However, I have no idea how to use this to create the clickable links I want.

 

Can someone help? 😊
The Dawn theme is used.

 

Best regards

 

Accepted Solution (1)

Victor
Shopify Staff
2611 236 566

This is an accepted solution.

Hi @Cookie2024,

 

This is not something Shopify can support directly but someone else here may be able to offer some guidance. I'd recommend contacting the app developer of TinyCookie directly as well to ask them if they have any advice to offer; they can be reached at info@tiny-img.com.

 

Victor | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Reply 1 (1)

Victor
Shopify Staff
2611 236 566

This is an accepted solution.

Hi @Cookie2024,

 

This is not something Shopify can support directly but someone else here may be able to offer some guidance. I'd recommend contacting the app developer of TinyCookie directly as well to ask them if they have any advice to offer; they can be reached at info@tiny-img.com.

 

Victor | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog