Documentation ¶ Index ¶ func Evaluate(c *zip.Ctx) error func Route(router zip.Router, args ...zip.Handler) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Evaluate ¶ func Evaluate(c *zip.Ctx) error Evaluate finds applicable promotions for a given cart/order context. It queries all active automatic promotions, checks date ranges and currency constraints, then calculates discount adjustments using the associated ApplicationMethod. func Route ¶ func Route(router zip.Router, args ...zip.Handler) Types ¶ This section is empty. Source Files ¶ View all Source files handlers.go Click to show internal directories. Click to hide internal directories.