SEO
Last updated
Last updated
Installation of Spurtcommerce Product Variant Add-On
This document will help you to install Product Variant 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:
About addon
This document will help you to install SEO addon to your spurtcommerce Community Edition. This addon is a default integration in Multi-Vendor. When this plugin is installed, your eCommerce portal can be optimized for search engine with meta tags.
Features:
In Admin, under 'Manage SEO' admin can either select Product, Category, Pages or Blogs.
On selecting a particular option, the list page appears, with an option adjacent to each of the items as 'Update Meta'.
On clicking on 'Update Meta' a pop-up opens, where the admin can update the title, description and keywords.
On saving the same, the Meta tags for a particular option - either product, category, blogs or pages gets updated.
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 "seo-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>/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.
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 "seo-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
Add the reducer into the below object
blogSeo: fromBlogSeo.reducer,
categorySeo: fromCategorySeo.reducer,
pageSeo: fromPageSeo.reducer,
productSeo: fromProductSeo.reducer,
Generatesitemap: fromGenerateSiteMap.reducer
After adding its looks like below
Update State Config
1) Import below line into the add-ons/add-ons-state.ts
Add the state into the below object
blogSeo: BlogSeoState,
categorySeo: CategorySeoState,
pageSeo: PageSeoState,
productSeo: ProductSeoState,
Generatesitemap: GeneratesitemapState
After adding its looks like below
export interface AddOnAppState {
blogSeo: BlogSeoState,
categorySeo: CategorySeoState,
pageSeo: PageSeoState,
productSeo: ProductSeoState,
Generatesitemap: GeneratesitemapState
}
Step 3 : Change the routing file(cms.routing.ts)
Inside the src/theme/default/admin/cms/components/manage-seo/manage-seo.routing.ts
Import below line
2. Add these routes below the manageSeoRoutes array
manageSeoRoutes.push(cmsRouting.productSeoRoutes[0]);
manageSeoRoutes.push(cmsRouting.categorySeoRoutes[0]);
manageSeoRoutes.push(cmsRouting.blogSeoRoutes[0]);
manageSeoRoutes.push(cmsRouting.pageSeoRoutes[0]);
manageSeoRoutes.push(cmsRouting.siteMapRoutes[0]);
Inside the src/theme/default/admin/cms/components/header/header.component.html
Below line no:82
Step 4 : Run the application
After you have integrated the Blogs Module into Spurtcommerce, you can use the following command to run the application.
Import below line into the add-ons/add-ons.shared.component
Update Component Config
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.
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 Component Config
Import below line into the add-ons/add-ons.shared.component
Add the following components into the below object
1) ProductSeoComponent,
2) CategorySeoComponent,
3) PageSeoComponent,
4) BlogSeoComponent,
3. After adding its looks like below
export const ADD_ON_COMPONENTS = [
1) ProductSeoComponent,
2) CategorySeoComponent,
3) PageSeoComponent,
4) BlogSeoComponent,
]
Step 3 : Module Detail
The modules pertaining to seo 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 seo in Spurtcommerce pages.
In the seo addon having four components.
ProductSeoComponent,
CategorySeoComponent,
PageSeoComponent,
BlogSeoComponent,
ProductsSeoComponent
Directive
CategorySeocomponent
Directive
pageSeocomponent
Directive
BlogSeocomponent
Directive
Step 4 : Run the application
After you have integrated the Blogs 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.