Question and Answer Add-on old
Last updated
Last updated
Installation of Spurtcommerce Question and Answer Add-On
This document will help you to install Question and Answer add-on to your spurtcommerce server for single vendor as well as multi vendor
you can install this Add-on through following steps
step 1: to add extension for admin
step 2:
step 3: you can easily install admin storefront with spurtcommerce provides 3 admin storefronts, built with and
Along with the above steps you need to further follow these steps below to install this Add-on for Multi-vendor platform
step 4:o add extension for multi vendor
step 5 :
step 6: you can easily install vendor storefront with spurtcommerce provides 3 vendor storefronts, built with Angular, Flutter and
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.
For setting up the API, you need to execute the following steps:
Installing an extension
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurtcommerce comes packed in a zip, whose name ends in "questionandanswer-addOn.zip". Extract the zip file, open api folder and open addon folder within that and copy the content of addon folder into the specified path
Path - <PROJECT_ROOT>/add-ons
Step 2 : Run the application
After you have completed the installation of the above mentioned steps, you can run the application and also view the changes.
Once you execute the above command, add-on file will get integrated into the backend API.
Step 3 : Make the build
These are the steps that need to be followed for generating the build.
To run the below command
Then latest built files can be deployed into the server.
These are the steps that need to be followed to do the front end admin setup.
Installing an extension
Update the configuration
Module Detail
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurcommerce comes packed in a zip, whose name ends in "qa-addOn.zip".
Extract the zip file and copy the content of admin/add-ons folder into the specified path
Path - admin/add-ons
Step 2 : Update the configuration
After the installation of the extension, you will have to update certain configurations into the default Spurtcommerce config files. For this, you need to follow the steps below.
Update Reducer Config
Import below line into the add-ons/add-ons-reducer.ts
Add the reducer into the below object
questionAnswer: fromQuestionAnswer.reducer,
After adding its looks like below
Update State Config
Import below line into the add-ons/add-ons-state.ts
Add the state into the below object
After adding its looks like below
export interface AddOnAppState {
questionAnswer: questionAnswerState;
}
Step 3 : Change the routing file(cms.routing.ts) Inside the src/theme/default/admin/cms/components/manage-content/manage-content.routing.ts
Import below line
Add these routes below the manageContentRoutes array
Add Question And Answer Tab
In src/theme/admin/cms/components/header.component.html
Below line no:30
Step 4 : Run the application
After you have integrated the Question And Answer Module into Spurtcommerce, you can use the following command to run the application.
Once you execute the above command you can view the installed module in Spurtcommerce, within the page in which you have integrated.
Step 5 : Make the build
To run the below command
Then the latest built files can be deployed into the server.
These are the steps that need to be followed to do the front end store setup.
Installing an extension
Update the configuration
Module Detail
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurcommerce comes packed in a zip, whose name ends in "qa-addOn.zip".
Extract the zip file and copy the content of store-angular/add-ons folder into the specified path
Path - store-angular/add-ons
Step 2 : Update the configuration
After the installation of the extension, you will have to update certain configurations into the default Spurtcommerce config files. For this, you need to follow the steps below.
Update Reducer Config
Import below line into the add-ons/add-ons-reducer.ts
Add the reducer into the below object
questionAndAnswer: fromQuestionAndAnswer.reducer,
After adding its looks like below
Update Effect Config
Import below line into the add-ons/add-ons.effect.ts
Add the effect into the below object
QuestionAnswerEffect
After adding its looks like below
export const ADD_ON_EFFECT = [
QuestionAnswerEffect
];
Update State Config
Import below line into the add-ons/add-ons-state.ts
Add the state into the below object
questionAndAnswer: questionAnswerState;
After adding its looks like below
export interface AddOnAppState {
questionAndAnswer: questionAnswerState;
}
Update Component Config
Import below line into the add-ons/add-ons.shared.component
Add the following components into the below object
PostQuestionComponent,
ReportAbuseComponent,
PostAnswerComponent,
ProductQuestionComponent,
ControlsQuestionsComponent,
AnswerListComponent
After adding its looks like below
export const ADD_ON_COMPONENTS = [ PostQuestionComponent, ReportAbuseComponent, PostAnswerComponent, ProductQuestionComponent, ControlsQuestionsComponent, AnswerListComponent ];
Step 3 : Module Detail
The modules pertaining to controls-question and products-question are listed below. You may use these modules, in any page of Spurtcommerce.
Also, you can find the steps below to use the modules in WidgetList and WidgetProducts in Spurtcommerce pages.
In the rating and review addon having six components.
PostQuestionComponent,
ReportAbuseComponent,
PostAnswerComponent,
ProductQuestionComponent,
ControlsQuestionsComponent,
AnswerListComponent
ControlsQuestionsComponent
Directive
In the above directive have one input field
productDetails:[]
Step 4 : Run the application
After you have integrated the WidgetList and WidgetProduct Module into Spurtcommerce, you can use the following command to run the application.
Once you execute the above command you can view the installed module in Spurtcommerce, within the page in which you have integrated.
Step 5 : Make the build
To run the below command
Then the latest built files can be deployed into the server.
For setting up the API, you need to execute the following steps:
Installing an extension
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurcommerce comes packed in a zip, whose name ends in "vendorquestionandanswer-addOn.zip".
Extract the zip file and copy the content of api folder into the specified path as given below.
Path - <PROJECT_ROOT>/add-ons
Step 2 : Run the application
After you have completed the installation of the above mentioned steps, you can run the application and also view the changes.
Once you execute the above command, add-on file will get integrated into the backend API.
Step 3 : Make the build
These are the steps that need to be followed for generating the build.
To run the below command
Then latest built files can be deployed into the server.
These are the steps that need to be followed to do the front end admin setup.
Installing an extension
Update the configuration
Module Detail
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurcommerce comes packed in a zip, whose name ends in "vendorproductquestionandanswer-addOn.zip".
Extract the zip file and copy the content of vendor/add-ons folder into the specified path
Path - vendor/add-ons
Step 2 : Update the configuration
After the installation of the extension, you will have to update certain configurations into the default Spurtcommerce config files. For this, you need to follow the steps below.
Update Reducer Config
Import below line into the add-ons/add-ons-reducer.ts
Add the reducer into the below object
questionAnswer: fromQuestionAnswer.reducer,
After adding its looks like
Update State Config
Import below line into the add-ons/add-ons-state.ts
Add the state into the below object
After adding its looks like below
export interface AddOnAppState {
questionAnswer: ProductState;
}
Update Effect Config add-ons/add-ons.effect.ts
Add the effect into the below object
ProductEffect,
After adding its looks like below
export const ADD_ON_EFFECT = [
ProductEffect
];
Update Component Config add-ons / add-ons.shared.component.ts
Add the following components into the below object
addOnQuestionsDetailComponent,
addOnQuestionComponent,
addOnProductListComponent,
After adding its looks like below
export const ADD_ON_COMPONENTS = [
addOnQuestionsDetailComponent,
addOnQuestionComponent,
addOnProductListComponent
]
Step 3 : Module Detail
The modules pertaining to productvariantlist and productvariantupdate are listed below. You may use these modules, in any page of Spurtcommerce.
Also, you can find the steps below to use the modules in Product Variant in Spurtcommerce pages.
In the ProductQuestionAndAnswer addon having two component.
VariantProductListComponent,
VariantProductAddComponent
Routing
In src/app/default/pages/component/cms/manage-content/manage-content.module
Import below line
2) Add these routes below the Routes array
For setting up the tab add this line in
src/app/default/pages/component/cms/layout/products.component.html
Below line no:37
Step 4 : Run the application
After you have integrated the Question And Answer Module into Spurtcommerce, you can use the following command to run the application.
Once you execute the above command you can view the installed module in Spurtcommerce, within the page in which you have integrated.
Step 5 : Make the build
To run the below command
Then the latest built files can be deployed into the server.
These are the steps that need to be followed to do the front end store setup.
Installing an extension
Update the configuration
Module Detail
Run the application
Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Usually spurcommerce comes packed in a zip, whose name ends in "qa-addOn.zip".
Extract the zip file and copy the content of store-angular/add-ons folder into the specified path
Path - store-angular/add-ons
Step 2 : Update the configuration
After the installation of the extension, you will have to update certain configurations into the default Spurtcommerce config files. For this, you need to follow the steps below.
Update Reducer Config
Import below line into the add-ons/add-ons-reducer.ts
Add the reducer into the below object
questionAndAnswer: fromQuestionAndAnswer.reducer,
After adding its looks like below
Update Effect Config
Import below line into the add-ons/add-ons.effect.ts
Add the effect into the below object
QuestionAnswerEffect
After adding its looks like below
export const ADD_ON_EFFECT = [
QuestionAnswerEffect
];
Update State Config
Import below line into the add-ons/add-ons-state.ts
Add the state into the below object
questionAndAnswer: questionAnswerState;
After adding its looks like below
export interface AddOnAppState {
questionAndAnswer: questionAnswerState;
}
Update Component Config
Import below line into the add-ons/add-ons.shared.component
Add the following components into the below object
PostQuestionComponent,
ReportAbuseComponent,
PostAnswerComponent,
ProductQuestionComponent,
ControlsQuestionsComponent,
AnswerListComponent
After adding its looks like below
export const ADD_ON_COMPONENTS = [ PostQuestionComponent, ReportAbuseComponent, PostAnswerComponent, ProductQuestionComponent, ControlsQuestionsComponent, AnswerListComponent ];
Step 3 : Module Detail
The modules pertaining to controls-question and products-question are listed below. You may use these modules, in any page of Spurtcommerce.
Also, you can find the steps below to use the modules in WidgetList and WidgetProducts in Spurtcommerce pages.
In the rating and review addon having six components.
PostQuestionComponent,
ReportAbuseComponent,
PostAnswerComponent,
ProductQuestionComponent,
ControlsQuestionsComponent,
AnswerListComponent
ControlsQuestionsComponent
Directive
In the above directive have one input field
productDetails:[]
Step 4 : Run the application
After you have integrated the WidgetList and WidgetProduct Module into Spurtcommerce, you can use the following command to run the application.
Once you execute the above command you can view the installed module in Spurtcommerce, within the page in which you have integrated.
Step 5 : Make the build
To run the below command
Then the latest built files can be deployed into the server.