Top_Speed Posted December 2, 2004 Posted December 2, 2004 Hi, How where & how (files) need to be altered for the Zones (zone field). Currently it is limited to 32 characters, I need about 50. Also this field is used in the customer record address_book & _process, can I make this a drop down box instead of a text box? Pre Thanks!!!! KJ define('PROJECTS', 'Something that goes on forever!');
boxtel Posted December 2, 2004 Posted December 2, 2004 Hi, How where & how (files) need to be altered for the Zones (zone field). Currently it is limited to 32 characters, I need about 50. Also this field is used in the customer record address_book & _process, can I make this a drop down box instead of a text box? Pre Thanks!!!! KJ <{POST_SNAPBACK}> so change the table definition. Treasurer MFC
Top_Speed Posted December 2, 2004 Author Posted December 2, 2004 so change the table definition. <{POST_SNAPBACK}> Hi boxtel, So I guess my question still arrises, where & how? Thanks. define('PROJECTS', 'Something that goes on forever!');
Guest Posted December 2, 2004 Posted December 2, 2004 Assuming you're using phpMyAdmin, do the following: 1) browse to the zones table 2) click the little "change" icon to the right of "zone_name" 3) change the value for "Length/Values" from 32 to whatever you want. Not sure if you need to do the same for zone_code. -jared
Top_Speed Posted December 3, 2004 Author Posted December 3, 2004 Hey thank you very much Jered! :D works nicely! That was easy, I didn't think about the database for altering. Got any ideas on how to make that field a "drop down box" instead of a text box?? Thanks for the good input, KJ define('PROJECTS', 'Something that goes on forever!');
Guest Posted December 4, 2004 Posted December 4, 2004 not sure. I'll go have a look in advanced_search.php (which uses a drop-down box) and see what I find. (edit: Um, or duh, in the address_book_process.php, which is where you want to use it in anyway . . .) -jared
Guest Posted December 4, 2004 Posted December 4, 2004 Ok, from this line: <td><?php include(DIR_WS_MODULES . 'address_book_details.php'); ?></td> we now know to go look in catalog/includes/modules/address_book_details.php for the rest of the address book form. In that file, we see, um, ok. The function call is tep_draw_pull_down_menu. It's already there, but you only get a drop_menu if $process==true. Not sure under what circumstances $process gets set to true. It's probable that if you comment out that if statement, it's opening { and closing }, that you'll get the drop_down list all the time. Let's try. Ok, that's not it. Not it totally, at least. I need to go work on something else at the moment, but that should get you barking up the right (hopefully) tree. :) -jared
Top_Speed Posted December 6, 2004 Author Posted December 6, 2004 Hi Jered, Thanks for working on this! OK, the true statement is in place if you (the customer) does not select a proper (.i.e state:) another words they enter NP (and there is no match for that) when they really meant NC, it doesn't find a match and then gives the pink background error message: "Please slelect your state from the pull down menu". Again, thanks much!! Ken define('PROJECTS', 'Something that goes on forever!');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.