- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 13.09.22, 16:22
- Opened by: Eric Notarianni
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #23751 - problem amp with forms
hello Fred
i have a problem with forms in amp
exemple on this url
https://boutique.idms.fr/cameras-ip-dome-dahua/370-ipc-hdbw3441r-zs.html you have question sur ce produit at the right side of pieces jointes
this call a form action and google don’like in amp
console message
Un attribut ou une valeur d’attribut non autorisés sont présents dans une balise HTML.
Les pages AMP présentant ce problème ne sont pas valides. Les pages non valides ne sont pas diffusées sur Google
L’attribut “action” ne peut pas apparaître dans la balise “form”.
<form action=”https://boutique.idms.fr/module/ets_contactform7/submit” method=”post” enctype=”multipart/form-data” autocomplete=”false” novalidate=”novalidate”>
how to call this form to be good in normal page and amp page please
Comments
Hi, Eric.
As I can see you are using third-party module to make a form. Any third party modules is not compatible with AMP by default. We have “AMPified” all prestashop pages and our own modules for the theme. And every new module must be “AMPified” as well.
ok Fred i understand but do you know a solution that i do the same thing with your modules? for a customer can ask a question on a product on the webpage of the product ?
The solution is easy, “Ampify” your module. To do that you have to develop back-end and front end parts.
As and example you can take a look how “blockreassurance” module is implemented in AMP product page.
1. Open the file /modules/pkamp/controllers/front/product.php and search “blockreassurance” there
2. Open the file /themes/alysum/templates/mobile/catalog/product.tpl and find there “block-reassurance”
SORRY Fred it is easy for you but difficult for me, i am not sure to do that, can you do it for me please, here is the 2 files
Attachments:
I have described that for you because that is not covering by our support. We would gladly help you to implement that but unfortunately, we don’t have free time
hello Fred if you know somebody to do this service, please contact me, i can pay for that, thanks
Currently I have no one to suggest you, but if I find someone I’ll let you know
Thanks Fred , when you have someone send me a message, please
Yes, I’ll ask my colleague and let you know
Unfortunately my colleague is busy in another project
when he can please let me know
Yes, of course