AlegroCart open source E-commerce
Web hosting by Host1Plus

Making an extension?

Support for coding, modules or other software issues

Making an extension?

Postby Bluesplayer » Sun Jan 27, 2013 5:47 am

Hi

How would I go about making an extension similar to information. Reason being that information has it's own information.tpl.

On my site I have added code to information.tpl that displays stuff from other parts of my site. What I would really like is to make a custom coded tpl file so that I can place it wherever I want and put the information.tpl back as it was. This would allow me to place the information box in a different place.

Regards
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Making an extension?

Postby Brent » Sun Jan 27, 2013 6:51 am

Probably the best way is to use one of the other extensions as an example.
First you need to Crete the admin side.
Take the information as an example. You need to create the admin controller, model, language, and tpl files for your new extension.
Same thing in the catalog side, controller, model, language and tpl. You may also need to create custom CSS file to accommodate your new extension.
If you look at the install/ upgrade.sql, you will see examples of the code needed to be written to the database to register your new extension.
User avatar
Brent
Site Admin
 
Posts: 4241
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh


Return to Coding Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron