News:

Looking for documentation? Take a look on our wiki

Main Menu

make customer comment field required at checkout in VM 2.6.22

Started by 6.522, April 07, 2016, 22:43:13 PM

Previous topic - Next topic

6.522

Hi, I know this is covered in VM 3x now but I need a solution to make a customer comment field required at checkout in VM 2.6.22, please :) - without updating to VM 3x ;)
Regards

my joomla ver 2.5.28

GJC Web Design

jquery snippet to disable the chk out button until comment is filled
or hack the vm validation script to incl comment

or does the textarea just need a required class etc?
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

6.522

Hey, thanks for the tips! :) Yes I just need something that will not allow user to complete the check out if the comment field is empty - the simplest solution that will do the job. :)
Regards

6.522

Ok, so I ended up adding the "required" attribute to the textarea - as you suggested - and it works. :) The downside is IE9 (and lower) does not support this - is there a way to do sth about it?
Regards

jenkinhill

Detect that old browser and send them to an update site? Or link to https://www.microsoft.com/en-gb/WindowsForBusiness/End-of-IE-support

Alternatively you may have to hack the validation script.
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

6.522

Thanks! I think I will leave it as it is for now, but if I would decide to change the validation script where should I start with?
Regards