| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Larger Text Area For Product Options | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() We have been trawling the forum for a clear answer to this question but as yet we have not found one.
We are currently upgrading to Version 4.0.16. We would like to make the text area larger in the product options so that customers can add a gift message and be able to view their entire message as they type. We are sure it requires code in the template area but what the code is and more to the point where to put it is a small mystery! Our option class is Message with a text field as it's option. |
|||||||
#2
|
|||||||
|
|||||||
![]() You need to edit skin1/modules/Product_Options/customer_options.tpl. Change this bit of code to text field:
Code:
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the swift reply Balinor -
We only want to create a larger text area for one option class which is the "Message" the other option classes that require text are fine as the standard issue text box. Is this possible or will we need to make all the text boxes the same size in this area? If this is possible, do you have any advice on the code we need to use. Thanks. |
|||||||
#4
|
|||||||
|
|||||||
![]() Ok, try this. Replace this:
Code:
with this: Code:
replace 'option text here' with the actual Option text of the option you want to display the text field for. Let me know if it works for you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Tried the code out and it worked thank you so much - you helped resolve a very agrivating problem that was sending us all here a little crazy!!! - Alison.
![]()
__________________
X-Cart version 4.1.0 PHP 4.4.2 MySQL Server 4.0.26-log MySQL Client 5.0.21 Web Server Apache Perl 5.008008 |
|||||||
#6
|
|||||||
|
|||||||
![]() How do you stop the text from continuing on the same line
I want it to auto drop to the next line when it comes to the end of the box
__________________
yages x-cart version 4.5.5 |
|||||||
#7
|
|||||||
|
|||||||
![]() in textarea add wrap=hard, or soft...depending if you want the carriage return to be included or not, also this may not work on all browsers
|
|||||||
#8
|
|||||||
|
|||||||
![]() add the word wrap=hard in text area, did not work
I am using firefox browser
__________________
yages x-cart version 4.5.5 |
|||||||
#9
|
|||||||
|
|||||||
![]() dont think wrapping works in firefox
probably possible to make it compatible with all 3 using javascript |
|||||||
|
|||
X-Cart forums © 2001-2020
|