Jump to content

Recommended Posts

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

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

×
×
  • Create New...