Jump to content
Sign in to follow this  

Dropdown Question Box for Create_account screen

Recommended Posts

New support thread for Dropdown Question Box for Create_account screen, as the contribution references a previous support thread that was "closed" by John Oligario.


I have the dropdown box installed, works great, and now would like to display the dropdown results on account_edit.php for each Customer to edit, if necesssary.


Problem is the dropdown will only display "Please Select", and I need it to display the customer's previously selected option, such as done by the country dropdown.


Here is the pull-down function in includes/functions/html_output.php

// Creates a pull-down list of sources
function tep_get_source_list($name, $selected = '', $parameters = '') {
$sources_array = array(array('id' => '999', 'text' => PULL_DOWN_DEFAULT));
$sources = tep_get_sources();

for ($i=0, $n=sizeof($sources); $i<$n; $i++) {
$sources_array[] = array('id' => $sources[$i]['sources_id'], 'text' => $sources[$i]['sources_name']);

return tep_draw_pull_down_menu($name, $sources_array, $selected, $parameters);


How can we make the dropdown display the customer's previously selected option by default?




Share this post

Link to post
Share on other sites

I have installed this contribution and its supposed to require an entry in the dropdown menu that it creates but I have been able to leave it as "please select" and moved through the checkout process.


I've added this to includes/languages/english.php:

define('ENTRY_SOURCE_ERROR', 'Please let us know where you heard about us.');

define('ENTRY_SOURCE_TEXT', '*');



My other problem with this is that it is not geared to work with PWA (purchase without account) mod. If anyone has any pointers or has installed this with pwa please PM me.

Installed Modules:

Dynamenu, InfoBox Admin, Master Products v.1.2, Header Tags Controller, Multiple Products Manager, Quick Edit in Admin, Secure Admin, Ultimate SEO URL's, EZ Secure Order, Easy Populate v.2.76d MS2, AuthorizeNet_AIM, ChangeFinal Breadcrumb Title, FedEx Labels, Fedex Direct 2.06, How Did you Hear 1.5, Login a la Amazon, UPS XML 1.2.4, USPS Labels, USPS Methods API MS2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this