Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Joomla Virtuemart Template - DarkMart (SKU# FLEX-00011)

TOPIC: Characters written counter doesn't work

Characters written counter doesn't work 10 years 6 months ago #6548

Hi, as stated in the subject when typing a request from product flypage, the Characters written counter does not work (see the attached screenshot). Any idea in how fixing it? I have the latest 2.2 version of course. If you need more information just ask.

Thank you
Attachments:
Last Edit: 10 years 6 months ago by Maurizio Urbani.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6553

Hi,

It must be a jQuery conflict issue. I need to see your website URL and investigate it to figure out what might causes the conflict.

Alternatively you can hide the counter though. If you ask me, that counter is pretty useless (since you have min.5 character limits. You really don't need that counter box.)

To hide that counter, you can use this CSS rule:
.write-reviews > span { display:none;}
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6557

Hi, thank you for your reply.

Actually I set the minimum character limit to 5 because if I do increase it let's say to 20 and someone does type 19 characters or less, a popup page appears containing an error. I'd like you take a look but, since the site is still under development, it's still close. I just created a superadmin user but cannot give you password and username here so, as soon as I will have finished to write this message, I will try to send you a PM if possible (never tried).
BTW where have I to use that CSS rule? I inserted it into Virtuemart.css at line 2346 (immediately before '.ask-a-question-view input.counter') but the counter was still there :-)

Thank you

P.S. mmm I just tried to send you the PM containing Superadmin user/pw and URL but it seems to be impossible to contact you privately here. What can I do?
Last Edit: 10 years 6 months ago by Maurizio Urbani.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6560

Hi,

Use the email: This email address is being protected from spambots. You need JavaScript enabled to view it. if you would like to send any sensitive account information to let me access your website.

While emailing to This email address is being protected from spambots. You need JavaScript enabled to view it.
Don't forget to include this forum topic's URL at the of your message to avoid the confusion in our end.

Regards.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6566

HI, I sent yesterday night all details to the email you mentioned. Hope you got it.

Regards,
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6572

One more detail: if I click the information request (actually the original would be ask for price) from category page (list view) the counter does work perfectly, see the attached picture. It doesn't just on flypage.
Attachments:
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6582

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.
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6731

Perfect!!!! Thakn you very much, you do offer one of the best support I ever experienced. All my future sites will include one of your templates for sure. Marking as solved.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6732

Oops sorry I found another small malfunctioning. If you ask for information and click submit, you get the thank you page but the button' Back to.... product' doesn't work.see attached screenshot.

Thank you.
Attachments:
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6734

Found one more issue...
this site is bi-lingual and while on default english part everything works fine (except for the 'back tp product' button I mentioned in the previous post), from the italian part if you miss username or email address or type less than 5 characters, instead of the red information bubbles warning that something is missing (see shotOK.jpg), if you click submit the button is active (while it shouldn't), the flypage disappears and does appear a kind of error page (see shoterror.jpg).
Hope we can fix also this.

thanks
Attachments:
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6744

Hi,

For the "back" button issue.
That button gets printed through this PHP file:
/templates/flexible_darkmart/html/com_virtuemat/askquestion/mail_confirmed.php

in that PHP file, there is this line:
<button on-click="parent.jQuery.facebox.close();history.go(-1);" type="button" formaction="">

that JS function: history.go(-1); is a correct usage for generating BACK links (i am not sure if it is widely supported by all browsers though). But you can alternatively try this:
<button on-click="parent.jQuery.facebox.close();javascript:history.back();" type="button" formaction="">

TIP: the parent.jQuery.facebox.close() is used to close the "Facebox" popup, incase the "ask a question" gets opened inside the facebox modal popup.
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6745

The verification bubbles are generated by the Virtuemart Core Files.
The English version of verification bubbles are generated by this JS file:

/com_virtuemart/assets/js/languages/jquery.validationEngine-en.js

But the Italian version is also exist in that folder with this file name:

/com_virtuemart/assets/js/languages/jquery.validationEngine-it.js

So i am not sure why the Italian version doesn't work on your website. Normally no matter what language your website is using, the button shouldn't be clickable if the fields are not filled correctly. I have absolutely no idea. Did you check the forum.virtuemart.net ?

Alternatively you can try this (to avoid loading the "component" page after wrong submitting):

open this PHP file:
/templates/flexible_darkmart/html/com_virtuemat/askquestion/form.php

and find this line:
<form method="post" class="form-validate" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'&tmpl=component') ; ?>" name="askform" id="askform">

replace it with this:
<form method="post" class="form-validate" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'') ; ?>" name="askform" id="askform">
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6753

Hi, the button is still not active also after changed the function and it doesn't work. But before applying the above charcteers counter modification I am pretty sure it was working correctly with the history.go(-1) function. So there must be something which inhibits button action.

Update: Now the Back Button does work in both languages, it was just a cache issue.
Last Edit: 10 years 6 months ago by Maurizio Urbani.
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6754

I made the modification to the form.php file as you suggested but nothing changed. If I click (on the italian side) the submit button without inserting username, password and request the button is active and I reach the same page (shoterror.jpg). I have the last version of your template (2.2) and Virtuemart 2.022a so everything should work but unfortunatly it doesn't.
I didn't modify anything into Virtuemart and just some css and images into your template, nothing more. Maybe is there some problem with multianguage?
Now the site is still closed and we was planning to launch in in 2 or 3 weeks but with those malfunctioning it is impossible. If we have ti buy some assistance ticket just let us know but please help us in solving this.
Thank you
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6769

Please create me a joomla (super) administrator account, send it to This email address is being protected from spambots. You need JavaScript enabled to view it. and let me take a look at your backend parameters. I will try to resolve the problem if it is related to our VM Template. If i change anything, i will provide you the detailed information about my touches.

While emailing to This email address is being protected from spambots. You need JavaScript enabled to view it.
Don't forget to include this forum topic's URL at the of your message to avoid the confusion in our end.

Regards.
Support & Development
The topic has been locked.

[SOLVED] Characters written counter doesn't work 10 years 6 months ago #6779

I just sent you the email with Super User details as you required.

Thank you

Regards.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6786

I sent a new email containing the URL of the site (I just realized I didn't include it in the previous email), sorry. I hope the malfunctioning will be fixed in a way or another.
I am planning to buy the clean mart template in the next few days for a new site I'll start developing in a couple of weeks and, since that site wil be bi-lingual as the guitar's one, I need that function working on both languages.

Regards.
The topic has been locked.

Characters written counter doesn't work 10 years 6 months ago #6795

Hi,

Looks like Virtuemart developers forgot to include "MinSize" function to Italian JS file (it exists in the English JS file though)
Anyway, i included them and now the notification bubbles also show off when the language is IT as well.

But since i copy-pasted the functions from the English JS file, the texts in the bubble are still in English. You can simply translate them to Italian by yourself.

First open your website in IT language and see what kind of bubble box you are seeing (open "ask question" TAB, leave the fields empty and click the "send" button) and see the English error button that says, MINIMUM 5 CHARACTERS IS REQUIRED, then open this file:

ROOT//components/com_virtuemart/assets/js/languages/jquery.validationEngine-it.js

and do the translation.

Case solved, Topic is closed.

Regards,
Support & Development
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.
Time to create page: 0.646 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo