Jump to content

[Free Module] AMP Accelerated Mobile Pages - 2.0.20 PS 1.6 / 1.7


Recommended Posts

  • 1 month later...

Salut Léopold et merci beaucoup pour ce module.
J'ai un petit problème sur ma 1.6.1.23, mes descriptions de produits ont été faites avec tinymce, du coup j'ai des photos qui ne s'affichent pas en amp dans ma description de produit, m'affichant [img-xxx-large-default] à la place.

De même, j'ai des vidéos dans certaines fiches, dans des iframes qui se chargent en lazyloading par un intersection-observer (pas les images précédentes),  et elles ne s'affichent pas en amp non plus.

Si jamais t'as une idée, je suis preneur.

Merci :)

Share this post


Link to post
Share on other sites
  • 3 months later...
  • 3 weeks later...

Hello and thank you for developing this module,

We want to use your module in the future, but we're not ready for it yet, but Google has indexed it very quickly, how do I completely remove  your module, caches and rewrites it has made?

Thanks in advance!

Share this post


Link to post
Share on other sites

@staut82 it works but you are redirect on the same page, I don't know why. It works well on my Prestashop demo website on 1.7.x. Could you install the previous release to test if it works as expected ? https://github.com/L3o-pold/prestashopamp/releases/download/2.0.17/amp.zip

Edited by Léopold Jacquot (see edit history)

Share this post


Link to post
Share on other sites
  • 2 months later...

Very nice module.

Now I have in my description some youtube videos, that Google told me I need to put also in AMP :)

I try this to edit product_17.tpl :

    {literal}

<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script> 

 <script>               String str = $product->description.substring($product->description.lastIndexOf("/") + 1, $product->description.indexOf("?"));)</script>

    {/literal}

and to show this code:

{if $str}
 <amp-youtube
  data-videoid="{$str}"
  layout="responsive"
  width="480"
  height="270"
></amp-youtube>    {/if}

The idea is to take the video code from description but I"m doing somethig wrong. Can someone help me please?

 

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...
On 2/27/2018 at 7:38 PM, Léopold Jacquot said:

This module add the AMP technologie to your shop. Product and category pages will be handle.

The module theme can be customized to represent your brand.

The source code is available here: https://github.com/L3o-pold/prestashopamp

Download here: https://github.com/L3o-pold/prestashopamp/releases

The story behind this module: https://blog.leopoldjacquot.com/2017/11/26/prestashop-amp-module/

Road map:

  • CMS pages
  • Homepage
  • Url rewriting
  • Pagination for Prestashop 1.7.x
  • Product attributes
  • Thirty bees support

 

Product page

 

Category page

 

 

 

 

 

 

 

 

 

 

 

 

Hi,
first thank you for this module,
I installed the module well, and after a while I noticed that in the consumption serach / amp there is a lot of error and especially this one: "An unauthorized attribute or attribute value is present in an HTML tag." my version of prestashop 1.6.1.8 can someone please help me to fix these errors? an example of link: https://dari-shop.tn/module/amp/product?idProduct=4707 thank you in advance

Share this post


Link to post
Share on other sites
On 2/1/2020 at 3:00 PM, samiinfo said:

Hi,
first thank you for this module,
I installed the module well, and after a while I noticed that in the consumption serach / amp there is a lot of error and especially this one: "An unauthorized attribute or attribute value is present in an HTML tag." my version of prestashop 1.6.1.8 can someone please help me to fix these errors? an example of link: https://dari-shop.tn/module/amp/product?idProduct=4707 thank you in advance

Hi, your link seems valid: https://validator.ampproject.org/#url=https%3A%2F%2Fdari-shop.tn%2Fmodule%2Famp%2Fproduct%3FidProduct%3D4707

Share this post


Link to post
Share on other sites
17 hours ago, Léopold Jacquot said:

Hi,First  thanks for your replay
yes yes valid
first of all thank you for your answer I successfully installed the latest version of the module, just after my post on this forum again thank you for your module.

Share this post


Link to post
Share on other sites

Hi, congratulations on your module, but I don't get it to work, install it in Prestashop 1.7.2. and reinstalled several times today but the Validation Status IS FAIL and I got error 500 when trying to access the page.
Seeing the source code of the page I have seen that both in the categories and in the products that the link <link rel = "amphtml" appears this <link rel="amphtml" href ="//www.domain.com/module/amp/product?idProduct=5754 "/> instead of <link rel="amphtml" href="https://www.domain.com/module/amp/product?idProduct=5754" />
Do you know what is the problem?

Thanks?

Share this post


Link to post
Share on other sites

@hosteleriex You have a 404 error page on www.domain.com/module/amp/product?idProduct=5754 

Maybe your product page is not available without authentication or maybe you have a custom rule in your .htaccess file.

I think you have a module that prevent AMP module to works correctly.

Share this post


Link to post
Share on other sites
hace 1 hora, Léopold Jacquot dijo:

@hosteleriex You have a 404 error page on www.domain.com/module/amp/product?idProduct=5754 

Maybe your product page is not available without authentication or maybe you have a custom rule in your .htaccess file.

I think you have a module that prevent AMP module to works correctly.

sorry I put the url that was not, the correct url is this:

https://www.hosteleriex.es/module/amp/product?idProduct=5754

I have not modified the .htaccess file.

Share this post


Link to post
Share on other sites
hace 35 minutos, Léopold Jacquot dijo:

@hosteleriex yeah you have a 500 error page. Which version of the module are you using? Could you send me the log of the error?

the module version is v2.0.20

error log:

Invalid product vars
at line 149 in file classes/Link.php

144.             if (is_array($product) && isset($product['id_product'])) {
145.                 $params['id'] = $product['id_product'];
146.             } elseif ((int) $product) {
147.                 $params['id'] = $product;
148.             } else {
149.                 throw new PrestaShopException('Invalid product vars');
150.             }
151.         } else {
152.             $params['id'] = $product->id;
153.         }

in the product page code without amp this is the only weird thing I see, what I told you before:

<link rel="amphtml" href="//www.hosteleriex.es/module/amp/product?idProduct=5754"/>

 

Edited by hosteleriex (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...

@Léopold Jacquot
I return to you , I see this error in google serach console, and actully i have too many error about (208)

error message: Un attribut ou une valeur d'attribut non autorisés sont présents dans une balise HTML.

for exemple at : these links:

https://dari-shop.tn/module/amp/product?idProduct=37141

https://dari-shop.tn/module/amp/product?idProduct=4707

any idea please
thx

Share this post


Link to post
Share on other sites
En 3/2/2020 a las 9:53 PM, Léopold Jacquot dijo:

@hosteleriex, it's very strange. I can't reproduce your issue.

I have already found what the problem is, it is because of this module that I have installed https://addons.prestashop.com/es/url-redirecciones/21749-urls-canonicas-para-evitar-contenido-duplicado-seo.html

I use this module to avoid duplicate content and indicate to google which page it should index and which not because they are very similar or almost the same.

If I deactivate this module, your module works perfectly.
I don't know that it is better to have AMP mobile pages or have Google identify them as duplicate content.

Share this post


Link to post
Share on other sites
  • 3 weeks later...

@Léopold Jacquot Thank you very much for your module. Is there a way a product quantity could be added? When I tried adding {$product->quantity} to the product.tpl it always returns 0 (zero).

Share this post


Link to post
Share on other sites
  • 5 months later...

Hello, first of all, thanks for your work 😊

mainly, there are 2 issues with this module:

1) the add to cart button is an open invitation for bots, you could have thousands of daily writes/abandoned carts on database if you don't take measures

2) it continuosly writes on the cache folder for any products

amp_header/product/

this means high load on server because you write on disk or database.

So, it creates a cache file for the header (?) of any product while the main theme has only one header (the right way, eg. themes/mytheme/header.tpl).

Or you make a fix to this or I need to check your code (but at the moment I have no time to do it).

Thanks, best regards

Edited by mmsh (see edit history)

Share this post


Link to post
Share on other sites
  • 2 months later...
On 8/12/2020 at 8:42 AM, Léopold Jacquot said:

Hello,

code is on github, issue are on GitHub, that’s an opensource project. Btw responsible disclosure is a thing ;)

feel free to fix issues and create a MR ;)

Hi, encountered such a 500 server error with your module, how to fix it? https://www.chemodanoff.com.ua/ru/module-amp?idProduct=2700

Thanks for the great module

Screenshot_1.jpg

Share this post


Link to post
Share on other sites

Ciao,

ho letto la tua storia e visitato il tuo sito ed ho deciso di scaricare ed utilizzare e sperimentare il tuo modulo. 

Ieri ho caricato ed attivato il modulo sul sito https://www.pianetasvapo.com/ ma ora mi è arrivato un messaggio dalla search console di google:

Nel tag HTML è presente un attributo o un valore di un attributo non valido con due pagine interessate.

Sapresti aiutarmi? 

Ciao Francesco 

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Sorry can you help me? 

When I go on my site with phone or tablet I find two problems with this module:

1) the url is modified by amp module (is this a problem for Seo? Because it isn't a pretty url)  

2) the product can't added to cart (more serious!) 

This is the link for example: 

https://www.pianetasvapo.com/module/amp/product?idProduct=5224 (the original link was https://www.pianetasvapo.com/pgvg-labs/5224-havana-20ml-scomposto-pgvg-labs.html) 

Share this post


Link to post
Share on other sites
  • 3 months later...

with version 1.7.7.2 is working, problem is at products, the price is 1 for all products.

In category the price is corect for all products.

Any ideea to solve itt?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More