Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: [SOLVED] Add script in <head>  (Read 3392 times)

Offline ramses_2th

  • Newbie
  • *
  • Posts: 8
  • Karma: +6/-0
    • View Profile
[SOLVED] Add script in <head>
« 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
« Last Edit: May 25, 2020, 08:44:19 AM by ramses_2th »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Add script in <head>
« Reply #1 on: May 24, 2020, 09:21:40 PM »
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.

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline ramses_2th

  • Newbie
  • *
  • Posts: 8
  • Karma: +6/-0
    • View Profile
Re: Add script in <head>
« Reply #2 on: May 25, 2020, 08:43:54 AM »
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

Offline SAM172788

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-2
    • View Profile
Re: [SOLVED] Add script in <head>
« Reply #3 on: May 31, 2020, 06:37:40 AM »
Hi everyone
how can I insert a code in <head> of AbanteCart cart?
I would like to integrate the cookiebot service

Thanks

Hi!

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

Thanks.
Regards

 

Powered by SMFPacks Social Login Mod