Skip to content

Introduce promotion priorities #64

@duxonline

Description

@duxonline

https://support.bigcommerce.com/s/article/Automatic-Promotions?language=en_US#manage-promotion-priorities

This matters once we change the following function to use subTotal instead of itemsTotal:

    let runMinRule rule quantity itemsTotal =
        match rule with
        | MinRule.NoRestriction -> true
        | ItemQuantity itemQuantity -> quantity >= itemQuantity
        | PurchaseAmount purchaseAmount -> itemsTotal >= purchaseAmount

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions