s08e02 - Per Product FAQs SUPPORT / QUESTIONS / CHAT

Open to all! Ask other shopowners for help.
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

Post by heatherbell »

Omar_one wrote: Thu Aug 18, 2022 11:48 am can you answer the customer from the admin,
No, it is all by email.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by Omar_one »

is there any way to get notifications if the customers send a question,
I know there is admin page to see questions, but some notifications will be perfect

Thank you
Omar
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by Omar_one »

@ecartz if some customer ask question in English (on Multilanguage site - English, Finnish language ) , the question not shown admin side (Finnish language)..
I am not sure if this right
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by ecartz »

It may not be right, but it's how it has always worked:

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";
You could try changing (in admin/includes/actions/faq/views/default.php line 12)

Code: Select all

  $faqs_sql = "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)$_SESSION['languages_id'] . " ORDER BY cf.faq_id DESC";
to

Code: Select all

  $faqs_sql = "SELECT cf.*, cfi.* FROM clubosc_faq cf LEFT JOIN clubosc_faq_info cfi ON cf.faq_id = cfi.faq_id AND cfi.language_id = " . (int)$_SESSION['languages_id'] . " ORDER BY cf.faq_id DESC";
I.e. change WHERE to AND.

Of course, that might break other stuff.

Or maybe

Code: Select all

  $faqs_sql = "SELECT cf.*, cfi.* FROM clubosc_faq cf INNER JOIN (SELECT * FROM clubosc_faq_info ORDER BY language_id = " . (int)$_SESSION['languages_id'] . " DESC LIMIT 1) cfi ON cf.faq_id = cfi.faq_id ORDER BY cf.faq_id DESC";
But again, I haven't tried it.
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by Omar_one »

ecartz wrote: Tue Sep 13, 2022 1:43 pm It may not be right, but it's how it has always worked:

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";
You could try changing (in admin/includes/actions/faq/views/default.php line 12)

Code: Select all

  $faqs_sql = "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)$_SESSION['languages_id'] . " ORDER BY cf.faq_id DESC";
to

Code: Select all

  $faqs_sql = "SELECT cf.*, cfi.* FROM clubosc_faq cf LEFT JOIN clubosc_faq_info cfi ON cf.faq_id = cfi.faq_id AND cfi.language_id = " . (int)$_SESSION['languages_id'] . " ORDER BY cf.faq_id DESC";
I.e. change WHERE to AND.

Of course, that might break other stuff.

Or maybe

Code: Select all

  $faqs_sql = "SELECT cf.*, cfi.* FROM clubosc_faq cf INNER JOIN (SELECT * FROM clubosc_faq_info ORDER BY language_id = " . (int)$_SESSION['languages_id'] . " DESC LIMIT 1) cfi ON cf.faq_id = cfi.faq_id ORDER BY cf.faq_id DESC";
But again, I haven't tried it.
now its shows all the FAQS but when I press on the English ones the side box not show
Capture.JPG
You do not have the required permissions to view the files attached to this post.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by ecartz »

If you changed the WHERE to AND, you might try the other one (with the INNER JOIN and subselect) instead.

Alternately, if you change your session language to English, it would probably work. In the sense that the English-only infoboxes would show (and the Finnish-only would not).
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by Omar_one »

ecartz wrote: Tue Sep 13, 2022 1:43 pm Or maybe

Code: Select all

  $faqs_sql = "SELECT cf.*, cfi.* FROM clubosc_faq cf INNER JOIN (SELECT * FROM clubosc_faq_info ORDER BY language_id = " . (int)$_SESSION['languages_id'] . " DESC LIMIT 1) cfi ON cf.faq_id = cfi.faq_id ORDER BY cf.faq_id DESC";
But again, I haven't tried it.
I just delete

Code: Select all

DESC LIMIT 1
and now it show the side box and the all FAQS ...

Thank you @ecartz
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by radhavallabh »

Hi dear;
I am still on 1.0.8.16
When I insert a FAQ from Admin side on multilanguage site in any language;
After inserting it shows up separately in each language in admin and on selecting we get no options to delete or edit it...
Can you please help fix the issue dear;
Thank you in advance;
Warm Regds./
radhavallabh
User avatar
Pierre_P
Contributor
Posts: 144
Joined: Fri Mar 12, 2021 5:06 am
Phoenix Version: v1.1.0.6
Has thanked: 21 times
Been thanked: 11 times

Re: s08e02 - Per Product FAQs SUPPORT

Post by Pierre_P »

How to with too many questions?
Its filling up the products page - all relevant questions though.

Is there a simple way to create a view all questions page perhaps for a product and limit the displayed questions to random 5 or so on the products page?
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

Post by heatherbell »

Pierre_P wrote: Thu Dec 15, 2022 6:46 am How to with too many questions?
Its filling up the products page - all relevant questions though.

Is there a simple way to create a view all questions page perhaps for a product and limit the displayed questions to random 5 or so on the products page?
Just thoughts:
Maybe use Tabs with a Tab for Product FAQs?
Maybe create an Info Page for each Product to list all Product FAQs and show a link to that?
Maybe some questions should already be answered in Product Description?
Maybe some questions should already be answered in a Product Information PDF download?


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply