urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by loop »

Hi
i use cytrio.com as a cookiebanner and i can decide which cookie are "necessary" so also if the customer refuse the cookies, the necessary are accepted...
i have the cookie ceid and cookie_test in the necessary group, but as soon as i click something in the cart with only this 2 cookies allowed and click on shoppincart, the ceid changes and the cart is empty again

at the moment if somebody clicks "decline" and only has ceid and cookie_test cookie accepted, he cannot shop :(

what do i miss here? Is there a other cookie i need to make "necessary" ?

thanks


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by burt »

ceid and cookie_test are the only two needed.

Turn off this `cookiebanner`, and see if `add to cart` all works.
If yes it does work, you know the problem is with this cookiebanner, so you can get help from them.

If `add to cart` does not work with no cookiebanner, you know the problem area is Phoenix.
So you can get help here.
I am not here to build for you.
I am here to build with you. Let's help each other.
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by loop »

Hi

i know it's because of the cookiebanner blocks cookies, with enabled cookie banner and clicke "accept all cookies" it works normal, if i say only cookie_test and ceid allowed, i have this problem, that on login.php the cart gets empty

that's really strange
whenn i click "only neccesarry and the 2 cookies are there ceid and cookie_test) thenn i can add to cart, i see the cart it's there, but as soon as i click to "checkout" where i can login with email / passwort, the cart is empty again and new session

if i click "accept all cookies" it works normal, don't understand that. it seems that as soon as the cart is to login.php the session is lost again
>of course only if i make only necesserary 2 cookies ceid + cookie_test

with cookiebanner and clicked on "accept all" everything is just fine / normal
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by burt »

Maybe play with the session settings in admin ?
I am not here to build for you.
I am here to build with you. Let's help each other.
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by loop »

hi burt
what you mean exaktli with playing with session? my settings are:

Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True

i see the last one: Recreate the session to generate a new session ID when the customer logs on or creates an account (PHP >=4.1 needed).

but i'm not sure what that means, as soon as i click from shoppingcart to login.php the cart gets empty, but i assume that's not the idea from the setting "recreate session" and i also do not know why this setting should change as i allow the cookie ceid and cookie_test ..
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by ecartz »

Burt suggested two things.

1. What happens if you simply turn off the cookiebanner code? Not authorize cookies in cookiebanner, but turn it off entirely.
2. Try changing the session values in admin, as the current ones don't seem to be working for you.

The only other suggestion I can make is to try a browser with Web Dev Tools. Open the Network tab. Click the link that makes stuff not work. What actually happens? You probably see at least one redirect. Does the domain name change at any time during that process? By change, I mean is it example.com for one page and www.example.com or shop.example.com for a different one? If so, what causes that change. You can also find out what pages are in the sequence and go through it manually one-by-one to see where you lose the session.

Beyond that, what does cookiebanner say about all this? Is this a common problem? Do they have any way of detecting what cookies they are deleting? Do they log why they delete them? Do they have a debug mode that might give you more information? This is what Burt suggested, that you ask them why their code is making things not work. Maybe they have something that they can tell you.

You haven't posted a link to your store, so it would be hard for us to say what's happening. We can't see.
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: urgent - need help with "cookies" necessary - cookiebanner (which are necessary)

Post by loop »

Hi eCartz

thank you for your reply

it seems that the cookie banner company made something wrong, after 2 days they wrote me i should check again and now it works :)
thanks for all your help @ecartz @burt
Philipp


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply