• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 23.04.24, 10:20
  • Opened by: Cedric Casoni
  • Closed by: Fred
  • Closed on: 07.05.24, 09:06
  • Reason: Closed
  • Comment: Glad to help!

Ticket #25505 - DPD carrier problem on AMP

Hi Fred, I hope you are well.

I have a carrier problem on AMP. Indeed, the transporter module works on my desktop version site but not on AMP. If you go to the delivery choice from your computer you will see that everything works, but as soon as you switch to AMP it no longer works.
Do you have any idea of the problem?

Thank you for your help.
Cedric

Comments

Fred 23 Apr 2024, 11:13

Hi, Cedric.
By default, any third-party module is not compatible with AMP. We have "AMPified" all PrestaShop pages and our own modules, and if you want to have some module work in AMP, it must be "AMPified".
For that purpose we have added an option to load "desktop" version of checkout page where third party modules works fine. Please make sure you have enabled that option in AMP settings

Cedric Casoni 23 Apr 2024, 14:27

yes but it is the module of a transporter. And on the carrier choice page I only have one carrier for whom it does not work in AMP. It's not for payment.
So I don't understand why it works with other carriers and not this one.
Can you please check?

Fred 24 Apr 2024, 16:06

Ok, I see.
But as I can see there is no option to select a pickup point for DPD module on desktop → https://take.ms/91vbH maybe I missed something, please check

Cedric Casoni 25 Apr 2024, 18:09

arfff yesterday
DPD Pickup module was OK on desktop
Chronopost Pickup module was OK ok desktop and AMP

Today the both are KO. You didn't touch anything ?
Cédric

Fred 26 Apr 2024, 14:15

Why I need to touch something? :) I'm interested that you have everything working with no issues.
Please remind what did you do before. Check those modules hooks, the module must be hooked into all it's hooks

Cedric Casoni 01 May 2024, 10:03

Hello Fred, sorry, it was just a question. Now it's ok for desktop version.
Can you check on the mobile version to try to understand the problem?
I checked the brackets and I can't add one more.

Thanks for your help.

Cedric

Fred 03 May 2024, 11:14

I see a lot of js errors in mobile version. But what should happen when you click on delivery option. As I can see now https://take.ms/vsiOy there is nothing changed

Cedric Casoni 03 May 2024, 13:31

But it's terrible, it worked very well, I even put the original TPL back and it still doesn't work.
I haven't touched the JS of the theme.

It's hard for me to understand.
You have an idea ?

Cédric

Cedric Casoni 06 May 2024, 10:52

I don't understand why but the modules was disable… Now it's ok.

Cédric

Fred 06 May 2024, 13:59

Wow, ok, great