• Priority: High
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 21.11.20, 10:57
  • Opened by: Elie Naulleau

Ticket #19917 - AMP : cart always displayed as empty

I had already this issue in version 5.5.0. I had solved it disabling the AMP module.
Now that I have upgraded to 5.7.0 and that customers complain to have mobile version of the shop, I post this issue :

The AMP version of the shop seems to work fine, but when ready to pay, clicking on the Cart button shows an empty cart, despite there are items in the cart.
Also they are lots of errors in the JS console. See attached screen shots.

Thank you!



Fred 21 Nov 2020, 11:26
Elie Naulleau 21 Nov 2020, 11:45

Ok, I have disabled "Re-display cart at login" in the "Shop Parameters" → "Customer Settings". Then I have emptied cache.
I have checked others point in troubleshouting.

The cart is still always empty.

THere is 404 in the JS console when I click on cart button.

xhr-impl.js:86 GET https://www.happytoseeyou.fr/fr/index.php?controller=404 net::ERR_ABORTED 404
(anonymous) @ xhr-impl.js:86
Promise.then (async)
f.xg @ xhr-impl.js:70
ng @ xhr-impl.js:105
f.fetch @ xhr-impl.js:181
og.fetch @ batched-xhr-impl.js:59
f.fetchJson @ xhr-impl.js:131
(anonymous) @ batched-json.js:60
Promise.then (async)
cb @ batched-json.js:58
jb @ amp-state.js:166
(anonymous) @ amp-state.js:225
Promise.then (async)
gb @ amp-state.js:223
(anonymous) @ amp-state.js:92
f.executeAction @ base-element.js:605

Fred 22 Nov 2020, 10:29

Please make sure you have installed AMP module version 2.0. Go to Modules Catalog and just install it

Elie Naulleau 22 Nov 2020, 10:47

Ah ok I was not aware of this kind of upgrade.
I just did it. Things got worse : https://www.happytoseeyou.fr/mobile/ not longer works (404) after the upgrade. I purged the cache, no difference.

Fred 22 Nov 2020, 11:54

did you change Friendly URL's settings?
Try to disable Friendly URL's option and enable it back