Giter VIP home page Giter VIP logo

prestashopamp's Introduction

Prestashop 1.6 and 1.7 AMP module

This module add AMP to your product and category pages for your Prestashop

You can custom the template by yourself.

Download this repo and upload it to your Prestashop as amp.zip

The Move JavaScript to the end of the HTML document option should be disable from your back office.

Images and Iframe from your product or category description field will be removed on AMP version to avoid validation issues.

Check the result with a product page or a category page on https://validator.ampproject.org/

This module WILL NOT show AMP content to your mobile visitor and it's normal! A user is automatically redirected in your AMP pages from Search engine like Google or Facebook.

prestashopamp's People

Contributors

l3o-pold avatar titouanmathis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prestashopamp's Issues

incompatibility with facebook pixels

If facebook pixels and prestashopamp are enabled at the same time.
I have this exception in debug mode:

UndefinedMethodException

Attempted to call an undefined method named "getTemplateVarProduct" of class "AmpProductModuleFrontController".

After disable "facebook pixel" module all works fine

incompatibility with facebook pixels 1.7.5.1

The problem #6 still exists in Prestashop 1.7.5.1
If i disable fb pixel, amp module is working ok.
I also check the exceptions in header hook and they are there correctly.

The error i got

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method AmpProductModuleFrontController::getTemplateVarProduct() in /var/www/vhosts/XXX/httpdocs/modules/pspixel/pspixel.php:233\nStack trace:\n#0 /var/www/vhosts/XXX/httpdocs/classes/Hook.php(966): Pspixel->hookHeader(Array)\n#1 /var/www/vhosts/XXX/httpdocs/classes/Hook.php(355): HookCore::coreCallHook(Object(Pspixel), 'hookHeader', Array)\n#2 /var/www/vhosts/XXX/httpdocs/classes/Hook.php(903): HookCore::callHookOn(Object(Pspixel), 'displayHeader', Array)\n#3 /var/www/vhosts/XXX/httpdocs/classes/controller/FrontController.php(555): HookCore::exec('displayHeader')\n#4 /var/www/vhosts/XXX/httpdocs/classes/controller/ModuleFrontController.php(77): FrontControllerCore->initContent()\n#5 /var/www/vhosts/XXX/httpdocs/modules/amp/controllers/front/product.php(190): ModuleFrontControllerCore->initContent()\n#6 /var/www/vhosts/XXX/httpdocs/classes/controller/Controller.php(281): AmpProdu...\n

no settings possible after installation with PS 1.7.4.4

Hi, I just installed your latest version v2.0.14 in PS 1.7.4.4 and there is no Button for settings. Only for "deinstall" "disable mobil" and "reset".

image

What should I do to make it work?

Thank you very much in advance for your answer.

403 error

I tried using this module on my shop and got a 403 error

Hi Léopold Jacquot

Hi this work on 1.7.4.3?
Oops... Upload modules "prestashopamp-master" failed.

various error: xml:lang

Many thanks for your plugin.
I ve some errors with the amp validator and google AMP validator, on three product category pages in the English language.
The basic language of my shop is French

i'm on prestashop 1.7.6.1

The attribute 'xml:lang' may not appear in tag 'span'
line 157, column 7
The attribute 'xml:lang' may not appear in tag 'span'
line 158, column 7
The attribute 'xml:lang' may not appear in tag 'span'
line 157, column 7

I did not find or fix that manually.

thanks in advance

Meta tag description

Hello. I've noticed that in APM pages and categories has no meta tags like description (but in presta I filled that).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.