Product Variant Addon
About Addon:
The Installation of Spurtcommerce Product Variant add-on will enable the feature of adding variant master When the plugin is installed, the multi-Vendor eCommerce site becomes ready for the admin and vendors to add variants under products and get them displayed for the visitors to view different variants in the same product.
Features:
The admin can create a master of variants. E.g., Colour or Size.
The admin can then add different variant values under the variant name. E.g., Under colour, they can add different values like red, green, blue, etc.
When the admin is listing a main product, they can choose different variants available in the masters to list different variants available for the same product.
While listing variants, they can specify different pricing for different variants and also specify the inventory (quantity stock available) for each variant separately.
For each variant under the same product, the SKU prefix followed by a unique number gets allocated. So, each variant under a product will have a unique SKU.
When the Vendor is listing a main product, they can choose different variants available in the variants master list created by the admin, in order to list different variants available for the same product.
While listing variants, they can specify different pricing for different variants and also specify the inventory (quantity stock available) for each variant separately.
Product Variant Addon Setup:
Frontend Setup - Seller Panel:
Follow these steps to set up the front end for the Product Variant 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 ProductVariant folder into the addOns folder in your project.
projectFolder -> addOns
After this step, the structure should look like:
projectFolder -> addOns ->marketing -> ProductVariant
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:
If you wish to uninstall or remove the Product Variant addon, replace the component paths and route paths with an empty array.
Step 3: Run the Application:
To run the application with the integrated Product Variant addon, use the following command:
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:
The latest build files will then be ready to deploy to the server
Variant Inventory Addon Setup:
Frontend Setup - Seller Panel:
Follow these steps to set up the front end for the Variant Inventory 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 VarientInventory folder into the addOns folder in your project.
projectFolder -> addOns
After this step, the structure should look like:
projectFolder -> addOns -> VarientInventory
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:
If you wish to uninstall or remove the Variant Inventory addon, replace the component paths and route paths with an empty array.
Step 3: Run the Application:
To run the application with the integrated Variant Inventory addon, use the following command:
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:
The latest build files will then be ready to deploy to the server.
Product Variant Addon Setup:
Frontend Setup – Admin Panel:
Follow these steps to set up the front end for the Product Variant 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 Product Variant folder into the addOns folder in your project.
projectFolder -> addOns
After this step, the structure should look like:
projectFolder -> addOns ->Marketplace->Product Configuration-> Product Variant->Variant
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:
If you wish to uninstall or remove the Product Variant addon, replace the component paths and route paths with an empty array.
Step 3: Run the Application:
To run the application with the integrated Product Variant addon, use the following command:
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:
The latest build files will then be ready to deploy to the server.
Variant Filter Addon Setup:
Frontend Setup – Admin Panel:
Follow these steps to set up the front end for the Variant Filter 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 Variant Filter folder into the addOns folder in your project.
projectFolder -> addOns
After this step, the structure should look like:
projectFolder -> addOns ->Marketplace->Product Configuration->Variant Filter->Filter
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:
If you wish to uninstall or remove the Variant Filter addon, replace the component paths and route paths with an empty array.
Step 3: Run the Application:
To run the application with the integrated Variant Filter addon, use the following command:
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:
The latest build files will then be ready to deploy to the server.
Store Setup
Follow these steps to set up the Product Variants 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 Variant folder into the addOns folder in your project.
projectFolder -> addOns
After this step, the structure should look like:
projectFolder -> addOns -> Variant
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:
Import the required line into addonsconfig.js.
Add the ProductVariant plugin to the specified object.
Add the following components to the AddonsComponent object:
ProductVariant
VariantFilter
After making these updates, the AddonsComponent object should reflect the new components.
Step 3: Module Details
The Product Variants module includes the following components that you can utilize in any page within Spurtcommerce by sending the required product data as props:
VariantFilter Component
Note: Use the VariantFilter component by passing the product data as a prop:
Step 4: Run the Application
Once you have integrated the Product Variants module, run the application using:
This command will launch Spurtcommerce with the integrated Product Variants module visible on the specified page.
Step 5: Build the Application
To prepare the application for deployment, execute the following command:
or
The latest build files will then be ready for server deployment.
Last updated