Skip to content
OpenCart · User manual

Google Consent V2

Version 1.0.1 Product page
Chapter 2

Installation

How to choose the right package and install Google Consent V2 on OpenCart 1.5.x, 2.x and 3.x, then update or uninstall it.

Before you start

  1. Check your OpenCart version in the footer of your administration.
  2. Download the extension from the download centre. The download is a ZIP file named after the version, for example Google Consent V2 V.1.0.1.zip.
  3. Extract it on your computer. It contains one folder per OpenCart family:
FolderFiles insideOpenCart versions
Opencart 3.X3.X-google_consent_v2.ocmod.zip3.x
Opencart 2.3.X2.3.X-google_consent_v2.ocmod.zip2.3.x
Opencart 1.5.X to 2.2.0.01.5.X-to-2.2.0.0-google_consent_v2.ocmod.zip and devmanextensions_google_consent_v2_oc15x.xml1.5.x to 2.2.x

Make a backup of your files and database before you install or update any extension.

OpenCart 3.x

  1. Go to Extensions > Installer and upload 3.X-google_consent_v2.ocmod.zip.
  2. Go to Extensions > Modifications and press the refresh button at the top right.
  3. Go to Dashboard, press the blue gear button at the top right and refresh the theme cache.
  4. Go to Extensions > Extensions, choose Modules in the type filter, find Google Consent V2 and press the green install button.
  5. Press the edit button to validate your licence. See Licence activation.

OpenCart 2.3.x

  1. Go to Extensions > Extension Installer and upload 2.3.X-google_consent_v2.ocmod.zip.
  2. Go to Extensions > Modifications and press the refresh button.
  3. Go to Extensions > Extensions, choose Modules, find Google Consent V2 and press the install button.
  4. Press the edit button to validate your licence.

OpenCart 2.0.x to 2.2.x

  1. Go to Extensions > Extension Installer and upload 1.5.X-to-2.2.0.0-google_consent_v2.ocmod.zip.
  2. Go to Extensions > Modifications and press the refresh button.
  3. With an FTP program, upload devmanextensions_google_consent_v2_oc15x.xml to the folder vqmod/xml/ of your store. vQmod must be installed.
  4. Go to Extensions > Modules, find Google Consent V2 and press the install button.
  5. Press the edit button to validate your licence.

OpenCart 1.5.x

  1. Extract 1.5.X-to-2.2.0.0-google_consent_v2.ocmod.zip on your computer.
  2. With an FTP program, upload the contents of its upload folder to the root folder of your store (the folder that contains index.php), keeping the folder structure.
  3. Upload devmanextensions_google_consent_v2_oc15x.xml to the folder vqmod/xml/ of your store. vQmod must be installed.
  4. Go to Extensions > Modules, find Google Consent V2 and click Install.
  5. Click Edit to validate your licence.

Where the popup is added

The extension adds its code right after the opening head tag of the header template of your theme (common/header). It works with any theme that uses this standard header file. If your theme replaces the header with a file of its own, the popup does not appear; see Troubleshooting.

Updating to a new version

Install the new package the same way, over the existing files. Refresh Extensions > Modifications afterwards, and on OpenCart 3.x also refresh the theme cache from the Dashboard. Your settings are kept.

Visitors keep the choice they already made: the consent is stored in their browser.

Uninstalling

  1. Go to the list of modules and press the uninstall button of Google Consent V2.
  2. Delete the modification Google Consent V2 in Extensions > Modifications and press refresh. On OpenCart 1.5.x to 2.2.x, also delete vqmod/xml/devmanextensions_google_consent_v2_oc15x.xml.
  3. In Google Tag Manager, remove the workspace elements you imported and give your tags their previous triggers back. Otherwise your tags wait for a consent that never comes. See Google Tag Manager setup.

On OpenCart 1.5.x to 2.3.x, uninstalling the module deletes all its settings, including your licence ID and the texts of the popup: OpenCart removes the settings of every module it uninstalls. To use the extension again, you validate the licence and configure it from the start. On OpenCart 3.x, the settings and the licence ID stay in the database and are used again if you install the module again. To update, install the new package without uninstalling first.

To hide the popup for a while without uninstalling, set Status to off.

Still need help?

Open a support ticket from your account and our team will look at your store with you.