There is the facility to allow you to send a key code to a customer without them paying for it and for them to enter their email address for registration purposes.
The free button functions are located in the folder /free/
The file free_button.html gives an example of the button that is placed on a web page. The action entry of the form has to be changed to point to the full url of the free page default.php
So the action url would look something like:
depending on the installation folder of PHP-KeyCodes.
Example code for a free button : (Note that this is not the same code as the buttons that are displayed against the products in the admin area of PHP-Keycodes).
<form name="free" method="post" action="http://www.yourserver.com/phpkeycodes/free/default.php"> Your email address : <input type="text" name="txtEmail" /><br/> <input type="hidden" name="send" value="send" /> <input type="submit" name="Submit" value="Make Sell" class="inputsubmit" /> </form>
The file /free/default.php is the file that does the processing and in the top of the file there is the record id of the product item that you are giving away. This is the record id in the database table, tblitems. So you need to open the file /free/default.php in a text editor and then change the record id.
At the bottom of the file, there is an html results page that can be modified to say whatever is required.
Place the button on your web page. The customer enters their email address and the license code is sent to that email address.
Note: You must also set the value of the product to 0.00 in the admin area of PHP-KeyCodes otherwise it will not work.