docs
  1. Support And Resources
  2. Changelogs
  3. Storefront Sdks
  4. @scayle/storefront-promotions

@scayle/storefront-promotions

0.1.1

Patch Changes

  • Removed imports from indirect dependencies and rely on direct imports from @scayle/storefront-nuxt

0.1.0

Minor Changes

  • Initial release of @scayle/storefront-promotions. This package separates promotion functionality from the SCAYLE Storefront application, facilitating easier integration and maintenance. It includes the following RPC's, composable and utility functions.
    • RPC's:
      • getPromotionGiftProducts
    • Composables:
      • useApplyPromotions
      • useBasketPromotions
      • usePromotionMOVProgress
      • usePromotionGifts
    • Utilities:
      • getBasketTotalWithoutPromotions
      • getTotalReductionsByCategory
      • sortPromotionsByPriority
      • isGiftConditionMet
      • isBuyXGetYType
      • isAutomaticDiscountType
      • getVariantIds
      • isFreeGiftEligible
      • isFreeGiftBasketItem
      • isGiftInBasket
      • isPromotionGiftAddedToBasket