Hi,
I found out the problem. Looks like it is a bug of our template and needs to be patched.
If you type something to "review" and open the TAB of "ask a question", then you will see that the character count represents the character in the "review" field. The counter boxes should be separated from each other.
See the 2 screenshots:
Attachment Pasted_Image_9_27_13_1_19_AM.png not found
Attachment Pasted_Image_9_27_13_1_20_AM.png not found
The solution is pretty straight forward. BUT MAKE SURE YOU ARE FOLLOWINGT THE STEPS EXACTLY AS I SAY:
1- open this PHP file:
/templates/FLEXIBLE_DARKMART/html/com_virtuemart/productdetails/default_askquestionform.php
2- Find this Line:
$('#comment').keyup( function () {
var result = $(this).val();
$('#counter').val( result.length );
});
replace it with this:
$('#comment2').keyup( function () {
var result = $(this).val();
$('#counter2').val( result.length );
});
3- Find this line:
<textarea title="<?php echo $ask_comment ?>" class="validate[required,minSize[<
?php echo $min ?>],maxSize[<?php echo $max ?>]] field" id="comment" name="comment" rows="10" cols="100"></textarea>
replace it with this:
<textarea title="<?php echo $ask_comment ?>" class="validate[required,minSize[<?php echo $min ?>],maxSize[<?php echo $max ?>]] field" id="comment2" name="comment" rows="10" cols="100"></textarea>
(TIP, just change the
id="comment" to
id="comment2")
4- find this line:
<input type="text" value="0" size="4" class="counter" id="counter" name="counter" maxlength="4" readonly="readonly" />
replace it with this:
<input type="text" value="0" size="4" class="counter" id="counter2" name="counter" maxlength="4" readonly="readonly" />
(TIP, just change the
id="counter" to
id="counter2")
then everything will be good to go.
TESTED AND CONFIRMED!
Regards.