Skip to main content

Welcome to Flux

Your headless discount engine

Flux from Commerce Mind is a discount/promotion engine that can be used with any e-commerce platform. Flux handles discounts and optionally prices in a more flexible way than any e-commerce platform out there. If the discounts in your e-commerce platform is holding you back but switching platform isn't an option then Flux is for you. Or if you're looking to re-platform but the platform you're looking at doesn't meet your discount needs.

Is Flux a SaaS product?

No, you can host your own Flux instance and have full control. You can either use the API from any tech stack or use the .NET packages and run Flux inside your .NET application.

Why Flux?

Flux is built to support complex discount requirements like customer specific discounts that your customer service can offer customers when something goes wrong. It even supports calculating discounts from a historic snapshot so you can recalculate discounts when an order is updated after purchase.

  • Flexible – it doesn't force you to sync your catalog into Flux
  • Tag based – tag based conditions means that your discounts can target just about anything
  • Scalable – Flux can scale horizontally without a central bottleneck like a database
  • Discount hints – Flux returns hints like when there's a 3 for 2 discount but the cart doesn't yet have 3 items

Quick taste

public class MyCartService(IDiscountCalculator discountCalculator, ICalculationInputFactory calculationInputFactory)
{
public async Task CalculateCartDiscounts()
{
var calculationInput = await calculationInputFactory.Create(new Cart
{
// Country, currency, line items, customer data, delivery data
});

var result = await discountCalculator.Calculate(calculationInput, calculateCartRequest.DateTimeUtc);
}
}

Read the Getting Started guide to install the NuGet packages and get up and running!