• Closed by: Marek
  • Closed on: 13.06.19, 16:09
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14298 - AMP checkout issue

In mobile checkout page: domain.ext/module/pk_amp/checkout
It is no possible to place an order.
Clicking “Continue” button browser console throws these errors:


action attribute is invalid for method=POST: [object HTMLFormElement] log.js:187:6


Only XHR based (via action-xhr attribute) submissions are support for POST requests.
<form id=”customer-form” class=”js-customer-form i-ampht…ror amp-form-submitting” action=”https://ps-17.efficasa.it/module/pk_amp/checkout” method=”post” novalidate=”“>
template-impl.js:271:8


Error: Only XHR based (via action-xhr attribute) submissions are support for POST requests. form#customer-form​​​ log.js:343:20


It is no possible to continue

Comments

Marek 19 Apr 2019, 12:08

Yes, I see. Working on that…

Marek 19 Apr 2019, 15:59

Something strange is going on here. Do you have access to server error logs?

tommaso marcuccio 19 Apr 2019, 16:51

I don’t know, I should ask to our sysadmin. Why you ask?

tommaso marcuccio 19 Apr 2019, 17:54

Any news?

Marek 19 Apr 2019, 18:44

because I need to read error messages to figure out the reason

Laura 21 Apr 2019, 19:57

Hi Marek,
I have the same issue, https://mrbolita.com/module/pk_amp/checkout page can’t continue creating orders.

Can you check it please??. The site is on production.

Marek 21 Apr 2019, 20:42

We are working hard on that. The issue has highest priority

Marek 21 Apr 2019, 20:45

to Laura.
Please test it out now

Marek 21 Apr 2019, 20:53

to Tomasso.
The main problem for me now what doesn’t let me fix checkout issue is that prestashop doesn’t return any error messages, that’s why I need to take a look at error logs

Laura 21 Apr 2019, 22:08

Hi Marek,
I think it’s OK, but at the checkout page cookie button does not work now.

Thank you very much.

Marek 21 Apr 2019, 22:14

Try now

Laura 22 Apr 2019, 22:18

It’s OK, thank you :))

tommaso marcuccio 23 Apr 2019, 10:44

Hi Marek,
I see the checkout process seems to work now but I have lost all my customizations.
I placed some css and some js in child_alysum/templates/mobile/layouts/layaout-main.tpl
I was using that file for assets ‘cause it was loaded for each page, where can I put my customizations now?

tommaso marcuccio 23 Apr 2019, 11:05

I restored CSS and js in the same file and it works as expected.
I’m having trouble with the product page template.
I cannot restore my customized template in /templates/mobile/catalog/product.tpl
It seems to be ignored

tommaso marcuccio 23 Apr 2019, 12:24

Please let me know asap about the product page mobile template

Marek 23 Apr 2019, 12:43

Do you mean your modified product.tpl file is not working in child theme?

tommaso marcuccio 23 Apr 2019, 13:37

yes, that

Marek 23 Apr 2019, 13:42

For now I advice you to modify that file in the “alysum” and keep a copy on your computer. I’m not sure that is the theme’s problem but I’ll try to figure out why it doesn’t work

tommaso marcuccio 23 Apr 2019, 15:58

Didn’t work out. Even replacing parent template /alysum/templates/mobile/catalog/product.tpl
It semms it shows something else

tommaso marcuccio 23 Apr 2019, 17:15

Please let me know asap

Marek 23 Apr 2019, 20:24

Maybe I missed something, but product.tpl file in your child theme works fine.
Please open it /prestashop/themes/child_alysum/templates/mobile/catalog/product.tpl and find there “===” in the very top http://take.ms/huWz2

tommaso marcuccio 24 Apr 2019, 11:13

Yes, it works now, before it wasn’t.
Just one last thing, svg icons are no longer visible both in product’s page (https://ps-17.efficasa.it/mobile/product/417 after “add to cart” butto) and in contacts page (https://ps-17.efficasa.it/module/pk_amp/cms?id_cms=21 are visible only 2 on 4).
I added some svg in child_alysum/templates/mobile/partials/svg.tpl, before they was loaded correctly, now they aren’t.
Am I missing something?
Thanks in advance

Marek 24 Apr 2019, 15:28

make sure icon names are the same in svg.tpl file and in the pages. Read more about SVG icons here https://alysum5.promokit.eu/promokit/documentation/#svg

tommaso marcuccio 24 Apr 2019, 15:54

I’m sure names are correct, icons was working before “mobile” folder were renamed

Marek 25 Apr 2019, 13:50

That was a cache issue