• Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22849 - AMP Issue in 7.3 - Checkout dosen't work

After updating to latest version checkout dosent work, see video.

Attachments:

270353811_218519187031853_810... (477.7 KiB)

Comments

Fred 03 Jan 2022, 10:48

I see the issue. Working on a fix

Fred 03 Jan 2022, 11:35

Looks like AMP scripts conflicts with theme scripts which are working together in checkout page only. The fastest way to fix is to enable “Force loading desktop version for checkout” option in the AMP settings.
In a proper way checkout page should work without theme scrips using only AMP scripts. Unfortunately that’s impossible to achieve because payments modules, which are essentials, requires its own scripts to work properly.
There is no fast solution here. Need some time for investigation.

Thomas Blauenfeldt 03 Jan 2022, 12:04

wow seems like a serious bug then ?

Thomas Blauenfeldt 03 Jan 2022, 14:34

can we do anything from our side to fix it ?

Fred 03 Jan 2022, 14:35

I’m not sure

Thomas Blauenfeldt 03 Jan 2022, 14:53

so for now, no one can ordre from mobile / tablet with your theme ?

Thomas Blauenfeldt 03 Jan 2022, 19:45

can i downgrade alysum to the version where it works ?

Thomas Blauenfeldt 04 Jan 2022, 10:22

?

Fred 04 Jan 2022, 10:45

we are working on that…

Fred 04 Jan 2022, 10:46

can i downgrade alysum to the version where it works? - I don’t know, you can try

Thomas Blauenfeldt 04 Jan 2022, 13:54

okay so no quick fix for now ?

Fred 04 Jan 2022, 16:52

yes, no quick fix for now

Fred 05 Jan 2022, 14:26

I just added a fix into the file /public_html/themes/alysum/templates/_partials/javascript.tpl but it’s not applied. Maybe the location is wrong or some cache is enabled.
Please try to add a fix yourself.
find a bit of code

{foreach $javascript.external as $js}
    <script src="{$js.uri}" {$js.attribute}></script>
{/foreach}

and replace it with

{foreach $javascript.external as $js}
    {if ((isset($amp) && $js.id !== 'theme-main') || !isset($amp) )}
    <script src="{$js.uri}" {$js.attribute}></script>
    {/if}
{/foreach}