Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Minimum number of characters


Guest

Recommended Posts

Posted

where can I alter the minimum number of characters for shipping address/billing address? The config file within OSComm admin panel does not reveal all of the address lines (including the country) .

 

Also, how can I add a minimum character option into the OSCommerce configuration for EVERY line of the above address php files?

 

Secondly, where can I find how to lessen the number of characters customers can use for the gift card message box within checkout process?

 

:'(

Posted

In your admin area click Configuration -> Minimum Values - that's where the minimum number of characters is specified for those fields. Country is not their as it is populated by a drop down list from a list you create in admin so it doesn't make sense to have a minimum value for that.

 

By "gift card message box" do you mean the Comments box in standard osC checkout or is this a custom contrib added?

 

If it's the comments box then edit checkout_payment.php, find:

				<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?></td>

change to:

			  <td><?php echo tep_draw_input_field('comments', $comments, 'maxlength="100" size="60"'); ?></td>

replacing 100 with the max number of chars you want to use

Posted

This worked well thank you.

 

A little 'side' mention is to change codes both in checkout_shipping.php and checkout_payment.php. I think this is correct so as to match comment.

 

Just one more question on this?

 

Having done the above amendments, how do I make it the comment box height double or triple line height?

 

It looks rather cramped on the above pages and would like it to match the checkout_confirmation.php comment box.

Posted

Sorry, had to get shot of the amended code. Thought it had been restored to original state by me. However, the box itself now just keeps on growing and growing to the right when comment typed in comment box.

 

 

Copying the code - Please can someone offer me the 3 lines before and 3 lines after the original code line (shown in previous forum comment?

 

Thanks

Posted

Sorry, here is the code I have - I need a copy of the lines before and after it (.php file as in previous discussions)

CODE

<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?></td>

 

Cheers

Archived

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

×
×
  • Create New...