armycopter Posted June 7, 2004 Share Posted June 7, 2004 Hi, I just installed this great contribution but I am having one problem. I think it has to do with another contribution that I have (D.O.B. Drop downs). Basically when you choose another country and the page refreshes, I get an error message that looks like this: My Account Information NOTE: If you already have an account with us, please login at the login page. Your Personal Details * Required information Gender: Male Female * First Name: * Last Name: * Date of Birth: Fatal error: [] operator not supported for strings in /home/crisil-s/public_html/ecommerce/os/catalog/create_account.php on line 370 Here is my code: for that line: if (ACCOUNT_DOB == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td> <!-- <td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td> --> <td class="main"> <?php // 1. first line for ($i=1; $i<32; $i++) { $dob_day[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i)); } for ($i=1; $i<13; $i++) { $dob_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate(); $first_year = $today['year'] - 77; $last_year = $today['year'] - 17; for ($i=$first_year; $i < $last_year; $i++) { $dob_year[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i)); } echo tep_draw_pull_down_menu('dob_day', $dob_day); echo tep_draw_pull_down_menu('dob_month', $dob_month); echo tep_draw_pull_down_menu('dob_year', $dob_year); // last line ?> </td><?php } ?> <tr> Any help would be appreciated! Quote Mark Contributions Used: STS B2B Suite Description in Product Listing Header Tag Controller Easypopulate Purchase Orders USA Flag Local Delivery New Attributes Editor Pickup Link to comment Share on other sites More sharing options...
armycopter Posted June 7, 2004 Author Share Posted June 7, 2004 Please ignore, I posted this to the wrong thread... Quote Mark Contributions Used: STS B2B Suite Description in Product Listing Header Tag Controller Easypopulate Purchase Orders USA Flag Local Delivery New Attributes Editor Pickup Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.