All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.20.6 (2023-11-22)
1.20.5 (2023-11-22)
- fix regression calculating freebies discount value (6747e6d)
- may accept repeated freebies on many cumulative rules (e744f22)
1.20.4 (2023-11-22)
- properly reducing freebies values on subtotal check (5b33158)
1.20.3 (2023-11-10)
- skip kit discounts quantity multiplier when usage limit is set (4d9cb5f)
1.20.2 (2023-11-09)
- prevent early return and unresponded request on kit loop (e985439)
1.20.1 (2023-11-09)
- prevent async/await error with express route (b956759)
1.20.0 (2023-11-09)
- add option to configure usage limit (per customer) for kit discounts (f184e6e)
1.19.0 (2023-11-06)
- add option to configure cumutative freebie rules (771e671)
1.18.0 (2023-10-13)
- add optional categories filter to min subtotal for freebies (f2f64e8)
1.17.6 (2023-09-06)
- prevent error with undefined second discount rule object (438762f)
1.17.5 (2023-09-06)
- preview and subtract freebies amount to check rules min amount and percentage discount (03cb300)
1.17.4 (2023-09-02)
- replace discount with bigger one if not cumulative (59c2861)
1.17.3 (2023-09-02)
- keeping other discounts when coupon is invalidated (7fb5a0a)
1.17.2 (2023-08-25)
- increase express body parser payload limit to 2mb (5865410)
1.17.1 (2023-07-06)
- apply-discount: set different tag in second discount (57c4e34)
1.17.0 (2023-07-05)
- supporting second discount with same-rule on different amount (61d1b27)
1.16.6 (2023-07-05)
- properly validating freebies min subtotal with fixed subtotal (discount subtracted) (de2d949)
1.16.5 (2023-07-04)
- subtract already applied discounts for max discount on total (5125802)
1.16.4 (2023-07-03)
- check if discount rule customer ids is saved as object and convert to array (e0ad354)
1.16.3 (2023-07-02)
- properly calculating discount value for kit discounts per category ids (0e543a1)
1.16.2 (2023-06-30)
- properly handling kit discounts without specific ids (set all items) (553db26)
1.16.1 (2023-06-30)
- properly handling kit discounts without specific ids (8d9a8dd)
1.16.0 (2023-06-30)
- add option to deduct other discounts before freebie application (e8077cd)
- supporting kit discounts by category ids (9d2aa29)
1.15.1 (2023-06-01)
- check for customer doc number for usage limit even without customer id (3f547ac)
1.15.0 (2023-05-29)
- limit coupon usage by customer doc number if param received (981b134)
1.14.1 (2023-05-29)
- always cumulative additional open discount with min amount only (e1daec5)
1.14.0 (2023-05-29)
- check for additional open discount after utm/coupon/customer match (fix) (eae9abb)
1.13.0 (2023-05-29)
- check for additional open discount after utm/coupon/customer match (5cb9bb7)
1.12.3 (2023-05-28)
1.12.2 (2023-05-03)
- do not count cancelled order on count for max usages (601c913)
1.12.1 (2023-01-27)
1.12.0 (2022-12-13)
- support api manipulated coupons through custom config fields (d3a0f36)
1.11.2 (2022-11-04)
- max discount for same product quantity is based on item quantity (ac2210d)
1.11.1 (2022-11-04)
- properly check discounted product ids for kit discounts (f912fde)
- recommend buy together if base product listed on discount rule only (0f8baec)
1.11.0 (2022-10-28)
- Add
same_product_quantity
for progressive discounts (aa3ac73) - try to recommend buy together options when cart has 1 product only (5d9bedd)
1.10.8 (2022-09-02)
1.10.7 (2022-07-29)
- never override with freebies only (no discount) if other rule provides applicable discount (c1a0853)
1.10.6 (2022-07-29)
- freebies: send available freebie even without applying discount (set 0) due to min amount [#27] (12cb02d)
1.10.5 (2022-07-29)
- freebies: return available freebie even wiuthout applying discount due to min subtotal [#27] (25d3915)
1.10.4 (2022-07-07)
- properly set discounted items for cumulative kit discounts (2615e19)
1.10.3 (2022-07-01)
- increase express body parser payload limit (1e5b102)
1.10.2 (2021-11-19)
- apply-discount: check label with regex (i) for case insensitive discounts coupons usage limit (017404c)
1.10.1 (2021-10-21)
- deps: update @ecomplus/application-sdk to v1.15.5 firestore (fa7d1fc)
1.10.0 (2021-09-12)
- excluded-products: handle new
excluded_product_ids
config options for discount rules [#11] (3334ef6) - freebies-rules: handle new
check_product_ids
config option for freebies [#18] (7a17c63)
1.9.4 (2021-09-06)
1.9.3 (2021-07-13)
- apply-discount: properly checking kit items for lowest price and kit subtotal handlers (097ebcf)
1.9.2 (2021-07-13)
- apply-discount: fallback kit discount
product_ids
as empty array (ca8ee7b)
1.9.1 (2021-07-13)
- application: must set requierd
modules.apply_discount.enabled
(a9f9f02) - apply-discount: fix checking less price discount for kits with any items (47c4f8f)
1.9.0 (2021-04-29)
- apply-discount: better choosing default
available_extra_discount
(bf6e3cc) - freebies: optionally specify client ids for freebie items (#14) (da58733)
1.8.4 (2021-04-22)
- apply-discount: sort kit discounts by min amount after min quantity (3076e67)
1.8.3 (2021-04-05)
1.8.2 (2021-01-20)
1.8.1 (2020-11-23)
- kit-discount: prevent applying duplicated discount for same items (da86774)
1.8.0 (2020-11-12)
- discount-rules: add 'amount_field' option to select min ref (#12) (64daf0f)
- kit-discounts: add filter by customer ids (as rules) (#10) (619a654)
1.7.0 (2020-08-19)
- kit-subtotal-discount: handle 'discount_kit_subtotal' option (14382ff)
1.6.8 (2020-06-11)
- apply-discount: adding freebie/kits discount labels (bddca3b)
1.6.7 (2020-06-11)
- apply-discount: check add discount success to proceed with rule (899e14e)
1.6.6 (2020-06-11)
- apply-discount: check value before adding rule to response (bfe93a5)
1.6.5 (2020-06-09)
- apply-discount: checking required properties for success response (b6dd97e)
1.6.4 (2020-06-06)
- freebies-rules: fix subtotal to check for available freebies (ec2810d)
1.6.3 (2020-06-05)
- freebies-rules: check subtotal isntead of amount total (db321d8)
1.6.2 (2020-06-05)
- apply-discount: fix matching freebie items (833ef74)
1.6.1 (2020-06-05)
- apply-discount: skip discount for freebies if no discount value (09cfb7b)
1.6.0 (2020-06-05)
- apply-discount: accepting kits without ids (for all store) (f298798)
- freebies-rules: handling gift products (freebies) campaigns (59b8c4d)
1.5.3 (2020-05-19)
- apply-discount: considering kit discount cumulative by default (301ce62)
1.5.2 (2020-05-19)
1.5.1 (2020-05-19)
- apply-discount: handling cumulative kit discount by default (2ece0b6)
1.5.0 (2020-05-19)
- apply-discount: handling new 'check_all_items' options (1202c2a)
1.4.1 (2020-05-18)
- apply-discount: using commonjs instead of es import (c1fecb5)
1.4.0 (2020-05-18)
- apply-discount: handling new 'discount_lowest_price' option (5277ced)
1.3.0 (2020-05-15)
- campaign-products: handle 'product_ids' discount rule option (a055cda)
- case-insensitve: handle 'case_insensitive' discount rule option (7fc32fd)
- deps: replace ecomplus-app-sdk with @ecomplus/application-sdk (f714723)
1.2.0 (2020-04-10)
- apply-discount: handling product kit discounts 🎉 (5db099b)
- apply-discount: also check min amount (if any) for kit discount (bbd14c2)
- apply-discount: fix getting response data from api request (7c54174)
1.1.2 (2020-04-10)
- apply-discount: fix checking date range start and end (a429244)
- apply-discount: fix mounting url to check discount usage limit (697abda)
1.1.1 (2020-01-26)
- apply-discount: fix handling last try to match by open promotions (706f5e8)
1.1.0 (2020-01-26)
- apply-discount: set discount rule as available discount to apply (8ddf6c4)
1.0.0 (2020-01-23)
0.1.4 (2020-01-23)
- apply-discount: fix checking customer from params (0368974)
0.1.3 (2020-01-23)
- apply-discounts: fix counting orders (result.length) (3004e21)
0.1.2 (2020-01-23)
- appy-discount: handling discount rule usage limits (39f840c)
0.1.1 (2019-11-21)
0.1.0 (2019-11-21)
- apply-discount: add route and handle ecom apply discount module (3ec876a)
- web: fix express app routes (e1d2d67)