• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 06.04.19, 08:38
  • Opened by: Javier
  • Closed by: Marek
  • Closed on: 27.04.19, 11:02
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14204 - Abandoned cart constantly

Hi

I’ve realised that I have abandoned cart (without value in total) since I installed the theme. I suppose when someone visit the website the theme keep a cart straitaway, it that possible?

I can’t find other explication. This didn’t happen with the old theme

Thanks

Comments

Marek 06 Apr 2019, 10:35

There is no abandoned cart in the theme, maybe you have some third party module

Javier 06 Apr 2019, 12:50

Hi

Impossible. I’ve not installed another module or theme but Alysum theme and this didn’t happen before.

Thanks

Marek 06 Apr 2019, 13:19

Could you please take a screenshot of the issue?

Javier 08 Apr 2019, 08:05

Hi

Here you are!

It seems to create an abandoned cart when someone visit the website, ¿?
Those are the last one

Thanks

Marek 08 Apr 2019, 19:05

Yes I see now.
Do you know what action in your store calls to create abandoned cart? I have make some tests in our demo and didn’t found out such action

Javier 08 Apr 2019, 21:54

Do you know what action in your store calls to create abandoned cart? = > No, i don’t know.

I am not using any abandoned cart module.

I’m using the prestashop cart

Before installing theme it doesn’t happend

Prestashop 1.7.5.1

Marek 08 Apr 2019, 22:04

I need some time to investigate that

Javier 08 Apr 2019, 23:17

ok, I wait

lsiesser 09 Apr 2019, 13:44

I’ve the same problem, I follow

ric nov 09 Apr 2019, 15:58

same follow

Marek 15 Apr 2019, 18:59

hi everybody.
Here is possible solution what works for me:
- Open the file

/modules/pk_amp/controllers/front/ajaxCart.php

find the line

$ctx->updateCustomer($ctx->customer);

replace it with

if (!empty($do)) {
  $ctx->updateCustomer($ctx->customer);
}
Javier 16 Apr 2019, 13:01

Hi Marek

Sorry but it’s not working.

The problem seems to be on the AMP Version

If I replace with this code “if (!empty($do)) {$ctx→updateCustomer($ctx→customer);}”, no items can be added to the cart and the customer can not place an order because he/she doesn’t see what products there are on the cart.

In addition, if we replace with the code above, the search doesn’t work

Thanks
Javier

Marek 16 Apr 2019, 13:38

Hi, Javier.
Please update credentials to access to your server through FTP

Javier 16 Apr 2019, 14:01

Hi Marek

From which country are you trying to connect?

Marek 16 Apr 2019, 14:06

Poland

ric nov 17 Apr 2019, 18:25

Is this bug solved?

Marek 17 Apr 2019, 18:26

Did you try the solution I shared above?

ric nov 19 Apr 2019, 10:32

no, because your client has already replied that it doesn’t work, but i can try


After a try, same problem of Javier, the cart not works correctly, no items can be added…

Marek 19 Apr 2019, 16:45

to Ric.
I just added a fix for you and don’t see the cart issue http://take.ms/pqxBe

Please check out abandoned cart problem, you just need to open AMP version in incognito tab

ric nov 23 Apr 2019, 10:03

Hi Marek, at me still showing this bug, the items cant be added to cart when i put this edit, actually i removed that code because the website is in production and customers could not placer any order.

Please for this fix, let me know before you change or better put the code in this topic, so I can try it.

Marek 23 Apr 2019, 22:35

I just make that fix once again and test out your cart and all works fine http://take.ms/Irlzs

Javier 24 Apr 2019, 10:39

Hi Marek,

Now it’s working.

Thanks

Marek 24 Apr 2019, 10:41

Great!

ric nov 27 Apr 2019, 11:01

ok solved! Thanks