X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Height of option box, I must be stupid (https://forum.x-cart.com/showthread.php?t=2731)

Rob 05-16-2003 07:58 AM

Height of option box, I must be stupid
 
I am trying to find where I can change the height of the option box. My client need a box where people can write in text. I can't figure out how to make the option box more than 1 line high. I found I can make the box longer in the product.tpl file, but I can't figure out how to make it taller.

Thanks in advance.

funkydunk 05-16-2003 08:24 AM

<textarea name="textarea" rows="5"></textarea>

Rob 05-17-2003 10:04 AM

I must be REALLY stupid to not get this.
 
Hello Funkydunk,

Thanks for the quick reply. Where do I put the code you sent? Does it go in the product.tpl somewhere? I couldn't find a "textarea" wording anywhere within the file so I must be missing something.

I'm using version 3.3.3

There is definately a donation for you in this one. I realize you go out of your way a lot in this forum.

Thanks,
Rob

shan 05-18-2003 01:39 PM

i think your after this.

in skin1/modules/products options/customer_options.tpl

change

Code:

<input type=text name="product_options[{$product_options[product_option].optclass}]" size=32>

to

Code:

<textarea name="product_options[{$product_options[product_option].optclass}]" cols="32" rows="5"></textarea>

see if that helps

Rob 05-19-2003 07:47 AM

Perfect!
 
Just what I was looking for. I'm going to have to get a book on PHP(?) so I can understand why that particular line did what it did.

Could you be so kind as to make a recomendation where to start learning how to do these things on my own?

shan 05-19-2003 08:32 AM

This is just basic html realy.

have a look on amazon and se what turns up


All times are GMT -8. The time now is 06:05 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.