Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Company lenght edit


leveera

Recommended Posts

Posted

Hello,

 

Just need to increace Company lenght field in M2.2

I changed in mysql two tables

 

address_book - entry_company to varchar 64

and

orders - customers_company to varchar 64

 

but still not able in type/edit existed customers company over 32 char. in admin/customers.php

 

What I have missed?

 

in mysql the table customers has no Company line

 

Sergei

Posted

dmnalven, thanks for advice,

 

Anyway I found solution and for anybody who need the same

 

Change in phpmyAdmin varchar in 2 tables as stated above

 

Edit admin/customers.php

line 487

Change maxlenght value to fit you needs

 

<?php
if ($error == true) {
  if ($entry_company_error == true) {
	echo tep_draw_input_field('entry_company', $cInfo->entry_company, 'maxlength="32"') . ' ' . ENTRY_COMPANY_ERROR;
  } else {
	echo $cInfo->entry_company . tep_draw_hidden_field('entry_company');
  }
} else {
  echo tep_draw_input_field('entry_company', $cInfo->entry_company, 'maxlength="32"');
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...