News:

AbanteCart v1.4.2 is released.

Main Menu

GDPR - adding cookie warning on main page

Started by raj@ad4u.co.uk, December 10, 2018, 10:54:51 AM

Previous topic - Next topic

raj@ad4u.co.uk

Hi,

Where can I add the following code so that the warning appears and stay on all the pages:

echo '<div style="text-align:center; font-size:90%">
This site uses cookies. <a href="https://www.google.com">Click <button class="blink" style="border:red 1px solid; font-size:90%;">
Exit
</button> to leave the site.
</a>
</div>';

Including the code at the top of "search.php" does work, but it does not appear on index.php.

I just want the user to read the warning and leave if they have an issue with cookies.

Raj

Sam_78

Use this code in tpl that runs on every page like head.tpl and if you want to load this after page is loaded you can use it in footer.tpl

raj@ad4u.co.uk

Thanks for your reply.

I have installed the code in home.php and head.php.

Make sure the code is added after the header function as sending data before the header will stop the site
functioning properly.

Raj

Forum Rules Code of conduct
AbanteCart.com 2010 -