Hi I am treying to add more notes to the customer note area
I found this in the 'script.virtuemart.php' file in the install folder - but that does not seem like a good place to be editing
$data = array ('type' => 'textarea'
, 'maxlength' => 2500
, 'cols' => 60
, 'rows' => 1
, 'name' => 'customer_note'
, 'title' => 'COM_VIRTUEMART_CNOTES_CART'
, 'description' => ''
, 'default' => ''
, 'required' => 0
, 'cart' => 1
, 'account' => 0
, 'shipment' => 0
, 'readonly' => 0
, 'published' => 1
);
is this where I should changing rows from '1' to say '5' or is there a better place this could be done (say in a template override)
thank you!
add more notes to the customer note area ?
YOu mean bigger ?
Else simply copy current customer note field should work
or if u mean the box size just set it with css
css can set how many rows high the comment area is?
I thought the actual form itself would have to be edited - I found that section in script.virtuemart.php which clearly sets the textarea for COM_VIRTUEMART_CNOTES_CART @ 1 row
I need to find the page that generates this code
<textarea id="customer_note_field" name="customer_note" cols="60" rows="1" class="inputbox" maxlength="2500"></textarea>
so that I can change the rows="1" to rows="5"
how would I change this with css?
Notes and special requests is a shopper field textarea, customer_note, and can be edited in the shopper fields list to add more rows.
SWEEET!
you rock jenkinhill, thank you so much (once again)
I will mark this one solved
does "rows" do anything?
#customer_note_field {height:150px;} certainly does and over rides rows
Quote from: GJC Web Design on January 24, 2017, 21:30:14 PM
does "rows" do anything?
#customer_note_field {height:150px;} certainly does and over rides rows
rows is obselete, CSS should overide HTML rows or cols Eg width:100%;height:400px
css is too complicated for some users but if a simple config is available then so much the better - for them.
I really liked being able to set this in the backend (Once I was pointed in the right direction)