• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 21.11.23, 23:50
  • Opened by: Juan Arcila

Ticket #25069 - AMP Can't add product to cart

When we try to add a product to the cart, it shows an error message that reads “Cannot be added to cart”. But if you reload the page, the cart gets updated with the correct information.

Comments

Fred 22 Nov 2023, 09:11

Hi, Juan Arcila.
Please fill out all necessary fields in your profile https://support.promokit.eu/myprofile to access to your Back-office and FTP Server to let me check and fix the issue

Juan Arcila 22 Nov 2023, 14:28

Done. Thank you for answering so quickly.

Fred 22 Nov 2023, 17:04

The issue has been fixed. Please test to confirm the change

Juan Arcila 22 Nov 2023, 17:10

Yes, now it's working. May I ask what was the error? We are programmers so we would like to understand a bit more about the failure. And while we are discussing AMP, do you mind if I ask you where to edit the pages for AMP? All I see is homepage but like for example, https://kuipersparrilla.com/demopresta/mobile/page/4-sobre-kuipers-parrilla is mostly text.

Fred 23 Nov 2023, 11:00

There was a wrong way to get product price in this file /httpdocs/shop/modules/pkamp/controllers/front/ajaxCart.php

But that's strange you are first who get this issue. We have checked that locally and everything works fine with the same code that causes an error in your store

Juan Arcila 23 Nov 2023, 14:58

Ok, thank you for taking the time on explaining the issue.

Fred 23 Nov 2023, 14:59

You are welcome!