This is a free cubecart pluginh for CubeCart version 5
This plugin enhances the existing CubeCart Contact Us form, allowing it to process as many input fields as you wish
To install this plugin, follow the instructions below
extract the zip file into the modules/plugins/ directory. The path should look like /modules/plugins/AdvancedContactForm after.
This plugin takes advantage of hooks, however the hooks required to make this plugin work correctly do not existin in the standard CubeCart product so we need to add them. Open the file /modules/plugins/hooks.xml in your favourite text editor (I suggest Notepad++).
Add a new line near the bottom of the file as follows then save and close the file.
In the step above we defined the custom hook, now we need to add that hook into a file where the plugin can use it. Open the file /classes/cubecart.class.php in your favourite text editor. Around line 1222 find the following code:
and replace it with this code:
Save and close the file.
Log into your stores admin area and navigate to "Modules --> Plugins", enable "AdvancedContactForm" and save your settings.
Configure your contact form as you would normally in "File Manager --> Contact Form".
The final thing to do is to design your own form for use with your stores skin. Naviage to the /skins//templates/ directory and open the file content.contact.php in your favourite text editor. The code you currently see is the HTML code for your form. Add as many new fields as you require to your form. Make sure you follow the rules below
1) All of your form elements should have a name in the format name="contact[XXX]", replace XXX with the name of your specific field.
2) The form name you use in 1 above should be unique within your form
3) Do not use spaces or special characters in your names