- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 21.11.20, 10:57
- Opened by: Elie Naulleau
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
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!
Comments
Please check out AMP documentation https://alysum5.promokit.eu/promokit/documentation/amp/troubleshooting.html
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
Please make sure you have installed AMP module version 2.0. Go to Modules Catalog and just install it
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.
did you change Friendly URL‘s settings?
Try to disable Friendly URL‘s option and enable it back