Discounts Plugin (Svaraa)
Specialized discount management plugin for Svaraa with time-based promotions
Overview
The @devx-commerce/plugin-discounts-svaraa is a specialized discount management plugin tailored for Svaraa. This plugin provides discount functionality with time-based scheduling and promotional capabilities.
System Requirements
Before installing the plugin, ensure your system meets the following requirements:
- Medusa server: v2.x
- Node.js: v20 or later
Installation
Install the plugin using your preferred package manager:
# Using npm
npm install @devx-commerce/plugin-discounts-svaraa
Configuration
Add the plugin to your medusa-config.js file:
module.exports = {
plugins: [
{
resolve: `@devx-commerce/plugin-discounts-svaraa`,
options: {
// Add your configuration options here
},
},
],
}
Core Dependencies
- moment (^2.30.1) - Date and time manipulation for scheduled discounts
Features
- Time-Based Discounts - Schedule discounts with precise timing
- Promotional Management - Create and manage promotional campaigns
- Svaraa Integration - Customized for Svaraa’s specific requirements
Use Cases
This plugin is ideal for:
- Scheduled Promotions - Set up time-bound discount campaigns
- Flash Sales - Manage limited-time promotional events
- Seasonal Discounts - Automate seasonal pricing strategies