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

Ask A question - $min for Minimum Characters not working

Started by robert, December 10, 2014, 22:17:31 PM

Previous topic - Next topic

robert

I am trying to fix the Minimum 50 character setting to reflect a more realistic number like 10 characters.

I am using J 2.5.28 and VM 2.6.14

I am also using some custom overrides in the sites main template.

At this point I have done a search and changed every instance in both the VM files and in the overrides to reflect the Minimum characters to 10


but for some reason... the override is not showing the new setting of 10 characters.
<textarea title="<?php echo $ask_comment ?>" class="validate[required,minSize[<?php echo $min ?>],maxSize[<?php echo $max ?>]] field" id="comment" name="comment" rows="8"><?php echo $askQuestionData['comment'?></textarea>

validate[required,minSize[<?php echo $min ?>], will not pull the new settings from $min = VmConfig::get('asks_minimum_comment_length', 10);

this file is located in " template/html/com_virtuemart/askquestion/form.php "

and for the record I also changed the VM core file " root/components/com_virtuemart/controllers/productdetails.php " to reflect the 10 characters vs 50

Does anyone have any suggestions as to why this wont work?

jenkinhill

Why are you doing that?  Just set "Question minimum length " to 10 in Configuration/Shopfront/Core Settings.
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

robert

Doh!!!! I just found that setting!! thanks to your advisory!!

All those old posts steered me the wrong way!

THANKS!