Inside the product page, a javascript count.js is attached to the text area
Code: Select all
counter = function() {
var value = $('#bob').val();
if (value.length == 0) {
$('#wordCount').html(o);
return;
}
var wordCount = value.split(/\s+/)
.filter(function(v){ return v.length>2 })
.length;
$('#wordCount').html(wordCount);
};
$(document).ready(function() {
$('#count').click(counter);
$('#bob').change(counter);
$('#bob').keydown(counter);
$('#bob').keypress(counter);
$('#bob').keyup(counter);
$('#bob').blur(counter);
$('#bob').focus(counter);
});
Code: Select all
price = price * wordcount;
Can someone please help me do that, my php knowlege is minimal, and im not sure where, in what file, can i make that happen, and how.
Thank you