Quotation Request Add-on
Installation of Spurtcommerce Quotation Request Add-On
This document will help you to install Quotation Request add-on to your spurtcommerce server for single vendor as well as multi vendor
you can install this Add-on through following steps
step 3: you can easily install admin storefront with store setup. spurtcommerce provides 3 admin storefronts, built with Angular, Flutter and React.
Along with the above steps you need to further follow these steps below to install this Add-on for Multi-vendor platform
step 4: Setup an API (Step By Step) to add extension for multi vendor
step 6: you can easily install vendor storefront with store setup. spurtcommerce provides 3 vendor storefronts, built with Angular, Flutter and React.
About Add-on
The Installation of Spurtcommerce Quotation request addon will enable the feature of accepting quotation requests from the end customer. When the plugin is installed, the multi-Vendor eCommerce site becomes ready for the admin to enable quotation requests for each product separately. On enabling the quotation request, the customer in the storefront can raise quotation request for a particular product.
Features:
• The quotation request can be enabled or configured for each product separately from the product list page.
• On enabling the toggle, the product detail page will have the option of 'Request a Quote'.
• The Customer can click on the 'Request a Quote'and fill in the form and submit to request for a quotation.
• On submission, the admin and both admin and vendor in Multi vendor platform will receive a the quotation request, which they can view from the quotation requests list.
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 "productquotation-addOn.zip". Extract the zip file and copy the content of api folder into the specified path
Path - <PROJECT_ROOT>/addon
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.
$ npm start serve
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
$ npm run build
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
Make sure your device is running on the device or simulator,or it will not show up in the list
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 ".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
- 1.Import below line into the add-ons/add-ons-reducer.ts
import * as fromQuotationRequest from
'./sales/manage-orders/quotationRequest/core/reducer/quotationRequest.reducer'
Add the reducer into the below object
quotation: fromQuotationRequest.reducer
- 1.After adding its looks like below
export const AddOnReducers: ActionReducerMap<State> = {
quotation: fromQuotationRequest.reducer
};
Update State Config
- 1.Import below line into the add-ons/add-ons-state.ts
import { QuotationRequestState } from
'./sales/manage-orders/quotationRequest/core/reducer/quotationRequest.state';
2. Add the state into the below object
quotation:QuotationRequestState
3. After adding its looks like below
export interface AddOnAppState {
quotation:QuotationRequestState
}
Step 3 : Change the routing file(sales.routing.ts)
Inside the src/theme/default/admin/sales/components/manage-orders/manage-orders.routing.ts
- 1.Import below line
import * as SalesInventoryRoutes from
'../../../../../../../add-ons/sales/sales.routing';
2. Add these routes below the cmsRoutes array
manageOrderRoutes.forEach(data => {
if (data) {
manageOrderRoutes.push(SalesInventoryRoutes.quotationRequestRoutes[0]);
}
});
Inside the src/theme/defalut/admin/sales/components/header.component.html
Below line no:34
<li>
<a href="javascript:void(0)" [routerLink]="['/sales/manage-orders/quotation_request']" [routerLinkActive]="'active'"> Quotation request </a>
</li>
Step 4 : Run the application
After you have integrated the Quotation Request Module into Spurtcommerce, you can use the following command to run the application.
npm run large-serve
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
npm run large-build
Then the latest built files can be deployed into the server.
Angular
React
Flutter
These are the steps that need to be followed to do the front end admin setup.
● Installing an extension
● Update the configuration
● Module Detail