Jump to content

Adding a module


Recommended Posts

Hi,
I'd like to add a simple module that wouldgive me live chat on my web site.

To do this, I did the following:
1. I copied the blockinfo folder and renamed it livechat
2. Renamed the php and tpl files to livechat.php and livechat.tpl
2. put my code into the livechat.tpl file
3. renamed everything in the livechat.php from "blockinfo" to "livechat"

Now, when I try go into the modules on my back office, it doesn't load anything at all. All my modules dissapear from the back office.

I must be doing something wrong-can someone please advise?

Thank you for the help!

Link to comment
Share on other sites

I would require FTP access.
possibly mysql depending on how your script works & of course Prestashop backoffice login details
But sorry I have been flat out all day it's getting late now to much more on all this so if you drop me a PM I will look into this Monday ;-)

Link to comment
Share on other sites

Thanks so much! But just this second I worked out how to do it :)
I forgot to change the line to:
"class Livechat extends Module"

it used to be:
"class blockinformation (or something like that) extends Module"

and therefore there was a conflict with the blockinfo module.

All working ok now.
Thanks for the offer

Link to comment
Share on other sites

  • 2 weeks later...

Dear Ariopp,
Have you made the live chat wrok?
if so, can you teach me how to achieve? I have tried a lot, but all fails.
Better with details because i am not a good PHP user.

Thanks in advance.

Rachal

Link to comment
Share on other sites

I did it! (with instructions provided by ariopp)
Here's how.
Copied folder blockinfos
renamed livechat
deleted unnecessary language files (optional)
changed every reference to "blockinfo" to "livechat"
put code into livechat.tpl file (I'm using google chat)
et voila! live chat on my site

thanks, ariopp

Link to comment
Share on other sites

Just a thought but if you guys want to share this chat solution with the rest of the community.
Please start a topic in the Modules category of this forum & then upload you livechat zip.
with any instructions for users to install this contribution ;-)

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...