eCommerce construction > General Discussion

[SOLVED] Add script in <head>

(1/1)

ramses_2th:
Hi everyone
how can I insert a code in <head> of AbanteCart cart?
I would like to integrate the cookiebot service

Thanks

abantecart:
Hello ramses_2th,

I understood that you need to add something to the head tag of AbanteCart.

You can do this with 2 methods:

1. You can edit this file (simple method, but with future upgrade conflicts):
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/common/head.tpl

2. Create extension and hook to head controller and add needed data. You need to check AbanteCart developers docs.
This is more advanced method and requires PHP knowledge.

ramses_2th:
Thanks for the reply.
For the moment I choose the easiest way, being careful of future updates.

More than an external extension, it would be useful to integrate it as the google analytics code code has been integrated into the AbanteCart settings

SAM172788:

--- Quote from: ramses_2th on May 23, 2020, 09:35:15 AM ---Hi everyone
how can I insert a code in <head> of AbanteCart cart?
I would like to integrate the cookiebot service

Thanks

--- End quote ---

Hi!

Good point, can you share your idea and step by step what you've  done please?

Thanks.
Regards

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod