Ask a Question form

  • hkeyzer
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 7 months ago #31706 by hkeyzer
Ask a Question form was created by hkeyzer
On the "Ask a question" form from product details page, there is a character counter which does not work - shows "0" all the time.
Is there a way to get it to work?

I have hidden it for now but would rather it worked.

Just in case some one has this problem, I found two strings are missing from the virtuemart language file:
COM_VIRTUEMART_ASKQU_INV_MAIL
COM_VIRTUEMART_ASKQU_CS_MIN

Simply add these with appropraite text to en-GB.com_virtuemart.ini fiel.

Please Log in to join the conversation.

More
11 years 7 months ago #31710 by ivan.milic
Replied by ivan.milic on topic Ask a Question form
Can you enable it (show it) and send us link to page where we could check

Please Log in to join the conversation.

  • hkeyzer
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 7 months ago #31712 by hkeyzer
Replied by hkeyzer on topic Ask a Question form
From ask a question link on this page:
www.nzvirtuemart.co.nz/index.php/product...s-1-70-x-1-40-detail

Gives:


Note character count does not change when typing in message.
Attachments:

Please Log in to join the conversation.

More
11 years 7 months ago #31713 by ivan.milic
Replied by ivan.milic on topic Ask a Question form
Open:

components\com_virtuemart\views\askquestion\tmpl\form.php

above :
Code:
<div class="ask-a-question-view">

add this line:
Code:
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Please Log in to join the conversation.

  • hkeyzer
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 7 months ago #31753 by hkeyzer
Replied by hkeyzer on topic Ask a Question form
Thanks,

Tried that but it did not work, any other suggestion?

Please Log in to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #31764 by ivan.milic
Replied by ivan.milic on topic Ask a Question form
Between this two lines:

$document = JFactory::getDocument();
$document->addScriptDeclaration('

insert:
Code:
$document->addScript('http://code.jquery.com/jquery-1.9.1.min.js');
Last edit: 11 years 7 months ago by ivan.milic.

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum