Question and Answer Add-on

About Addon :

The Installation of Spurtcommerce Questions and Answers for Admin Products is for adding more information about product to let Customers know about what the product looks like, and what function it can perform. This feature also allows Customers to post questions for gathering information so that they can make an appropriate decision about purchase. When the plugin is installed, the Multi-Vendor eCommerce site becomes ready for Admin and Vendor to post questions and answers and also for Customers to ask questions about a product.

Features:

  • The Admin and vendor can post questions and answers about products in order to give more details on the uses, specifications and attributes of the product.

  • The Customers can view the questions and answers posted by the Admin on the product detail page.

  • Customers can post questions about the products, to which the admin can answer.

  • Customers can also answer questions about a product posted by another Customer, provided they have already purchased the particular product.

  • A question on the product can have multiple answers (answered by purchased customers or admin). However, Admin can enable any one as the default answer to show the display. On clicking ‘see more’, other answers will appear.

  • Admin and Vendor can enable any one answer from the multiple answers to a question on the product, from their control panel.

Question and Answer Addon Setup:

Frontend Setup - Seller Panel:

Follow these steps to set up the front end for the Question and answer addon in Spurtcommerce Seller Panel.

Step 1: Install the Addon:

Locate the Spurtcommerce addon package, typically named seller.addOns.zip.

Extract the zip file and copy the Question and answer folder into the addOns folder in your project.

projectFolder -> addOns

After this step, the structure should look like:

projectFolder -> addOns -> Question and answer

Once completed, proceed to update the configuration.

Step 2: Update the Configuration

After installing the addon, update the add-ons.constant.ts file to include the necessary plugins:

// ----------------------question and Answer --------------------------
import * as CrmQuestionAnswer from './QuestionAndAnswer/questionAnswer.constant'
// components paths
export const QuestionAnswerproductListComponents = CrmQuestionAnswer.componentLists;
// route paths
export const QuestionAnswerproductListRoutes = CrmQuestionAnswer.routePath;

Step 3: Run the Application:

To run the application with the integrated Question and answer addon, use the following command:

$ npm run large-serve

After executing this command, the addon will be available on Spurtcommerce on the designated page.

Step 4: Build the Application

Finally, to prepare the application for deployment, run the build command:

$ npm run large-build

The latest build files will then be ready to deploy to the server.

Frontend Setup – Admin Panel:

Follow these steps to set up the front end for the Question And Answer addon in Spurtcommerce Admin Panel.

Step 1: Install the Addon:

Locate the Spurtcommerce addon package, typically named admin.addOns.zip.

Extract the zip file and copy the Question And Answer folder into the addOns folder in your project.

projectFolder -> addOns

After this step, the structure should look like:

projectFolder -> addOns ->CMS->Manage Page->Question And Answer

Once completed, proceed to update the configuration.

Step 2: Update the Configuration

After installing the addon, update the add-ons.constant.ts file to include the necessary plugins:

// ----------------------Question and Answer --------------------------
import * as questionAndAnswer from './Cms/manage-page/questionAndAnswer/questionAndAnswer.constant'
// components paths
export const questionAndAnswerComponents = questionAndAnswer.questionAndAnswerComponents;
// route paths
export const questionAndAnswerComponentRoutes=questionAndAnswer.routePath;

If you wish to uninstall or remove the Question And Answer addon, replace the component paths and route paths with an empty array.

// ----------------------Question and Answer --------------------------
import * as questionAndAnswer from './Cms/manage-page/questionAndAnswer/questionAndAnswer.constant'
// components paths
export const questionAndAnswerComponents = [];
// route paths
export const questionAndAnswerComponentRoutes=[];

Step 3: Run the Application:

To run the application with the integrated Question And Answer addon, use the following command:

$ npm run large-serve

After executing this command, the addon will be available on Spurtcommerce on the designated page.

Step 4: Build the Application

Finally, to prepare the application for deployment, run the build command:

$ npm run large-build

The latest build files will then be ready to deploy to the server.

Store Setup

Follow these steps to set up the Question and Answer module on the front-end Next.js web store.

Setup Overview:

  • Install the extension

  • Update configuration

  • Integrate the module

  • Run the application

  • Build the application

Step 1: Install the Extension

Locate the Spurtcommerce addon package, typically named addOns.zip.

Extract the zip file and copy the QuestionAndAnswer folder into the addOns folder in your project.

projectFolder -> addOns

After this step, the structure should look like:

projectFolder -> addOns -> QuestionAndAnswer

Once completed, proceed to update the configuration.

Step 2: Update the Configuration

After installing the extension, update the configuration in Spurtcommerce’s addonsconfig.js as follows:

  1. Import the required line into addonsconfig.js.

           import QuestionAndAnswer from './QuestionAndAnswer/QuestionAndAnswer'

  1. Add the QuestionAndAnswer plugin to the specified object.

        export const AddonsComponent = {                                                                                                                                          QuestionAndAnswer
}  

Step 3: Run the Application

Once you have integrated the Question and Answer module, run the application using:

$ npm run dev

This command will launch Spurtcommerce with the integrated Question And Answer module visible on the specified page.

Step 4 Build the Application

To prepare the application for deployment, execute the following command:

$ npm run build

or

$ yarn run build                                                                                                                             

The latest build files will then be ready for server deployment.

Last updated