Magediary Documentation

Magediary Documentation

  • Home
  • Docs
  • Support
  • Hire Us

›Magediary extensions

Introduction

  • Getting Started

Magediary extensions

  • Product Accessories
  • Rule Based Product Tabs
  • Product Questions Answers
  • Product Scheduler
  • CLI Command Runner
  • Store Maintenance Lite
  • Coupon Codes Assistant
  • Product Labels & Badges
  • Extra Order & Product Fees
  • Payment & Shipping Hider
  • Product Inquiry & Support
  • Restrict Product

Product Questions Answers

To get this extension, go to the Product Questions Answers extension page.

Product Questions Answers

  1. Frontend
    1. Question tab on the product view page
    2. Submit a question
    3. Submit an answer
    4. My Account
  2. Backend
    1. Question
    2. Submit a new question
    3. Answers
    4. Submit a new answer
  3. Configuration
    1. General
    2. Question
    3. Answer
    4. Report Abuse Answer
    5. Question Email Notification
    6. Answer Email Notification
  4. Like, Dislike and Report Abuse
  5. GraphQL
  6. YouTube demo

Frontend

Question tab on the product view page

After setting the question tab, it will be displayed on the product view page.

question_tab

Submit a question

question_submit_form

Admin will get email notification once the new question submitted by a user.

email_new_question

Question will be displayed on the frontend immediately if Auto Approval New Question set to Yes under the Question configuration otherwise it will be displayed after the question approved by the admin.

question_submitted

Submit an answer

The user can submit a new answer of the question by click on Add your answer link below each question.

If answers already added then user can add a new answer by click on Read other answers link.

customer_submit_answer

Answer will be displayed on the frontend immediately if Auto Approval New Answer set to Yes under the Answer configuration otherwise it will be displayed after the answer approved by the admin.

Admin will get email notification once the new answer submitted by the user.

new_answer_admin_mail

Customer will get email notification once answer has been approved. Customer will get email notification immediately if Auto Approval New Answer set to Yes.

email_new_answer_customer

Approved answers will show up on the frontend under the question.

answer_submit

By default most recent answer shows under the each question.

To read all answers, click on Read other answers link, it will show all answers along with the submit a new answer form.

answer_list

My Account

customer_account

My Questions and Answers section under My Account will show all questions and answers submitted by the logged in user.

From this section, customer can check history of submitted questions and answers.

Customer can click on Read answers link to show all posted answers of the question.

customer_account_all

Backend

Question

Log into the Magento Admin panel and go to Marketing ⟶ Product Questions by Magediary ⟶ Question.

question_grid

Please note that during the initial setup this grid will be empty. The values are displayed once the question submitted by users or added by the admin.

ID specifies the unique id of the history.

Detail specifies the detailed description of the question.

Status specifies the status of the question. There are three possible values Pending, Approved and Not Approved. Questions with Approved status only will be visible on the frontend.

SKU specifies the SKUs of the product. It should be more than one SKU with comma separated if the question assigned to multiple products by the admin.

Product Name specifies the name of the product. It should be more than one name with comma separated if the question assigned to multiple products by the admin.

Created At specifies the date and time of action of the question added.

Updated At specifies the date and time of action of the question updated.

Action admin can Edit or Delete the question from this dropdown.

Submit a new question

By click on New Question button, admin can add a new question

add_new_question_info

From Add Product, admin can add as many products as want to assign this question. On Save Question, it will show up in the questions grid.

question_save_grid

Answers

Log into the Magento Admin panel and go to Marketing ⟶ Product Questions by Magediary ⟶ Answer.

answer_grid

Please note that during the initial setup this grid will be empty. The values are displayed once the answer submitted by users or the admin.

ID specifies the unique id of the history.

Answer specifies the detailed description of the answer.

Status specifies the status of the answer. There are three possible values Pending, Approved and Not Approved. Answers with Approved status only will be visible on the frontend.

Question specifies the detailed description of a question of the answer.

SKU specifies the SKU of the product. It should be more than one SKU with comma separated if a question of the answer assigned to multiple products by the admin. Product Name specifies the name of the product. It should be more than one name with comma separated if a question of the answer assigned to multiple products by the admin.

Created At specifies the date and time of action of the question added.

Updated At specifies the date and time of action of the question updated. Action admin can Edit or Delete the question from this dropdown.

Submit a new answer

By click on Add Answer button, admin can add a new answer for a submitted question

add_new_answer_select_question

First select a question from the list of which you want to add an answer.

After select the question, fill up the form and Save Answer

add_new_answer_info

Newly added answer will show up in the answer grid

add_new_answer_grid

Submitted question and answer show up on the frontend for all products assigned to the question.

add_new_answer_frontend

Configuration

After logging into the Magento Admin panel, navigate to the following path to access configuration.

Stores ⟶ Configuration ⟶ Magediary ⟶ Product Question

General

config_general

Enabled activates product question block, which is displayed on the front-end product view and my account page.

Tab Title lets you specify the title of a tab which will be displayed on the frontend.

Question

This section helps you to set up multiple parameters for question form.

config_question

Show Ask a Question Form allows you to display ask a question form on the product view page under the question tab.

  • By default, this is set to No, so only questions added by Admin will appear in the frontend.

Allow Guests to Write Questions lets you decide whether a guest user can submit a question or not. If set to No, then it will require to login or create an account for guest users. So only registered customers can submit a question.

Auto Approval New Question lets you decide whether a question should be displayed directly in the frontend or not. If set to No, then the question will be displayed on the frontend only after approval from the admin.

Show Nickname Field provides an option for display of nickname field in the question form.

Required Nickname provides an option to indicate whether the nickname field required or not in the question form. If set to No, then the customer can submit a form without entering a nickname.

Show Email Field provides an option to display email field in the question form.

Required Email provides an option to indicate whether the email field required or not in the question form. If set to No, then the customer can submit a form without entering an email.

Answer

This section helps you to set up multiple parameters for answer form.

config_answer

Show an Answer Form allows you to display an answer form on the frontend under show all answers popup.

Allow Guests to Write Answer lets you decide whether a guest user can submit an answer or not. If set to No, then it will require to login or create an account for guest users. So only registered customers can submit an answer.

Auto Approval New Answer lets you decide whether an answer should be displayed directly in the frontend or not. If set to No, then the answer will be displayed on the frontend only after approval from the admin.

Show Nickname Field provides an option to whether display nickname field in the answer form.

Required Nickname provides an option to whether nickname field required or not in the answer form. If set to No, then customer can submit a form without entering a nickname.

Show Email Field provides an option to whether display email field in the answer form.

Required Email provides an option to whether email field required or not in the answer form. If set to No, then customer can submit a form without entering an email.

Show Certified Buyer Label provides an option to whether display certified buyer label in the answer form or not.

  • If customer submitted an answer who also purchased the product then this label will display in the form list.

Enable Like provides an option to whether display like in the answer form.

Enable Dislike provides an option to whether display dislike in the answer form.

question_label_actions

Report Abuse Answer

This section helps you to set up multiple parameters for report abuse of answer.

config_report_abuse

Enabled provides an option to whether display abuse option below the answer or not.

question_repot_abuse_highlight

Send Emails To admin will get email notification to this address when user click on abuse link to the answer.

Email Sender provides an option to set default email sender.

Email Template helps you to set custom email template if you want to modify the default email template. This email template is used when user report abuse to the answer.

Question Email Notification

This section lets you configure multiple parameters.

config_question_email

Enabled provides an option to whether send an email to admin on submit a new question or not.

Send Emails To admin will get email notification to this address when user submit a new question.

Email Sender provides an option to set default email sender.

Email Template helps you to set custom email template if you want to modify the default email template. This email template is used when user submit a new question.

Answer Email Notification

This section lets you configure multiple parameters.

config_answer_email

Customer Notification Enabled provides an option to whether send an email to the customer who submitted the question or not on submit the answer.

The customer who submitted the answer will only get an email when answer has been approved.

Customer Email Sender provides an option to set default email sender.

Customer Email Template helps you to set custom email template if you want to modify the default email template. This email template is used when user submit a new answer.

Send Emails To admin will get email notification to the admin when user submit a new answer.

Admin Email Sender provides an option to set default email sender.

Admin Email Template helps you to set custom email template if you want to modify the default email template. This email template is used when user submit a new answer.

Like, Dislike and Report Abuse

Customer can like or dislike the answer.

like_dislike

Customer can report an answer as abuse by click on Report Abuse link below each answer.

report_abuse

Admin will receive an email notification upon user report answer an abuse.

email_report_abuse

To check the activity log, log into the Magento Admin panel and go to Marketing ⟶ Product Questions by Magediary ⟶ Activity Log.

activity_grid

Please note that during the initial setup this grid will be empty. The values are displayed once the customer like, dislike or report abuse for the submitted answer of a question.

ID specifies the unique id of the history.

Product specifies the name of the product.

SKU specifies the SKU of the product.

Activity Type specifies type of the activity. There are three possible values Like, Dislike and Abuse.

Created At specifies the date and time of action of the customer activity.

GraphQL

Please contact our Support to get the GraphQL extension of this module.

questions query

Syntax

questions (
   productId: Int
   filter: QuestionsFilterInput
   pageSize: Int = 20
   currentPage: Int = 1
   allQuestions: Boolean
 ): QuestionsOutput

Output attributes

The object contains array of questions with the most recent answer of the question.

total_count: Int
total_pages: Int
items: {
   question_uid: ID!
   product_id: Int
   customer_id: Int
   type: Int
   nickname: String
   email: String
   detail: String
   status: Int
   created_at: String
   updated_at: String
   answer: [Answer]
}

answers query

Syntax

answers (
   questionUid: ID!
   filter: AnswersFilterInput
   pageSize: Int = 20
   currentPage: Int = 1
   sort: [String]
   sortFiled: String = "created_at"
   allAnswers: Boolean
): AnswersOutput

Output attributes

The object contains array of answers.

total_count: Int
total_pages: Int
items: {
   answer_uid: ID!
   question_uid: ID
   product_id: Int
   customer_id: Int
   type: Int
   nickname: String
   email: String
   detail: String
   status: Int
   is_certified: Int
   is_anonymous: Int
   likes: Int
   dislikes: Int
   abuses: Int
   created_at: String
   updated_at: String
}

submitQuestion mutation

Syntax

submitQuestion(input: SubmitQuestionInput): SubmitQuestionOutput

Input attributes

product_id: Int!
detail: String!
nickname: String
email: String

Output attributes

The object contains the success message.

message: String

submitAnswer mutation

Syntax

submitAnswer(input: SubmitAnswerInput): SubmitAnswerOutput

Input attributes

question_uid: ID!
product_id: Int!
detail: String!
nickname: String
email: String
is_anonymous: Boolean

Output attributes

The object contains the success message depends on the 'Auto Approval New Answer' backend configuration.

message: String

triggerAnswer mutation

Syntax

triggerAnswer(input: TriggerAnswerInput): TriggerAnswerOutput

Input attributes

answer_uid: ID!
type: TriggerAnswerInputTypes!
product_id: Int

Output attributes

The object contains total number of likes, dislike and returns abuse as boolean on successfully reported.

likes: Int
dislikes: Int
abuse: Boolean

YouTube demo

How it works - Demo

  • https://www.youtube.com/watch?v=GrpJoIXeo1k
← Rule Based Product TabsProduct Scheduler →
  • Frontend
    • Question tab on the product view page
    • Submit a question
    • Submit an answer
    • My Account
  • Backend
    • Question
    • Submit a new question
    • Answers
    • Submit a new answer
  • Configuration
    • General
    • Question
    • Answer
    • Report Abuse Answer
    • Question Email Notification
    • Answer Email Notification
  • Like, Dislike and Report Abuse
  • GraphQL
    • questions query
    • answers query
    • submitQuestion mutation
    • submitAnswer mutation
    • triggerAnswer mutation
  • YouTube demo
Magediary
Extensions
Product AccessoriesRule Based Product TabsProduct Questions AnswersProduct SchedulerCLI Command RunnerStore Maintenance LiteCoupon Codes AssistantProduct Labels & BadgesExtra Order & Product FeesPayment & Shipping HiderProduct Inquiry & SupportRestrict Product
Help
SupportHire Us
Copyright © 2022 Magediary