I need to add a customer's mobile phone provider to his account information. Before I start modifying the code (using templates as much as possible), I wanted to see if there is a way to add a field to the list of customer details?
Through admin->configuration->customer details I see the Create Account Default Country ID. I would like to add a 'Create Account Default Carrier ID' but I don't see a way to add customer details.
Question 1: Have I missed it? If so, how do I add this field?
Using Tools->Developers Toolkit and searching for the constant, SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY, I get the following listing.
Developers Tool Kit
Lookup CONSTANT Definitions
Key: SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY
Title: Create Account Default Country ID
Description: Set Create Account Default Country ID to:
Default is 223
Value: 223
Group: ID#5 Customer Details
Edit Reset
I want to add a similar constant, SHOW_CREATE_ACCOUNT_DEFAULT_CARRIER but I'm not sure which file to add it to?
Question 2: Even using the developer's tools, I can't find the name of the file where it's defined, just where it's used. It's got to be there somewhere--I'm just missing it.
Here's my search and the listing:
Searching 1113 files ... for: SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY
/home/content/b/e/a/bearBud2206/html/store/includes/templates/template_default/templates/tpl_modules_checkout_new_address.php
Line #90 : $selected_country = ($_POST['country']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
/home/content/b/e/a/bearBud2206/html/store/includes/templates/template_default/templates/tpl_modules_create_account.php
Line #108 : $selected_country = ($_POST['country']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
Match Lines found: 2
Thanks,
jdl
Bookmarks