Google AMP for Opencart 3 products
The Google AMP module is an add-on for creating simplified product pages in the Google search engine. This module works on Opencart 3.0.
The AMP project is a site page caching service for the subsequent fast delivery of site content from Google search results on mobile devices.
Pages that have an AMP version will be displayed with a special ⚡ icon in Google search results on mobile devices.
Our module allows you to create such pages for the products of your store on Opencart 3.
Module features:
- category side popup menusetting
- the color scheme of the template
- custom image sizes
- adding an item to the cart from an AMP page
- display tabs for reviews, attributes, and featured products
Google AMP . Module installation:
- Upload the archive in the admin panel in the Install modules section
- Update modifications in the admin panel
- Enable and configure the ""Google AMP for Products"" module
- Check the source code of the page of any product in the browser (press F12 on the keyboard) for the presence of a link to the AMP page in the block, it looks like this: There is another way to check if the amp version of the product page has been added - copy the link to any product from your site, check this link in the service https://search.google.com/test/amp - the check will show that this is ""NOT AMP"" , but this page has an AMP version and will offer to check it out. If everything is fine, you will receive the message ""The page meets the AMP criteria"".
- Wait until Google indexes your site, finds AMP pages there, and adds them to the search results
Change log:
- 02/05/2019 - added check for images
- 03/26/2019 - the problem with displaying the main image of the product is solved
- 09/29/2019 - implemented compatibility with ocStore 3; Fixed issues in AMP markup.
- 10/08/2019 - the problem with SEO PRO in ocStore 3 was solved
- Opencart 3.0.0.0
- Opencart 3.0.1.1
- Opencart 3.0.1.2
- Opencart 3.0.2.0 или ocStore 3.0.2.0
- Opencart 3.1.0.0
- Opencart 3.0.3.1
- Opencart 3.0.3.2
- Opencart 3.0.3.3
- Opencart 3.0.3.6
- Opencart 3.0.3.7 и OcStore 3.0.3.7
Solution:
Download and install the Localcopy OCMOD add-on
After installing this add-on, you need to go to the Modifiers section and click the "Update modifiers" button. After that, you can install other modules
There are some problems and possible solutions:
1. The template cache has not been reset - you need to update the cache [screenshot]
2. When you previously edited template files through the admin panel in the "Theme Editor" section, they were saved in the database and it is no longer affected by ocmod modifiers, this is an Opencart 3 issue. You need to install an extension [download] and update the modifications in the admin panel.
3. Your template is based on TPL files (*.tpl), while in Opencart 3 templates should be in TWIG format (*.twig). The problem is that ocmod modifiers do not affect TPL files - all changes must be made to these files manually.
You need to enable the output of all php errors on the screen - for this, in the .htaccess file at the end you need to add the lines:
php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting E_ALL
Now, instead of error 500, an error code should be displayed, which will indicate the issue.
There is a bug in official Opencart 3.0.3.5 - 3.0.3.6 patches - modifiers do not work with twig files due to an error in the standard modifier /system/modification.xml - the second operation from this modifier does not work.
The problem occured in official github and proposed solution is https://github.com/opencart/opencart/blob/3.0.x.x_Maintenance/upload/system/modification.xml
We made a fix modifier according to these recommendations, it will replace the /system/modification.xml file with the correct one.
Solution:
1. Back up your /system/modification.xml file
2. Download the fix modifier from the link and install it in your admin panel
3. Update mod cache
4. Update twig template cache
- Categories:
- Tags: Google , AMP , Google search , product pages , caching service , module , module opencart , opencart3
- Author: Opencart
-
Price: $29,00
- Compatibility Guaranteed
- Only OCMOD
- Not linked to a domain
- Open source
- Virus-free
- Support
Information:
- Common mistakes in Opencart 3
- Opencart 3.0 custom VAT collection module from the order amount
- Updating the NBU exchange rate for Opencart 3 is a useful module for resource operations.
- Different Prices for Customer Groups - a tool for managing prices in stores.
- How does the Opencart 3.0 Module Order in 1 Click work?
- Opencart 3.0 Related Products Module: How to Use
- Opencart 3 store reviews
- Multidelivery of goods in opencart. Advantages for online stores