Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dropdown Question Box for Create_account screen


EricK

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?

 

Thanks,

EricK

Link to comment
Share on other sites

  • 6 months later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...