Tart GDPR-cookie-widgets V1.0

for osCommerce Online Merchant v2.3

V1.0 Tart GDPR cookie widgets tabs. let’s you add a cookie widget to your site. This will allow your customer to refuse cookies if they wish to and let you comply with legislation. What you allow will depend on who you are and what legal requirements you need to comply with. It is imposable to make an add-on that will work out of the box for all shops. So this has 2 modules, one is a header_tag which installs the main script which loads the main js and makes language selection. The other is a footer_suffix which allows you to enter the custom scripts for your cookies. You have 10 input boxes in footer_suffix admin to enter custom scripts. You do not need to use all 10, these are just to make management easy for most shops who will need only a few so can enter one into each box. If you need more than ten then just add extras all into one box. Included in the files is a list of some of the main scripts needed. Simply copy from <script to </script> and paste into input box and save. <script type="text/javascript"> (tarteaucitron.job = tarteaucitron.job || []).push('adsense'); </script> That’s all that is required. If you need more scripts then go to this website and search for the one you need. https://opt-out.ferank.eu/en/install/ The script is multilingual but I have only added a few to the code. These are in the header_tag class so if you need more you can edit it and add them. $language_code == 'fr' || $language_code == 'en' || $language_code == 'nl' || $language_code == 'de' || $language_code == 'es' || $language_code == 'it' || $language_code == 'pt' || $language_code == 'pl' || $language_code == 'ru' ) { I have to thank @Gyakutsuki for all his help with this add-on and especially the multilingual code. That’s it again as always copy everything over into correct directory's don't forget to copy the new js files to ext. Then go into admin and install and set up the 2 modules. You have to have both installed and set up. The rest is straightforward and should be self explanatory. Enjoy.

Changelog