VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: imcomm on July 27, 2020, 10:26:37 AM

Title: How to fix a 'maxlength' attribute to the custom field input plugin [solved]
Post by: imcomm on July 27, 2020, 10:26:37 AM
Hello,
I see that this problem is old and has not yet been fixed, see:
http://forum.virtuemart.net/index.php?action=post;topic=99164.0;last_msg=374880

I put the SOLUTION here:
Using Joomla! 3.9.20 and VirtueMart 3.8.4

Open file> root/pligins/vmcustom/textinput/tmpl/default.php
Before the line 13 add:
maxlength="<?php echo $params->custom_size ?>"

It seems that it is not possible to override and I hope it will be fixed in the next version.

I hope you find it useful.
Title: Re: How to fix a 'maxlength' attribute to the custom field input plugin
Post by: Jörgen on July 27, 2020, 10:51:56 AM
This should be overridable:
/templates/your_template/html/vmcustom/ (https://forum.virtuemart.net/templates/your_template/html/vmcustom/)

Jörgen @ Kreativ Fotografi
Title: Re: How to fix a 'maxlength' attribute to the custom field input plugin
Post by: imcomm on July 27, 2020, 11:23:29 AM
Perfect, thanks!
Title: Re: How to fix a 'maxlength' attribute to the custom field input plugin [solved]
Post by: Jörgen on July 27, 2020, 11:28:12 AM
Glad to be of help :)

Jörgen