Post by sayanth » Tue Jun 18, 2019 6:08 pm

Hi ,
I'm new to opencart , when i create a custom module i need to put a script code to all the pages in opencart frontend. how can i do this?
Could you please help me to solve this?

Thank you!

Newbie

Posts

Joined
Tue Jun 18, 2019 6:03 pm

Post by OSWorX » Tue Jun 18, 2019 7:50 pm

I am sure when you search the Marketplace https://www.opencart.com/index.php?rout ... /extension
you will find a lot of modules you can take as template.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by sayanth » Wed Jun 19, 2019 12:46 pm

Thanks for your effort.
While the creation of a custom module is it possible to put script code inside the static header or footer in the frontend of opencart with out affecting its structure(without directly change the header or footer template). Is any possible way to do this?

Thank you!

Newbie

Posts

Joined
Tue Jun 18, 2019 6:03 pm

Post by OSWorX » Wed Jun 19, 2019 3:54 pm

sayanth wrote:
Wed Jun 19, 2019 12:46 pm
Thanks for your effort.
While the creation of a custom module is it possible to put script code inside the static header or footer in the frontend of opencart with out affecting its structure(without directly change the header or footer template). Is any possible way to do this?

Thank you!
Yes, you can add any custom code to the header or footer.
Simply create a new module, admin and catalog part.
Define in the admin part your custom code (to be flexible in future) and add this code automatically either to the header or footer template.

Creation time for all: approx. 30 minutes.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 12 guests