Prestashop: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Tag Manager =
= Tag Manager =


Tag Manager can be installed in the theme's header template file.
Tag Manager can be installed in the theme's header &/or head template file.


<pre>
<pre>
\themes\<<theme>>\header.tpl
\themes\<<theme>>\header.tpl
\themes\<<theme>>\head.tpl
</pre>
</pre>


Line 11: Line 12:
== Conversion Tracking ==
== Conversion Tracking ==


This can be done but using the free Plugin that hooks onto the order page:
This can be done but using a plugin that hooks onto the order page:
<pre>
<pre>
https://bitbucket.org/ed_eichman/prestashop-gtm-data-layer-module/src/
http://git.loki.co.uk/attachments/9bea9480-d6c0-4de8-8f56-e61998531794
</pre>
 
For Prestashop 1.7+ the plugin has been modified to use the new hooks:
<pre>
http://git.loki.co.uk/attachments/b7d808fd-9b94-4656-a807-096984300c2b
</pre>
</pre>


Line 22: Line 28:
</pre>
</pre>


Then the module will need to be installed.
Then the module will need to be installed (this can be done by searching in the "manage modules" tab).
If the module does not show up, you may not have permissions even if you are set up as admin & can see the modules.
If the module does not show up, you may not have permissions even if you are set up as admin & can see the modules.


=== Check Module Install Permissions ===
=== Check Module Install Permissions ===


To check if the account has install permissions use adminer and access the database.
To check if the account has the install permissions, use adminer and access the database.<br />
This will require some method to access the files e.g. FTP


go to the employee and get the "id_profile" field from the relevant employee row.
Go to the employee table in the database and get the "id_profile" field from the relevant employee row.<br />
Then go to the tab table and get the "id_tab" field from the row that has a module called "AdminModules".
Go to the tab table and get the "id_tab" field from the row that has a module called "AdminModules".<br />
Then go to the access tab and match up the "id_profile" & "id_tab" with what was retreived before to see the file permissions.
Then go to the access tab and match up the "id_profile" & "id_tab" with what was retrieved before to see the file permissions.<br />
Change add to "1" to enable installation.
Change or add to "1" to enable installation.


= Clear Cache =
= Clear Cache =
To Clear Cache via:


== Admin Panel ==
== Admin Panel ==

Latest revision as of 09:07, 10 September 2024

Tag Manager

Tag Manager can be installed in the theme's header &/or head template file.

\themes\<<theme>>\header.tpl
\themes\<<theme>>\head.tpl

This needs to be wrapped around with {literal}{/literal} tags

Conversion Tracking

This can be done but using a plugin that hooks onto the order page:

http://git.loki.co.uk/attachments/9bea9480-d6c0-4de8-8f56-e61998531794

For Prestashop 1.7+ the plugin has been modified to use the new hooks:

http://git.loki.co.uk/attachments/b7d808fd-9b94-4656-a807-096984300c2b

Download the files and make sure it is in the modules folder. the folder structure should be:

\modules\datalayer\

Then the module will need to be installed (this can be done by searching in the "manage modules" tab). If the module does not show up, you may not have permissions even if you are set up as admin & can see the modules.

Check Module Install Permissions

To check if the account has the install permissions, use adminer and access the database.
This will require some method to access the files e.g. FTP

Go to the employee table in the database and get the "id_profile" field from the relevant employee row.
Go to the tab table and get the "id_tab" field from the row that has a module called "AdminModules".
Then go to the access tab and match up the "id_profile" & "id_tab" with what was retrieved before to see the file permissions.
Change or add to "1" to enable installation.

Clear Cache

Admin Panel

To Clear cache via admin go to:

Advanced Parameters > performance

Then Click the "clear cache" button

FTP

To clear the cache via FTP go to:

\cache\smarty\

then inside both "cache" & "compile" folders, delete all folders except the index.php and the flush file.

refresh page and cache should rebuild