Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the width of the comments box


j4y

Recommended Posts

Hello there, I have just about finished my template for OSC which I designed for a client... one of the problems is that when you click write a review or when your going through the order process, the comments box is too big for the content area:

 

http://uksupplementshop.co.uk/contact_us.php

 

Like that but it goes further out, how would I go about making that box smaller to fit within the width of the middle section?

 

Thanks :thumbsup:

*WhAt HaVe I GoTtA Do*

Link to comment
Share on other sites

Sorry, read that again and realized the page you posted was just an example. The idea is the same, though. Look for the tep_draw_textarea, and lower that first number.

 

In contact_us.php look for

 

<?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?>

 

The '50' is the width.

Link to comment
Share on other sites

For the most flexibility - find this in /includes/functions/html_output.php:

 

function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {

$field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

 

and change to this:

 

function tep_draw_textarea_field($name, $wrap, $style, $text = '', $parameters = '', $reinsert_value = true) {

$field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" style="' . tep_output_string($style) . '"';

 

Then in /contact_us.php change this:

 

<?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?>

 

to this:

 

<?php echo tep_draw_textarea_field('enquiry', 'soft', 'width:450px;height:170px;'); ?>

 

Change the width and height values to whatever you want.

Link to comment
Share on other sites

Much appriciated, which files am I editing for the payment part, its the shipping and paypent bit which have the additional comments boxes on them

*WhAt HaVe I GoTtA Do*

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...