0 votes
66 views
by (270 points)

Hi Team,

I am try to integrate google analytics in opencart 2.2.0. some strnge reason i get a error.

Notice: Undefined index: store_id in /home/domainname/public_html/test/admin/controller/analytics/google_analytics.php on line 13Warning: Cannot modify header information - headers already sent by (output started at /home/domainname/public_html/test/admin/controller/startup/error.php:34) in /home/domainname/public_html/test/system/library/response.php on line 12

How can i resolve the issue

1 Answer

+1 vote
by (9.4k points)

It seems store_id variable is not defined in google_analytics.php

$this->request->get['store_id'] is calling in the google_analytics.php

Replace

$this->model_setting_setting->editSetting('google_analytics', $this->request->post, $this->request->get['store_id']);
with
$this->model_setting_setting->editSetting('google_analytics', $this->request->post);
[source: OpenCart Forum]
by (270 points)
you are maestro man......i dont believe very active people for dedicatedly for customer service.
by (9.4k points)
Thanks Manoj. Glad you're happy with us. :-)
Welcome to DoubtSolver Q&A, where you can ask doubts and receive solutions from other members of the community.

Categories

...