justkaka Posted September 26, 2012 Share Posted September 26, 2012 I need a simple Ask About a Product (found others but user need to login / register) I've been looking at the files in Send to a Friend - I think it should be possible to modify this but I've nerver done any real worth with a module. I'm I right thinking if I change the references / names from send to a friend I could zip up the renamed folder and install it as a module?? Before I start playing ... anyone done things link this - ie. change an existing module and rename it? does it work ? Link to comment Share on other sites More sharing options...
damonsk Posted September 26, 2012 Share Posted September 26, 2012 You could do that and it should work. You would have to rename all instances of sendtoafriend to askaboutproduct. This includes class names and filenames and also the config.xml file. Just a summary - sendtoafriend -- config.xml -- sendtoafriend.php -- sendtoafriend.tpl would become - askaboutproduct -- config.xml -- askaboutproduct.php -- askaboutproduct.tpl Your class (sendtoafriend.php) class sendToAFriend extends Module { .... removed for example ... } would become class askAboutProduct extends Module { .... code removed here ... } This is just scratching the surface, there are many more instances you would have to find and update. You would have to amend the ajax file and update the mail::send call. Link to comment Share on other sites More sharing options...
justkaka Posted September 26, 2012 Author Share Posted September 26, 2012 Thanks - that's what I thought... just wanted to know if it was possible to tweak a module like this. Link to comment Share on other sites More sharing options...
Recommended Posts