multivendor-pricing
v0.0.1
Published
Install-and-use pricing plugin: combo pricing, variant validation, and order-line pricing for multi-vendor marketplaces
Maintainers
Readme
multivendor-pricing
Combo pricing, variant list/selling validation, and order-line pricing via PricingClient.
Install
npm install [email protected]Register
import { registerPricingPlugin, PRICING_PLUGIN_TOKEN } from 'multivendor-pricing';
const plugin = registerPricingPlugin({
productPricePort: { resolvePromoPrice: async (input) => { /* host */ } },
salePricePort: { findActiveSaleForProduct, applyPlatformSale },
});Myownbazaar_server registers this in pricingLoader and always resolves unit prices through PricingClient.
