Jump to content

Free FAQ Module v1.0


rafaxpto
 Share

Recommended Posts

Hello everyone,

 

Thanks so much for your contributions !

I was disconnected from this topic. I don't know forum unfollow me of this thread.

 

I just released a new version of this which is compatible with PrestaShop 1.4.6.2

You can download it here : https://sourceforge.net/projects/modprestafaq/files/latest/download

 

This is the change log for this version :

 

v.1.4.3 (r.147)

------------------------------------------------------

Tested and validate for PrestaShop version 1.4.6.2

Submitted to PrestaStore !

Add Greek translation. Thanks to Vitoratos Dimitrios !

Add Romanian translation. Thanks to Robertino Vasilescu !

Add Hungarian translation. Thanks to Mojs László !

Create templates optimized for iPrestaShop theme (http://iprestashop.net)

Update spanish translation. Thanks to David Alegria !

Add Russian translation. Thanks to Paul

Add Danish translation. Thanks to Ibrahim !

Add Georgian translation. Thanks to Archil Gobejishvili

Add INDONESIAN translation. Thanks to Yudha W.Manggala

Add translations : Catalan, Lithuanian, Slovenian, Czech, Ukranian

 

Many thanks for your support !

 

Regards,

Joel Gaujard

  • Like 1

Share this post


Link to post
Share on other sites

Is there any way to move already entered questions up and down the list to re-order their sequence?

 

Thanks

 

Regards,

Doug

 

Is need edit your data base in your cpanel phpMy Admin, search "faq_lang" table and change "id_faq" in order you need.

Share this post


Link to post
Share on other sites

 

Is need edit your data base in your cpanel phpMy Admin, search "faq_lang" table and change "id_faq" in order you need.

 

Thanks, but I'm not a programmer... :)

 

I was looking for a way of doing it within the Presta Shop admin options for the mod ...

 

Regards,

Doug

Share this post


Link to post
Share on other sites

Hello aQs,

Why this new mod ? If you want you can participate to this module.

 

Well in really I have no advanced knowledge to develop modules, but believe me, love this I really like this, I was watching some tutos to develop modules but are in English and do not speak English, I understand very little and it's hard for me to learn so, I hope to find some material in Spanish.

Share this post


Link to post
Share on other sites

  • 2 weeks later...

I installed the latest version of the module in my shop 1.4.6.2 and I do not work properly, you can see here : http://www.elunivers...es/faq/faqs.php

 

What could be the problem?

Hello victor5atodogas,

 

You've got a problem because you have a problem with one of your script. In my firebug, I can see this :

$(".manufacturerslide .jCarouselLite").jCarouselLite is not a function - blockmanufacturer.js (ligne 9)

This problem don't come from this module.

 

Good luck.

 

Regards,

Joel

Share this post


Link to post
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 3 weeks later...

Hi,

 

I looking to do something like - it's wrong, I know - but like this :

{if $faq.question == ('<h3>'. $faq.question .'</h3>')}

put this title in <h3 id="faq123">

 

So it looks like:

 

MY TITLE N°1 IN H3

 

1 faq1

2 faq2

3 faq3

4 faq ...

 

MY TITLE N°2 IN H3

 

1 faq1

2 faq2

3 faq3

4 faq ...

 

MY TITLE N°3 IN H3

 

1 faq1

2 faq2

3 faq3

4 faq ...

 

I don't know how to do this. Can I have help please or if you have any other ideas to have this structure...

 

Thanks.

Share this post


Link to post
Share on other sites

Bon I think I found it.

 

In faq.tpl I replace

 

<div class="faq_question">{$smarty.foreach.loop.iteration}. {$faq.question}</div>

<div class="faq_answer">

by this

 

<div class="faq_question" id="faq{$smarty.foreach.loop.iteration}">{$faq.question}</div>

<div class="faq_answer" id="ans{$smarty.foreach.loop.iteration}">

 

And in my css (apple.css) I did this

 

#faq1, #faq1:hover {

 

 

background:none repeat scroll 0 0 transparent;

pointer-events:none;

}

#ans1 {

display: none ! important;

visibility: collapse;

}

 

So It works fine in firefox - gonna check again ...

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Hi,

Great module!

 

Just wondering is there any way to create sections to breakup all the questions? For example:

 

General questions

 

Question 1

Question 2

Question 3

 

Technical issues

 

Question 1

Question 2

Question 3

  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hi there,

 

Love the module. Thnx!

I agree with Kruk. I t would be even more powerfull if there's a possibilty to make a breakdown into categories.

 

Could that be an option for future versions?

 

Regards

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hi all!

 

Great module, I work with an old version since a few months... v. 1.2.2...

 

And I am intersted by having 2 FAQ, in 2 differents blocks, not as Kruk say...

One for technical questions, and another for questions about product...

 

Is that possible? (ps: sorry I am french and my english is very very bad....).

If not I will join the idea of Kruk...

 

Thanks.

 

Regards.

 

Stacy Ann

Share this post


Link to post
Share on other sites

  • 3 weeks later...

I want to add a FAQ module link to the "CMS links". Is there an easy way to do this?

 

As far as I know there is not, so I've created a workaround for this.

 

-Create a FAQ CMS item

-edit cms.tpl

{if $cms->id == 8}
{include file="./modules/faq/faq.tpl"}
{else}
.......
</if>

 

This workaround seemed to work, however it does not show any FAQ items. It just shows "None questions yet.". How should I fix this?

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Hi!

I love this module and my site could really use something like this. The module installs fine but I have 2 problems:

 

1. The questions do not expand and reveal the answers.

 

2. My entire footer block seems to be pushed to the left.

 

Is there a way to fix these? Thanks :)

Share this post


Link to post
Share on other sites

Hello,

 

Love this module - really great addon for Prestashop.

 

I would like to know how can I add the FAQ module as a tab under Catalog on the back office? I don't want to give the person who needs to update this access to the modules section so i would like to create a tab under catalog.

 

Appreciate your help.

 

Kind regards,

Jhorene

Edited by Jhorene (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...
  • 3 weeks later...

Hi fellows, It's indeed not properly expanding on 1.4.6.2 and I can read that it's the same problem a lot of us are having. Has anyone figured it out? It does display the questions although when click they don't do nothing and they should expand in order to properly work. Check it at tivicr.com

Share this post


Link to post
Share on other sites

  • 1 month later...

Hey Guys

 

Firstly i would like to thank the creator/s for making such a great module. Also thanks to all the guys for providing the needful inputs. I have installed the module and am using it . Working perfectly. But i have a problem. I am not able to do the seo stuff for the faqs page. like meta content , meta title, meta description, etc. Could someone please help me in figuring out how to add the seo stuff to the faq page.

 

Thanking you guys in advance.

Edited by Gaddy (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

I found a workaround for FAQ module 1.4.3. and PS 1.5.1

 

Change line 113 in faq.php file :

 

From :

if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = mysql_insert_id())

to :

if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = (int)Db::getInstance()->Insert_ID())

 

And it works !

  • Like 3

Share this post


Link to post
Share on other sites

I found a workaround for FAQ module 1.4.3. and PS 1.5.1

 

Change line 113 in faq.php file :

 

From :

if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = mysql_insert_id())

to :

if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = (int)Db::getInstance()->Insert_ID())

 

And it works !

 

Well done Thierry ! It works almost fine for me. I can now add a question, but I can't edit them as they don't show up on my backoffice.

Have you find any solution or does it work properly for you?

Share this post


Link to post
Share on other sites

It seems to come from the tinyMCE use in this module but I cannot find the exact issue and the fix...

 

in file faq.js :

 

tinyMCE.get('answerInput_' + faqs[faqId]
[i * 3]
).setContent(faqs[faqId]
[i * 3 + 2]
);

 

the setContent function call does not work but I don't know why...

Share this post


Link to post
Share on other sites

Hi Dear rafaxpto

is this support to PS v 1.4.9.0

and please tell me how to visit FAQ page.

I've tried different urls. but no luck.

Eg:

www.myweb.com/faq

www.myweb.com/faq.php

www.myweb.com/en/faq

www.myweb.com/en/faq

www.myweb.com/en/content/faq

Share this post


Link to post
Share on other sites

  • 1 month later...

I'll give it a test now with a default theme.

 

is there not somewhere to turn the different questions on or off like with the CMS?

 

Thanks,

I think not, it would be necessary to make adjustments to the module.

Share this post


Link to post
Share on other sites

  • 3 weeks later...

First of all, thanks to all the guys who have worked and improved this module.

 

After changing some lines of code here and there, and using Thierry78125 piece of code, I finally made this module work for Prestashop 1.5.0.17.

 

Here are the steps to make it work:


  1. Thierry's code:
    Change line 113 in faq.php file :
     
    From :
    if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = mysql_insert_id())
    to :
    if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'faq VALUES ()') OR !$lastId = (int)Db::getInstance()->Insert_ID())

    With this, you can add questions, and they are displayed on the front end, but not in the backend.

  2. Then you have to go to line 98 and 99 (faq.php) and comment/edit them and place the new code after those lines, or in case you deleted them, replace those lines with this one: $texts = Db::getInstance()->ExecuteS($sql);
    So we have somethig like this:
    //if (!$texts = Db::getInstance()->ExecuteS($sql))
    //return false;
    $texts = Db::getInstance()->ExecuteS($sql);
    This will make visible the list of questions in the backend. Now the only thing we are missing is the edit function. Thanks to my friend Leo who figured this out.

  3. So we have to open faq.js file and go to line 7 and change:
    from
    tinyMCE.get('answerInput_' + faqs[faqId][i * 3]).setContent(faqs[faqId][i * 3 + 2]);
    to
    getE('answerInput_' + faqs[faqId][i * 3]).value = faqs[faqId][i * 3 + 2];

Hope it helps.

Edited by jahubego (see edit history)

Share this post


Link to post
Share on other sites

Many Tks jahubego, now work fine, but when we try to delete appear invalid token in red, but if i click continue he work fine and delete the file, but before appear that mensage, other thing is, in the 1.4.9 we insert text with html window, and now this dont have, so if we try to put " 1º and text " then below " 2º and text " like topics, he put all together, not like we want, for now is the only things i saw, if you fix that say something... Tks again..

Edited by AngelSpeedy (see edit history)

Share this post


Link to post
Share on other sites

I am very busy and will be for the next 3 weeks, so I don't think I will be able to test it on different versions. But you can do it. Is you need the files, answer this post with your email and I will send them back to you as soon as I can.

 

Regards,

 

JaHuBeGo

Share this post


Link to post
Share on other sites

  • 2 weeks later...

hello

 

i work with prestashop 1.5.2, i install the module correctly but wen i was create a new question, i show a erreur message

 

Une erreur est survenue lors de la création de la question.

 

can you help me please, i ' m sorry for the language mistakes

Share this post


Link to post
Share on other sites

First of all, thanks to all the guys who have worked and improved this module.

 

After changing some lines of code here and there, and using Thierry78125 piece of code, I finally made this module work for Prestashop 1.5.0.17.

 

Here are the steps to make it work:

  1. Thierry's code:
    With this, you can add questions, and they are displayed on the front end, but not in the backend.
  2. Then you have to go to line 98 and 99 (faq.php) and comment/edit them and place the new code after those lines, or in case you deleted them, replace those lines with this one: $texts = Db::getInstance()->ExecuteS($sql);
    So we have somethig like this:
    //if (!$texts = Db::getInstance()->ExecuteS($sql))
    //return false;
    $texts = Db::getInstance()->ExecuteS($sql);
    This will make visible the list of questions in the backend. Now the only thing we are missing is the edit function. Thanks to my friend Leo who figured this out.
  3. So we have to open faq.js file and go to line 7 and change:
    from
    tinyMCE.get('answerInput_' + faqs[faqId][i * 3]).setContent(faqs[faqId][i * 3 + 2]);
    to
    getE('answerInput_' + faqs[faqId][i * 3]).value = faqs[faqId][i * 3 + 2];

Hope it helps.

 

Thanks jahubego

I Have try it on PS 1.5.3.1 and it's work fine in my site...

  • Like 1

Share this post


Link to post
Share on other sites

I make little modification base on jahubego direction for FAQ module. Its work for PS.1.5.3 on my website...

 

this my example

 

http://tokounix.com/...es/faq/faqs.php

 

Thank you for this module.. Works fine in my website using Prestashop 1.5.3.1

www.oykokids.com

Edited by Guilherme Dutra (see edit history)

Share this post


Link to post
Share on other sites

Hi, replying the post of Thierry78125, the module that I download, I found in this Topic, but i think that you can download the module that upload allentera. if you want, you can download another one, You find on this Link

 

http://sourceforge.n...faq/?source=dlp

 

But to make it runs ok, you need to made the modifications that mention jahubego on page 19 of this toopic.

 

allentera I see your FAQ module, but i don see no change that the FAQ module of Rafael & Joël ver. 1.4.3 , if you can tell us which modification did you made, please.

 

Respect the post of nicosloog, i think that your problem, as same Thierry78125, you have to made the moditications that mention jahubego on page 19 of this topic, i think that can solve your problem, 'cause this module to run on Presta 1.5.3.1 need to be modified to run fine.

 

Guilherme Dutra, can you tell me which module are you using on your website as slideshow, it looks great !

 

Regards

Edited by jorgemmcc (see edit history)

Share this post


Link to post
Share on other sites

Hi, replying the post of Thierry78125, the module that I download, I found in this Topic, but i think that you can download the module that upload allentera. if you want, you can download another one, You find on this Link

 

http://sourceforge.n...faq/?source=dlp

 

But to make it runs ok, you need to made the modifications that mention jahubego on page 19 of this toopic.

 

allentera I see your FAQ module, but i don see no change that the FAQ module of Rafael & Joël ver. 1.4.3 , if you can tell us which modification did you made, please.

 

Respect the post of nicosloog, i think that your problem, as same Thierry78125, you have to made the moditications that mention jahubego on page 19 of this topic, i think that can solve your problem, 'cause this module to run on Presta 1.5.3.1 need to be modified to run fine.

 

Guilherme Dutra, can you tell me which module are you using on your website as slideshow, it looks great !

 

Regards

 

Hi I just make little modification with this modul that can work with Prestashop 1.5.3 base on jahubego direction. we know that modul just work with PS 1.4

Share this post


Link to post
Share on other sites