Contributions
Dropdown Question Box for Create_account screen
This contribution adds an additional dropdown field in the create_account.php screen.
The coding in this particular one asks the customer where they heard about the store and has a dropdwon list including answers Search Engine, Magazine, Television etc.
ALTHOUGH - This can be edited to ask whatever question you wish and give whatever answers you want in the dropdown list.
You can also choose if the field is a compulsary or non compulsary for the customer to complete.
N.B. Ensure you backup first.
Expand All / Collapse All
I added just the abilities to add and to delete the values through admin.
Contrary to comment directly below the file IS included.
Please direct questions to forum not post them here....
All files here plus the additions of a report showing how many times each answer has been given (with the most popular at the top.
Updated install instructions - full download here - ignore files below.
Support: http://forums.oscommerce.com/index.php?showtopic=79827
Install instructions amendment.
if (is_numeric($source) == false) {
$error = true;
$messageStack->add('create_account', 'ENTRY_SOURCE_ERROR');
}
Changed to:
if (is_numeric($source) == false) {
$error = true;
$messageStack->add('create_account', ENTRY_SOURCE_ERROR);
}
Thank you Maureen.
Error in SQL corrected.
Field added to customers table:
should be named:
entry_source_id
in error named:
entry_srce_id
Slight amendment to install instructions.
Improvement to default dropdown list choice coding - thanx to Randy Pertiet.
Latest version - no code changed just changed instructions relating to installation.
Bugs ironed.
Thanx to Rodney Lanthier at www.lildevilmotorsports.com.
Bug correction - if you have already loaded:
add:
<td class="dataTableHeadingContent" align="center"><?php echo 'Customer Source'; ?></td>
after:
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACCOUNT_CREATED; ?></td>
in admin/customer.php
Added the option to sort the customer admin list by date account created.
Addition to contrib to allow viewing of the customer input - via your admin panel.
Amendment to path of one of the files that needs amending.
includes/database_tables.php
instead of
includes/functions/database_tables.php
This contribution adds an additional dropdown field in the create_account.php screen.
The coding in this particular one asks the customer where they heard about the store and has a dropdwon list including answers Search Engine, Magazine, Television etc.
ALTHOUGH - This can be edited to ask whatever question you wish and give whatever answers you want in the dropdown list.
You can also choose if the field is a compulsary or non compulsary for the customer to complete.
N.B. Ensure you backup first.
Note: Contributions are used at own risk.