quilterbunny Posted December 10, 2007 Posted December 10, 2007 How can I make the products name field in the admin product entry screen wider so that you can see the whole name? Thanks!
nimz Posted December 10, 2007 Posted December 10, 2007 open catalog/admin/includes/functions/html_output.php FIND: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; REPLACE WITH: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '" size="50" '; you can't set the size to a maximum can only set it to numbers. the size of product name field in the database is set to 64 however setting the text field to 64 messes up the "new product" page layout on a 1024x768 resolution monitor so in the code above as you can see I set it to a maximum of 50 which honestly should be sufficient just be aware that doing this will increase the size of all product name fields in the admin panel. as far as I checked this doesn't cause any problems anywhere but just be aware. Santa's little freelancer
♥Vger Posted December 10, 2007 Posted December 10, 2007 That increases the size of the box so that you can "see" the whole name. However, the whole name won't go into the database unless you go to phpMyAdmin, click to edit the products_description table and increase the VARCHAR entry for the products_name field. Vger
quilterbunny Posted December 10, 2007 Author Posted December 10, 2007 open catalog/admin/includes/functions/html_output.php FIND: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; REPLACE WITH: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '" size="50" '; you can't set the size to a maximum can only set it to numbers. the size of product name field in the database is set to 64 however setting the text field to 64 messes up the "new product" page layout on a 1024x768 resolution monitor so in the code above as you can see I set it to a maximum of 50 which honestly should be sufficient just be aware that doing this will increase the size of all product name fields in the admin panel. as far as I checked this doesn't cause any problems anywhere but just be aware. That did it!! Thanks so much!!
nimz Posted December 10, 2007 Posted December 10, 2007 How can I make the products name field in the admin product entry screen wider so that you can see the whole name? Thanks! That increases the size of the box so that you can "see" the whole name. However, the whole name won't go into the database unless you go to phpMyAdmin, click to edit the products_description table and increase the VARCHAR entry for the products_name field. Vger I think she's just asking for the size of the field to be increases to make it easier when adding or editing the products. the product_name field is already 64 characters which most likely is more than enough. That did it!! Thanks so much!! no probs Santa's little freelancer
Recommended Posts
Archived
This topic is now archived and is closed to further replies.