• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 08.07.22, 08:19
  • Opened by: Starstick
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23535 - Mondial Relay module

Hello,
We have a problem with the MONDIAL RELAY module for Prestashop in the AMP version,
it seems that the problem is the map widget to choose the shipping point.
Mondial relay we use it in shipments to France.
On desktop it works fine but on mobile with the AMP it doesn’t load the map and doesn’t let the payment finish. Here you are a vídeo example: https://www.awesomescreenshot.com/video/9585758?key=707027f1223fc47b0d4069b3c6234585

We have consulted with the programmer of Prestashop Addons of the module and this is what it tells us:

Hello,
    The problem comes from the AMP box.
    In the computer view, the map rendering and widget operation is as expected.
    However, once in the modules view, AMP takes care of managing the scripts to be executed, 
and this is where the problem starts.
    The debugs in the script do not output and the widget does not exist at all 
in this context ("VM1408:1 Uncaught ReferenceError: mondialrelayWidget is not defined").
    The behavior of the AMP checkout module completely blocks the import of the script in the checkout tunnel.
    It seems that you can use the native prestashop payment tunnel using an option in the AMP module, 
which will probably restore the MondialRelay module to work.
    Greetings.

Can you help us make it work, what do you think?
Kind regards,
Carina

Comments

Fred 08 Jul 2022, 19:19

Hi, Carina.
Any third party module is not compatible with AMP by default. We have “AMPified” all prestashop pages and our own modules for the theme but we are not able to “AMPify” every third party module.
There is and option we added to the AMP module that will force a customer to “desktop” version of checkout page where all modules works fine. Please try to enable it → https://take.ms/TOpsU