• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 16.12.21, 13:45
  • Opened by: Variedades Auto
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22790 - Cart empty after lougout

Hello,

This is a old problem you can see in the tickets. I came up without a solution for this. I tested in a fresh install and the problem is not there.
Only in the site with the theme the problem appears. When a client loggoff or clear cookies the items in cart are gone. This cant happen, for example in Amazon this doesnt happen.

Can you please review this situation? Since the last topic is closed.

Thanks in advance.

Comments

Variedades Auto 16 Dec 2021, 15:49

Hello btw I need another thing. I need to hide some fields in the site can you help. Please see the attach.

Attachments:

Expedition.png (161.7 KiB)
Variedades Auto 16 Dec 2021, 18:36

Hello,

This field too please.

Thanks in advance.

Attachments:

Expedition Cart.png (255 KiB)
Fred 17 Dec 2021, 11:47

Please try to enable this option https://take.ms/qWE2q

Variedades Auto 17 Dec 2021, 12:01

Its active.

Variedades Auto 17 Dec 2021, 12:04

The text we can put the header row can be translated? Because I cant find the way yo do it. See attach plz and thanks.

Attachments:

Text Block.PNG (58.1 KiB)
Variedades Auto 17 Dec 2021, 12:05

The problem with cart is old, you guys never came up with a solution. And the option you are telling me to active is active in all shops.

I did a fresh install with the option active the cart is saved. But if I install your theme the problem appears.

Fred 19 Dec 2021, 12:12

Yes, you are right.
Look like some module brakes this option. We already spent a lot of time on that with no success yet. Hope to find a solution soon

Variedades Auto 20 Dec 2021, 10:33

Hello, I really need this done my freind. My type of client do the order by days. They don’t do the order in one day and if they logout they lose everything.
And the fields you saw something?

Thanks in advance.

Fred 23 Dec 2021, 18:39

All these days we spent on issue investingtion. But the reason of issue still not found.
Instead we have found a report about the same problem with solution in official PrestaShop GitHub account - https://github.com/PrestaShop/PrestaShop/issues/24390

We have tried that “fix” and it works

Variedades Auto 27 Dec 2021, 11:52

Hello, Seems its not working. I added a product to cart but when I log off the cart is empty again….

Fred 27 Dec 2021, 12:25

As I can see the file mentioned in the issue is not modified by you https://take.ms/VNF46

Variedades Auto 27 Dec 2021, 13:29

Ah I tought you did it.

Variedades Auto 27 Dec 2021, 13:37

I dont know what i need to change

Variedades Auto 27 Dec 2021, 13:38

And you said this “We have tried that “fix” and it works”

Variedades Auto 27 Dec 2021, 16:10

And in the post you send says this “To be informed when it’s fixed, please subscribe to the issue mentioned above.”

Variedades Auto 27 Dec 2021, 16:11

But please,. if you have the solution do it.

Variedades Auto 27 Dec 2021, 17:16

Need this solved to deliver the site.

Fred 27 Dec 2021, 17:19

I just fixed that file despite that’s core prestashop file, and not related to the theme.
But I’m not able to register - https://take.ms/Lk4nL to check how it works
Please test it out now

Variedades Auto 27 Dec 2021, 17:44

Seems its working. Could you please remove the fields I mentioned above?

Fred 28 Dec 2021, 10:37

use following CSS

/* shopping cart popup */
.modal-body .media-list > li:nth-child(3),
.modal-body .media-list > li:nth-child(4) {display:none}
/* dropdown cart */
.shopping_cart .cart-total > div:nth-child(2) {display:none}

We recommend to use Developer Tools of your browser to change such small things https://www.youtube.com/watch?v=wcFnnxfA70g

Variedades Auto 28 Dec 2021, 12:39

Hello my freind. The code you sent its not working. Prices still appear on pop up and cart resume.

Fred 28 Dec 2021, 12:42

try to clean prestashop cache and make sure CSS cache is disabled in your prestashop

Variedades Auto 28 Dec 2021, 12:51

Done, but the issue continue… I dont know if im doing it right.

Variedades Auto 28 Dec 2021, 15:45

I’m at my personal computer working at home, and it’s strange, because when I try to access settings or modules gives me an error 404 page.

Fred 29 Dec 2021, 11:23

I don’t see the issue, Theme Settings works fine for me https://take.ms/cW8etS

Variedades Auto 29 Dec 2021, 15:48

Im trying to see whats happening. Could you please solve the Css Problem? thanks.

Fred 29 Dec 2021, 20:03

The CSS code I gave you works correctly
https://take.ms/SAAA2

Variedades Auto 30 Dec 2021, 12:34

Need to remove the vat and the expedition too my freind.

Attachments:

Capturar.PNG (74.5 KiB)
Variedades Auto 30 Dec 2021, 12:36

And inside the cart too, like I said above. I tried by myself but since the field is the same, I end up with all hidden.

Attachments:

Capturar.PNG (106.6 KiB)
Fred 31 Dec 2021, 11:56

Try this

#blockcart-modal .product-tax,
#cart .cart-summary-line.shipping,
#cart .cart-summary-line.cart-total {
display:none
}

We recommend to use Developer Tools of your browser to change such small things https://www.youtube.com/watch?v=wcFnnxfA70g

Variedades Auto 10 Jan 2022, 12:12

Hello, In the cart pop up stills appearing.

Attachments:

Cart Pop Up.PNG (380.5 KiB)
Variedades Auto 10 Jan 2022, 12:18

And here I need to hide this two.

Variedades Auto 10 Jan 2022, 12:19

Sorry forgot the attach

Attachments:

To hide.PNG (110 KiB)
Fred 10 Jan 2022, 17:15

We recommend to use Developer Tools of your browser to change such small things https://www.youtube.com/watch?v=wcFnnxfA70g

Variedades Auto 10 Jan 2022, 17:19

Yes, I know, but they are all in the same class. If i hide one all will be hidden.

Fred 11 Jan 2022, 09:32

Ok, I see. Try this

.cart-summary-totals > div:nth-child(2),
.cart-grid-right #cart-summary-totals {display:none}
Variedades Auto 18 Jan 2022, 21:06

It works it seems, i have a problem now o cant save any changes, could you please ser whats happening? Thanks

Fred 19 Jan 2022, 11:10

I just saved it with no problem https://take.ms/Nue4M

Variedades Auto 20 Jan 2022, 12:04

Its in the products my freind. Can you see?

Fred 20 Jan 2022, 23:15

I just saved a product with no problem - https://take.ms/sHYm2

Variedades Auto 21 Jan 2022, 10:19

Its on the kits

Fred 21 Jan 2022, 17:06

Sorry, but I can’t find, please show it to me at a screenshot

Variedades Auto 21 Jan 2022, 17:25

On products search “Kit” and try to edit. You will see that keeps spinning.

Fred 24 Jan 2022, 11:20

I have tried “kit”, then changed to “kitt” and all works fine - https://take.ms/4SGh6