Author Topic: How to fix a 'maxlength' attribute to the custom field input plugin [solved]  (Read 378 times)

imcomm

  • Beginner
  • *
  • Posts: 4
  • A beginner
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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3066
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: How to fix a 'maxlength' attribute to the custom field input plugin
« Reply #1 on: July 27, 2020, 10:51:56 am »
This should be overridable:
/templates/your_template/html/vmcustom/

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

imcomm

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: How to fix a 'maxlength' attribute to the custom field input plugin
« Reply #2 on: July 27, 2020, 11:23:29 am »
Perfect, thanks!

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3066
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Glad to be of help :)

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.