I need to use the Cookie Consent module being in the EU. I have used it many times to disable cookies (and not bother re-enabling them as we don’t need them). But for some eCommerce sites we are using it is causing issues…
Firstly, we do not want a pop up on the site at all… so therefore we want to turn off all cookies by default. There is no need to set any cookie for casual browsing of the site. So Cookie Consent does this. Otherwise if we set cookies (the assumed consent) then we need the pop up to indiciate this (you are not allowed to rely on a privacy policy or other link in the footer menu). So no cookies is best.
But as its an eCommerce site (using Cart Throb) it requires a cookie for this part of the site to work. Therefore cookies only need to be enabled when a user uses the cart.
Ideally it would be good to exempt Cartthrob from the Cookie Consent because these cookies are allowed anyway, and do not need any consent. But in order to disable the tracking cookies which do need a notification, we are disabling cartthrob cookies.
So I thought adding this field to the Add to Cart form would work, as per the module documentation:-
<input type='checkbox' name='cookie_consent' value='y'/>But this does not work. It actually works as a ONE OFF, i.e. items ARE added to the cart on the next page, BUT when checking out it states there is no item in the cart, and cookies are in fact still disabled.
I do not want a separate form to enable cookies that goes to a thank you for enabling cookies page… I want it integrated into the checkout form, OR better still I would add it as a hidden field, so they just get enabled in the background.
The best way would be just ignore cartthrob in cookie consent of course, but as this is not possible we have to do it backwards and enable cartthrob cookies on checkout.
Could you please advise how to get this working so we can have a legal website without unnecessary messages (because you dont need notifications for the cartthrob cookies we need, but you do for the tracking cookies we don’t need!)?
Thanks a lot