thank you for your answer but I don't think I'm so naive yet to post to waste time, it works for me too in admin, I ask questions and answers, the customer side doesn't work for me, when the customer asks the question, it doesn't reach me in admin nothing. where am i wrong?plamastus wrote: ↑Fri Apr 16, 2021 12:58 pm When you say it doesn't work, would you please be more specific?
I installed it in 1.0.8.1 and 1.0.8.0
admin => customer => click on FAQ
admin => modules => content => install FAQ
Then to test, I clicked on a couple of products then went to the bottom asked a question.
Went to admin => customer => click on FAQ and both questions were there.
Thanks,
s08e02 - Per Product FAQs SUPPORT / QUESTIONS / CHAT
-
villameschik
Re: s08e02 - Per Product FAQs SUPPORT
Tags:
-
villameschik
Re: s08e02 - Per Product FAQs SUPPORT
Hi, I found the problem but I don't know how to fix it, the code works on admin of the language where the customer posted the question. I work on EN and DE how can it be solved?
-
beerbee
- Member
- Posts: 48
- Joined: Mon Oct 26, 2020 4:56 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 5 times
Re: s08e02 - Per Product FAQs SUPPORT
Hi,
try changing line 300 in admin/faq.php
from
to:
Best regards
Christoph
try changing line 300 in admin/faq.php
from
Code: Select all
$faqs_query_raw = "SELECT cf.*, cfi.* FROM clubosc_faq cf LEFT JOIN clubosc_faq_info cfi ON cf.faq_id = cfi.faq_id WHERE cfi.language_id = " . (int)$languages_id . " ORDER BY cf.faq_id DESC"; Code: Select all
$faqs_query_raw = "SELECT cf.*, cfi.* FROM clubosc_faq cf LEFT JOIN clubosc_faq_info cfi ON cf.faq_id = cfi.faq_id GROUP BY cf.faq_id ORDER BY cf.faq_id DESC";Christoph
-
beerbee
- Member
- Posts: 48
- Joined: Mon Oct 26, 2020 4:56 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 5 times
Re: s08e02 - Per Product FAQs SUPPORT
There is another little error in the script, everywhere it states it should be as intended.
Code: Select all
sID=Code: Select all
fID=-
villameschik
Re: s08e02 - Per Product FAQs SUPPORT
thanks @beerbee, now it works.beerbee wrote: ↑Sat Apr 17, 2021 6:28 pm There is another little error in the script, everywhere it statesit should beCode: Select all
sID=as intended.Code: Select all
fID=
-
beerbee
- Member
- Posts: 48
- Joined: Mon Oct 26, 2020 4:56 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 5 times
Re: s08e02 - Per Product FAQs SUPPORT
I tried but couldn't get it really working (with my limited abilities), there has to be the entry for the good page mentioned by Heatherbell, and inside ext/modules/content/product_info/ask_question.php there has to bevillameschik wrote: ↑Fri Apr 16, 2021 8:53 am Is it possible to add Maths Recaptcha to the module? Thank you
Code: Select all
$OSCOM_Hooks->call('siteWide', 'injectFormVerify');
if (tep_form_processing_is_valid()) { Code: Select all
tep_db_perform('clubosc_faq', $sql_data_array);Code: Select all
tep_redirect(tep_href_link('product_info.php', 'products_id=' . (int)$_POST['products_id']));
} This works but on error it does redirect to ask_question.php without the needed products_id parameter so this throws errors - not acceptable.
If I add an else case with a redirect to ask_question.php with parameter this works but I can't get any message about wrong math to be shown - better, but not acceptable too.
Best regards
Christoph
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: s08e02 - Per Product FAQs SUPPORT
We have had this addon (or very similar) running on our live shop for over 2 years and we have not yet had a single spammer find it so we have never put an anti-spam captcha on it - maybe spammers look for contact_us but don't look for this one?villameschik wrote: ↑Fri Apr 16, 2021 8:53 am Is it possible to add Maths Recaptcha to the module? Thank you
-
villameschik
Re: s08e02 - Per Product FAQs SUPPORT
hello now everything works, but with the file updates how are we ?, I still have not received anything, do you have any news? Thank youheatherbell wrote: ↑Tue Apr 20, 2021 1:24 pmWe have had this addon (or very similar) running on our live shop for over 2 years and we have not yet had a single spammer find it so we have never put an anti-spam captcha on it - maybe spammers look for contact_us but don't look for this one?villameschik wrote: ↑Fri Apr 16, 2021 8:53 am Is it possible to add Maths Recaptcha to the module? Thank you
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: s08e02 - Per Product FAQs SUPPORT
Burt is busy so please be patient.villameschik wrote: ↑Tue Apr 20, 2021 3:14 pm but with the file updates how are we ?, I still have not received anything, do you have any news? Thank you