News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

add more rows to customer note area

Started by dsrpmedia, January 23, 2017, 23:35:05 PM

Previous topic - Next topic

dsrpmedia

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!

Studio 42

add more notes to the customer note area ?
YOu mean bigger ?
Else simply copy current customer note field should work

GJC Web Design

or if u mean the box size just set it with css
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dsrpmedia

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?

jenkinhill

Notes and special requests  is a shopper field textarea, customer_note, and can be edited in the shopper fields list to add more rows.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dsrpmedia

SWEEET!

you rock jenkinhill, thank you so much (once again)

I will mark this one solved

GJC Web Design

does "rows" do anything?

#customer_note_field {height:150px;} certainly does and over rides rows
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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

jenkinhill

css is too complicated for some users but if a simple config is available then so much the better - for them.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dsrpmedia

I really liked being able to set this in the backend (Once I was pointed in the right direction)