@medusajs/dashboard 2.22.4 → 2.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1668 -0
- package/dist/{add-campaign-promotions-4IS2DZDR.mjs → add-campaign-promotions-MOYHZ7R6.mjs} +2 -2
- package/dist/{add-locales-ZIOTFU4W.mjs → add-locales-4TF5MQEO.mjs} +3 -3
- package/dist/{api-key-management-list-72FGNWLN.mjs → api-key-management-list-DSY44XOD.mjs} +2 -2
- package/dist/app.js +566 -21
- package/dist/app.mjs +1 -1
- package/dist/{campaign-detail-I3VAQGCD.mjs → campaign-detail-CVQKALST.mjs} +2 -2
- package/dist/{campaign-list-QHZTX5N4.mjs → campaign-list-W6USHL4F.mjs} +2 -2
- package/dist/{category-detail-ZWGZV3GK.mjs → category-detail-OX7UOEPP.mjs} +2 -2
- package/dist/{category-list-7OWX64KZ.mjs → category-list-RKXFUVBY.mjs} +2 -2
- package/dist/{category-products-JFOCVVES.mjs → category-products-366JZ75Z.mjs} +2 -2
- package/dist/{chunk-X6NC2PCL.mjs → chunk-ADRLL74C.mjs} +1 -1
- package/dist/{chunk-ZOZT3BKD.mjs → chunk-CO3CSPIC.mjs} +1 -1
- package/dist/{chunk-ODGLX5SI.mjs → chunk-CWUDCK52.mjs} +1 -1
- package/dist/{chunk-LUN2NQQ6.mjs → chunk-CXFGIOFH.mjs} +1 -1
- package/dist/{chunk-6DQ5276V.mjs → chunk-HAUFNAKB.mjs} +3 -3
- package/dist/{chunk-YA6D52TX.mjs → chunk-HCY46OCD.mjs} +1 -1
- package/dist/{chunk-6NO4U2MM.mjs → chunk-TYDUNOYT.mjs} +1 -1
- package/dist/{chunk-DUUYIEXV.mjs → chunk-UAADDZQ3.mjs} +496 -76
- package/dist/{chunk-KGNC2OCS.mjs → chunk-YGO2NC6V.mjs} +1 -1
- package/dist/{chunk-MHSYOFRJ.mjs → chunk-YOMBWDNH.mjs} +1 -1
- package/dist/{collection-add-products-6JXRFJ4G.mjs → collection-add-products-WJVNV4HM.mjs} +2 -2
- package/dist/{collection-detail-Y6BHSCXG.mjs → collection-detail-JR7J2VOJ.mjs} +2 -2
- package/dist/{collection-list-HDIRXKLE.mjs → collection-list-CUPGMCFO.mjs} +2 -2
- package/dist/{customer-detail-LOE3MY3G.mjs → customer-detail-LAFCPQTR.mjs} +2 -2
- package/dist/{customer-export-OOZLASA3.mjs → customer-export-BT67OK6G.mjs} +1 -1
- package/dist/{customer-group-add-customers-J63FTIJD.mjs → customer-group-add-customers-LEKBQ3KO.mjs} +2 -2
- package/dist/{customer-group-detail-HPJDH5RR.mjs → customer-group-detail-ZEAZLKCG.mjs} +2 -2
- package/dist/{customer-list-XDUW2EXI.mjs → customer-list-YJBIU3V6.mjs} +2 -2
- package/dist/{customers-add-customer-group-YIO75DAW.mjs → customers-add-customer-group-L4SQAGEY.mjs} +2 -2
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/{inventory-detail-BYJSRM5D.mjs → inventory-detail-3DZG7JPD.mjs} +2 -2
- package/dist/{inventory-export-K4QKP2SO.mjs → inventory-export-4VVMMFGL.mjs} +1 -1
- package/dist/{inventory-list-MDZY6UUA.mjs → inventory-list-6FEBQQMB.mjs} +2 -2
- package/dist/{location-fulfillment-providers-V4BVPBVH.mjs → location-fulfillment-providers-NHSCQYSB.mjs} +2 -2
- package/dist/{location-service-zone-create-OZNB62US.mjs → location-service-zone-create-CT3ZPGW7.mjs} +3 -3
- package/dist/{location-service-zone-manage-areas-Y5GG6I5W.mjs → location-service-zone-manage-areas-5OZSVN6X.mjs} +3 -3
- package/dist/{order-create-claim-B4UQWQU5.mjs → order-create-claim-WG372Z4M.mjs} +2 -2
- package/dist/{order-create-edit-75Z7SB47.mjs → order-create-edit-Z76JCWSY.mjs} +2 -2
- package/dist/{order-create-exchange-YROMSPRA.mjs → order-create-exchange-YCG4IGFV.mjs} +2 -2
- package/dist/{order-create-return-XDVZDBOY.mjs → order-create-return-DHCISEN6.mjs} +2 -2
- package/dist/{order-export-HFIACWTO.mjs → order-export-R2LCBB2E.mjs} +1 -1
- package/dist/{order-list-AFZF7LDJ.mjs → order-list-QIS5CQ5W.mjs} +2 -2
- package/dist/{price-list-configuration-L4DVL3L2.mjs → price-list-configuration-5FDQXKLJ.mjs} +3 -3
- package/dist/{price-list-create-JLPFUX72.mjs → price-list-create-6UR4WXGD.mjs} +3 -3
- package/dist/{price-list-detail-TRZ5SW55.mjs → price-list-detail-C55YKIHK.mjs} +2 -2
- package/dist/{price-list-list-LRMQZOQY.mjs → price-list-list-AJWKDJHG.mjs} +2 -2
- package/dist/{price-list-prices-add-YUCQE2CY.mjs → price-list-prices-add-Z5WQUPDN.mjs} +2 -2
- package/dist/{product-attributes-HEJKFIWK.mjs → product-attributes-6A7AKIXH.mjs} +1 -1
- package/dist/{product-create-75A5WK7S.mjs → product-create-ZKCFJHP6.mjs} +1 -1
- package/dist/{product-detail-FI6SFWJD.mjs → product-detail-UMAO2TNN.mjs} +2 -2
- package/dist/{product-edit-RFHTL3MQ.mjs → product-edit-OZBFHQ7P.mjs} +1 -1
- package/dist/{product-export-4EPIPWU7.mjs → product-export-B7MVYAGR.mjs} +1 -1
- package/dist/{product-image-variants-edit-VQW6WXD6.mjs → product-image-variants-edit-Q723QKNL.mjs} +2 -2
- package/dist/{product-list-OL64CKID.mjs → product-list-PKRCZCCL.mjs} +2 -2
- package/dist/{product-options-manage-VHGM7NLR.mjs → product-options-manage-KOJWADBS.mjs} +2 -2
- package/dist/{product-organization-KWPYEBPB.mjs → product-organization-P7V5YZIA.mjs} +1 -1
- package/dist/{product-tag-detail-ADECGGCK.mjs → product-tag-detail-CNBXBF76.mjs} +2 -2
- package/dist/{product-tag-list-D67D2MGE.mjs → product-tag-list-EUUS662S.mjs} +2 -2
- package/dist/{product-type-detail-WUMMDJ2C.mjs → product-type-detail-5JJBZM3C.mjs} +2 -2
- package/dist/{product-type-list-6RL6BGIK.mjs → product-type-list-IEQGAYCG.mjs} +2 -2
- package/dist/{product-variant-detail-NEDAYLTV.mjs → product-variant-detail-EXGUAGNY.mjs} +2 -2
- package/dist/{promotion-create-BKSMDKVU.mjs → promotion-create-FFHY43AY.mjs} +66 -2
- package/dist/{promotion-edit-details-IXYJMC5G.mjs → promotion-edit-details-3L6H7A5Z.mjs} +65 -4
- package/dist/{promotion-list-4BSBAUKT.mjs → promotion-list-GZIM77EC.mjs} +2 -2
- package/dist/{region-add-countries-4KKOHLXX.mjs → region-add-countries-7XQT2MTT.mjs} +2 -2
- package/dist/{region-create-LTMEUC37.mjs → region-create-VUPBCDRL.mjs} +2 -2
- package/dist/{region-detail-CSXOQG7A.mjs → region-detail-DFHJAA6C.mjs} +2 -2
- package/dist/{region-list-Y44IXBPZ.mjs → region-list-I2QFN5XB.mjs} +2 -2
- package/dist/{reservation-list-QVKOJRTU.mjs → reservation-list-TIZ73DVJ.mjs} +2 -2
- package/dist/{role-add-users-73A3T7YW.mjs → role-add-users-IOL6DHZ2.mjs} +2 -2
- package/dist/{role-detail-NGSCD3T5.mjs → role-detail-PJHSL7SA.mjs} +2 -2
- package/dist/{sales-channel-add-products-VCIVQXLD.mjs → sales-channel-add-products-BZIK5GGS.mjs} +2 -2
- package/dist/{sales-channel-detail-HCF2NPCI.mjs → sales-channel-detail-YJPXBRCQ.mjs} +2 -2
- package/dist/{shipping-option-type-list-TUJNPQZ5.mjs → shipping-option-type-list-5I4TY2RU.mjs} +2 -2
- package/dist/{shipping-profiles-list-47N2HJJS.mjs → shipping-profiles-list-IL2IXW6E.mjs} +2 -2
- package/dist/{store-add-currencies-RDV436R7.mjs → store-add-currencies-DISZFFBJ.mjs} +2 -2
- package/dist/{store-add-locales-4MSC7SVZ.mjs → store-add-locales-ASP4AZ53.mjs} +3 -3
- package/dist/{store-detail-OKXBO5J5.mjs → store-detail-KM2ICJO4.mjs} +2 -2
- package/dist/{tax-region-detail-WYH6P2PB.mjs → tax-region-detail-EZJXUOTY.mjs} +5 -5
- package/dist/{tax-region-province-detail-JDQVRGUF.mjs → tax-region-province-detail-SYZB7KDW.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-KSIIWIYU.mjs → tax-region-tax-override-create-THVCBH5F.mjs} +3 -3
- package/dist/{tax-region-tax-override-edit-QWM6VJA5.mjs → tax-region-tax-override-edit-FWFMVWG6.mjs} +4 -4
- package/dist/{user-invite-TSVRT52I.mjs → user-invite-GUYNRH6V.mjs} +2 -2
- package/dist/{workflow-execution-list-YAFEJKIJ.mjs → workflow-execution-list-7PQHT65J.mjs} +2 -2
- package/package.json +13 -13
- package/src/components/table/data-table/data-table-filter/date-filter.tsx +1 -1
- package/src/i18n/translations/$schema.json +42 -0
- package/src/i18n/translations/ar.json +12 -0
- package/src/i18n/translations/bg.json +12 -0
- package/src/i18n/translations/bs.json +12 -0
- package/src/i18n/translations/cs.json +12 -0
- package/src/i18n/translations/de.json +12 -0
- package/src/i18n/translations/el.json +12 -0
- package/src/i18n/translations/en.json +12 -0
- package/src/i18n/translations/enGB.json +12 -0
- package/src/i18n/translations/es.json +12 -0
- package/src/i18n/translations/fa.json +12 -0
- package/src/i18n/translations/fi.json +12 -0
- package/src/i18n/translations/fr.json +12 -0
- package/src/i18n/translations/he.json +12 -0
- package/src/i18n/translations/hr.json +12 -0
- package/src/i18n/translations/hu.json +12 -0
- package/src/i18n/translations/id.json +12 -0
- package/src/i18n/translations/it.json +12 -0
- package/src/i18n/translations/ja.json +12 -0
- package/src/i18n/translations/ko.json +12 -0
- package/src/i18n/translations/lt.json +12 -0
- package/src/i18n/translations/mk.json +12 -0
- package/src/i18n/translations/mn.json +12 -0
- package/src/i18n/translations/nl.json +12 -0
- package/src/i18n/translations/pl.json +12 -0
- package/src/i18n/translations/ptBR.json +12 -0
- package/src/i18n/translations/ptPT.json +12 -0
- package/src/i18n/translations/ro.json +12 -0
- package/src/i18n/translations/ru.json +12 -0
- package/src/i18n/translations/sv.json +12 -0
- package/src/i18n/translations/th.json +12 -0
- package/src/i18n/translations/tr.json +12 -0
- package/src/i18n/translations/uk.json +12 -0
- package/src/i18n/translations/vi.json +12 -0
- package/src/i18n/translations/zhCN.json +12 -0
- package/src/i18n/translations/zhTW.json +12 -0
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +57 -0
- package/src/routes/promotions/promotion-create/components/create-promotion-form/form-schema.ts +3 -0
- package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +56 -0
|
@@ -2274,6 +2274,8 @@
|
|
|
2274
2274
|
"method": "Арга",
|
|
2275
2275
|
"allocation": "Хуваарилалт",
|
|
2276
2276
|
"allocationTooltip": "Each нь тоо хэмжээний хязгаарыг зүйл бүрт хэрэгжүүлдэг бол Once нь тоо хэмжээний хязгаарыг бүх тэргэнцэрт нэг удаа хэрэгжүүлдэг",
|
|
2277
|
+
"targetSelectionStrategy": "Хөнгөлөлт авах зүйлүүд",
|
|
2278
|
+
"targetSelectionStrategyTooltip": "Сагсны тохирох зүйлүүдийн аль нь хөнгөлөлт авах вэ",
|
|
2277
2279
|
"addCondition": "Нөхцөл нэмэх",
|
|
2278
2280
|
"clearAll": "Бүгдийг арилгах",
|
|
2279
2281
|
"taxInclusive": "Татвар багтсан",
|
|
@@ -2425,6 +2427,16 @@
|
|
|
2425
2427
|
"description": "Утгыг хязгаарлагдмал тооны бараанд хэрэглэнэ"
|
|
2426
2428
|
}
|
|
2427
2429
|
},
|
|
2430
|
+
"target_selection_strategy": {
|
|
2431
|
+
"most_expensive_first": {
|
|
2432
|
+
"title": "Хамгийн үнэтэй нь эхлээд",
|
|
2433
|
+
"description": "Сагсны хамгийн үнэтэй тохирох зүйлүүдэд хөнгөлөлт хэрэгжүүлнэ"
|
|
2434
|
+
},
|
|
2435
|
+
"cheapest_first": {
|
|
2436
|
+
"title": "Хамгийн хямд нь эхлээд",
|
|
2437
|
+
"description": "Сагсны хамгийн хямд тохирох зүйлүүдэд хөнгөлөлт хэрэгжүүлнэ"
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2428
2440
|
"code": {
|
|
2429
2441
|
"title": "Код",
|
|
2430
2442
|
"description": "Үйлчлүүлэгчид төлбөрийн үед оруулах код."
|
|
@@ -2273,6 +2273,8 @@
|
|
|
2273
2273
|
"method": "Methode",
|
|
2274
2274
|
"allocation": "Toewijzing",
|
|
2275
2275
|
"allocationTooltip": "Elk handhaaft de hoeveelheidsbeperking per artikel, terwijl Eénmalig de hoeveelheidsbeperking voor de gehele winkelwagen handhaaft",
|
|
2276
|
+
"targetSelectionStrategy": "Artikelen met korting",
|
|
2277
|
+
"targetSelectionStrategyTooltip": "Welke in aanmerking komende artikelen in de winkelwagen de korting ontvangen",
|
|
2276
2278
|
"addCondition": "Voorwaarde toevoegen",
|
|
2277
2279
|
"clearAll": "Alles wissen",
|
|
2278
2280
|
"taxInclusive": "Belasting inclusief",
|
|
@@ -2424,6 +2426,16 @@
|
|
|
2424
2426
|
"description": "Past waarde toe op een beperkt aantal artikelen"
|
|
2425
2427
|
}
|
|
2426
2428
|
},
|
|
2429
|
+
"target_selection_strategy": {
|
|
2430
|
+
"most_expensive_first": {
|
|
2431
|
+
"title": "Duurste eerst",
|
|
2432
|
+
"description": "Past korting toe op de duurste in aanmerking komende artikelen in de winkelwagen"
|
|
2433
|
+
},
|
|
2434
|
+
"cheapest_first": {
|
|
2435
|
+
"title": "Goedkoopste eerst",
|
|
2436
|
+
"description": "Past korting toe op de goedkoopste in aanmerking komende artikelen in de winkelwagen"
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2427
2439
|
"code": {
|
|
2428
2440
|
"title": "Code",
|
|
2429
2441
|
"description": "De code die uw klanten tijdens het afrekenen zullen invoeren."
|
|
@@ -2520,6 +2520,8 @@
|
|
|
2520
2520
|
"method": "Metoda",
|
|
2521
2521
|
"allocation": "Przydział",
|
|
2522
2522
|
"allocationTooltip": "„Każdy” egzekwuje limit ilości dla każdej pozycji, natomiast „Jednorazowo” egzekwuje limit ilości w całym koszyku",
|
|
2523
|
+
"targetSelectionStrategy": "Pozycje objęte rabatem",
|
|
2524
|
+
"targetSelectionStrategyTooltip": "Które kwalifikujące się pozycje w koszyku otrzymają rabat",
|
|
2523
2525
|
"addCondition": "Dodaj warunek",
|
|
2524
2526
|
"clearAll": "Wyczyść wszystko",
|
|
2525
2527
|
"taxInclusive": "Zawiera podatek",
|
|
@@ -2669,6 +2671,16 @@
|
|
|
2669
2671
|
"description": "Stosuje wartość do ograniczonej liczby elementów"
|
|
2670
2672
|
}
|
|
2671
2673
|
},
|
|
2674
|
+
"target_selection_strategy": {
|
|
2675
|
+
"most_expensive_first": {
|
|
2676
|
+
"title": "Najdroższe pierwsze",
|
|
2677
|
+
"description": "Obejmuje rabatem najdroższe kwalifikujące się pozycje w koszyku"
|
|
2678
|
+
},
|
|
2679
|
+
"cheapest_first": {
|
|
2680
|
+
"title": "Najtańsze pierwsze",
|
|
2681
|
+
"description": "Obejmuje rabatem najtańsze kwalifikujące się pozycje w koszyku"
|
|
2682
|
+
}
|
|
2683
|
+
},
|
|
2672
2684
|
"code": {
|
|
2673
2685
|
"title": "Kod",
|
|
2674
2686
|
"description": "Kod, który Twoi klienci wprowadzą podczas realizacji transakcji."
|
|
@@ -2271,6 +2271,8 @@
|
|
|
2271
2271
|
"method": "Método",
|
|
2272
2272
|
"allocation": "Alocação",
|
|
2273
2273
|
"allocationTooltip": "Cada aplica o limite de quantidade por item, enquanto Uma vez aplica o limite de quantidade a todo o carrinho",
|
|
2274
|
+
"targetSelectionStrategy": "Itens com desconto",
|
|
2275
|
+
"targetSelectionStrategyTooltip": "Quais itens elegíveis no carrinho recebem o desconto",
|
|
2274
2276
|
"addCondition": "Adicionar condição",
|
|
2275
2277
|
"clearAll": "Limpar tudo",
|
|
2276
2278
|
"taxInclusive": "Impostos inclusos",
|
|
@@ -2420,6 +2422,16 @@
|
|
|
2420
2422
|
"description": "Aplica o valor a um número limitado de itens"
|
|
2421
2423
|
}
|
|
2422
2424
|
},
|
|
2425
|
+
"target_selection_strategy": {
|
|
2426
|
+
"most_expensive_first": {
|
|
2427
|
+
"title": "Mais caro primeiro",
|
|
2428
|
+
"description": "Aplica desconto nos itens elegíveis mais caros do carrinho"
|
|
2429
|
+
},
|
|
2430
|
+
"cheapest_first": {
|
|
2431
|
+
"title": "Mais barato primeiro",
|
|
2432
|
+
"description": "Aplica desconto nos itens elegíveis mais baratos do carrinho"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2423
2435
|
"code": {
|
|
2424
2436
|
"title": "Código",
|
|
2425
2437
|
"description": "O código que seus clientes deverão inserir durante o checkout."
|
|
@@ -2271,6 +2271,8 @@
|
|
|
2271
2271
|
"method": "Método",
|
|
2272
2272
|
"allocation": "Atribuição",
|
|
2273
2273
|
"allocationTooltip": "«Cada» impõe o limite de quantidade por item, enquanto «Uma vez» impõe o limite de quantidade em todo o carrinho",
|
|
2274
|
+
"targetSelectionStrategy": "Itens com desconto",
|
|
2275
|
+
"targetSelectionStrategyTooltip": "Quais os itens elegíveis no carrinho que recebem o desconto",
|
|
2274
2276
|
"addCondition": "Adicionar condição",
|
|
2275
2277
|
"clearAll": "Limpar tudo",
|
|
2276
2278
|
"taxInclusive": "Com impostos incluídos",
|
|
@@ -2420,6 +2422,16 @@
|
|
|
2420
2422
|
"description": "Aplica o valor a um número limitado de itens"
|
|
2421
2423
|
}
|
|
2422
2424
|
},
|
|
2425
|
+
"target_selection_strategy": {
|
|
2426
|
+
"most_expensive_first": {
|
|
2427
|
+
"title": "O mais caro primeiro",
|
|
2428
|
+
"description": "Aplica o desconto nos itens elegíveis mais caros do carrinho"
|
|
2429
|
+
},
|
|
2430
|
+
"cheapest_first": {
|
|
2431
|
+
"title": "O mais barato primeiro",
|
|
2432
|
+
"description": "Aplica o desconto nos itens elegíveis mais baratos do carrinho"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2423
2435
|
"code": {
|
|
2424
2436
|
"title": "Código",
|
|
2425
2437
|
"description": "O código que os teus clientes vão introduzir no checkout."
|
|
@@ -2304,6 +2304,8 @@
|
|
|
2304
2304
|
"method": "Metodă",
|
|
2305
2305
|
"allocation": "Alocare",
|
|
2306
2306
|
"allocationTooltip": "Each aplică limita de cantitate per articol, în timp ce Once aplică limita de cantitate pentru întregul coș",
|
|
2307
|
+
"targetSelectionStrategy": "Articole cu reducere",
|
|
2308
|
+
"targetSelectionStrategyTooltip": "Care articole eligibile din coș primesc reducerea",
|
|
2307
2309
|
"addCondition": "Adăugați o condiție",
|
|
2308
2310
|
"clearAll": "Ștergeți totul",
|
|
2309
2311
|
"taxInclusive": "Inclusiv taxe",
|
|
@@ -2455,6 +2457,16 @@
|
|
|
2455
2457
|
"description": "Aplică valoarea unui număr limitat de articole"
|
|
2456
2458
|
}
|
|
2457
2459
|
},
|
|
2460
|
+
"target_selection_strategy": {
|
|
2461
|
+
"most_expensive_first": {
|
|
2462
|
+
"title": "Cele mai scumpe primele",
|
|
2463
|
+
"description": "Aplică reducerea la cele mai scumpe articole eligibile din coș"
|
|
2464
|
+
},
|
|
2465
|
+
"cheapest_first": {
|
|
2466
|
+
"title": "Cele mai ieftine primele",
|
|
2467
|
+
"description": "Aplică reducerea la cele mai ieftine articole eligibile din coș"
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2458
2470
|
"code": {
|
|
2459
2471
|
"title": "Cod",
|
|
2460
2472
|
"description": "Codul pe care clienții dumneavoastră îl vor introduce în timpul plății."
|
|
@@ -2331,6 +2331,8 @@
|
|
|
2331
2331
|
"method": "Способ",
|
|
2332
2332
|
"allocation": "Распределение",
|
|
2333
2333
|
"allocationTooltip": "«Каждый» применяет лимит количества к каждому товару, а «Один раз» — сразу ко всей корзине",
|
|
2334
|
+
"targetSelectionStrategy": "Товары со скидкой",
|
|
2335
|
+
"targetSelectionStrategyTooltip": "Какие подходящие товары в корзине получат скидку",
|
|
2334
2336
|
"addCondition": "Добавить условие",
|
|
2335
2337
|
"clearAll": "Очистить все",
|
|
2336
2338
|
"taxInclusive": "С учетом налогов",
|
|
@@ -2480,6 +2482,16 @@
|
|
|
2480
2482
|
"description": "Применяет значение к ограниченному числу товаров"
|
|
2481
2483
|
}
|
|
2482
2484
|
},
|
|
2485
|
+
"target_selection_strategy": {
|
|
2486
|
+
"most_expensive_first": {
|
|
2487
|
+
"title": "Сначала самые дорогие",
|
|
2488
|
+
"description": "Применяет скидку к самым дорогим подходящим товарам в корзине"
|
|
2489
|
+
},
|
|
2490
|
+
"cheapest_first": {
|
|
2491
|
+
"title": "Сначала самые дешёвые",
|
|
2492
|
+
"description": "Применяет скидку к самым дешёвым подходящим товарам в корзине"
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2483
2495
|
"code": {
|
|
2484
2496
|
"title": "Промокод",
|
|
2485
2497
|
"description": "Промокод, который ваши клиенты введут при оформлении заказа."
|
|
@@ -2256,6 +2256,8 @@
|
|
|
2256
2256
|
"method": "Metod",
|
|
2257
2257
|
"allocation": "Fördelning",
|
|
2258
2258
|
"allocationTooltip": "”Varje” tillämpar antalsgränsen per artikel, medan ”En gång” tillämpar antalsgränsen på hela varukorgen.",
|
|
2259
|
+
"targetSelectionStrategy": "Rabatterade artiklar",
|
|
2260
|
+
"targetSelectionStrategyTooltip": "Vilka berättigade artiklar i varukorgen som får rabatten",
|
|
2259
2261
|
"addCondition": "Lägg till villkor",
|
|
2260
2262
|
"clearAll": "Rensa alla",
|
|
2261
2263
|
"taxInclusive": "Inklusive moms",
|
|
@@ -2405,6 +2407,16 @@
|
|
|
2405
2407
|
"description": "Tillämpar värdet på ett begränsat antal artiklar."
|
|
2406
2408
|
}
|
|
2407
2409
|
},
|
|
2410
|
+
"target_selection_strategy": {
|
|
2411
|
+
"most_expensive_first": {
|
|
2412
|
+
"title": "Dyraste först",
|
|
2413
|
+
"description": "Rabatterar de dyraste berättigade artiklarna i varukorgen"
|
|
2414
|
+
},
|
|
2415
|
+
"cheapest_first": {
|
|
2416
|
+
"title": "Billigaste först",
|
|
2417
|
+
"description": "Rabatterar de billigaste berättigade artiklarna i varukorgen"
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2408
2420
|
"code": {
|
|
2409
2421
|
"title": "Kod",
|
|
2410
2422
|
"description": "Koden som kunderna anger i kassan."
|
|
@@ -2271,6 +2271,8 @@
|
|
|
2271
2271
|
"method": "วิธีการ",
|
|
2272
2272
|
"allocation": "นำไปใช้",
|
|
2273
2273
|
"allocationTooltip": "ต่อชิ้น เมื่ออยากลดทุกชิ้นที่เข้าเงื่อนไข บางชิ้น เมื่ออยากจำกัดจำนวนชิ้นที่จะลด",
|
|
2274
|
+
"targetSelectionStrategy": "รายการที่ได้รับส่วนลด",
|
|
2275
|
+
"targetSelectionStrategyTooltip": "รายการที่มีสิทธิ์ในตะกร้าสินค้าที่จะได้รับส่วนลด",
|
|
2274
2276
|
"addCondition": "เพิ่มเงื่อนไข",
|
|
2275
2277
|
"clearAll": "ล้างทั้งหมด",
|
|
2276
2278
|
"taxInclusive": "รวมภาษี",
|
|
@@ -2420,6 +2422,16 @@
|
|
|
2420
2422
|
"description": "สินค้าจะถูกลดตามจำนวนสูงสุดเท่านั้น โดยจะลดที่ถูกกว่าก่อน"
|
|
2421
2423
|
}
|
|
2422
2424
|
},
|
|
2425
|
+
"target_selection_strategy": {
|
|
2426
|
+
"most_expensive_first": {
|
|
2427
|
+
"title": "แพงที่สุดก่อน",
|
|
2428
|
+
"description": "ให้ส่วนลดกับรายการที่มีสิทธิ์ราคาแพงที่สุดในตะกร้าสินค้า"
|
|
2429
|
+
},
|
|
2430
|
+
"cheapest_first": {
|
|
2431
|
+
"title": "ถูกที่สุดก่อน",
|
|
2432
|
+
"description": "ให้ส่วนลดกับรายการที่มีสิทธิ์ราคาถูกที่สุดในตะกร้าสินค้า"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2423
2435
|
"code": {
|
|
2424
2436
|
"title": "รหัส",
|
|
2425
2437
|
"description": "รหัสที่ลูกค้าจะใช้ในระหว่างการชำระเงิน"
|
|
@@ -2195,6 +2195,8 @@
|
|
|
2195
2195
|
"method": "Yöntem",
|
|
2196
2196
|
"allocation": "Dağıtım",
|
|
2197
2197
|
"allocationTooltip": "EACH, miktar limitini ürün başına uygular; ONCE ise miktar limitini tüm sepet genelinde uygular",
|
|
2198
|
+
"targetSelectionStrategy": "İndirim uygulanan ürünler",
|
|
2199
|
+
"targetSelectionStrategyTooltip": "Sepetteki hangi uygun ürünlerin indirim alacağı",
|
|
2198
2200
|
"addCondition": "Şart ekle",
|
|
2199
2201
|
"clearAll": "Tümünü Temizle",
|
|
2200
2202
|
"taxInclusive": "Vergi Dahil",
|
|
@@ -2346,6 +2348,16 @@
|
|
|
2346
2348
|
"description": "Değeri sınırlı sayıda ürüne uygular"
|
|
2347
2349
|
}
|
|
2348
2350
|
},
|
|
2351
|
+
"target_selection_strategy": {
|
|
2352
|
+
"most_expensive_first": {
|
|
2353
|
+
"title": "En pahalıdan başla",
|
|
2354
|
+
"description": "Sepetteki en pahalı uygun ürünlere indirim uygular"
|
|
2355
|
+
},
|
|
2356
|
+
"cheapest_first": {
|
|
2357
|
+
"title": "En ucuzdan başla",
|
|
2358
|
+
"description": "Sepetteki en ucuz uygun ürünlere indirim uygular"
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2349
2361
|
"code": {
|
|
2350
2362
|
"title": "Kod",
|
|
2351
2363
|
"description": "Müşterilerinizin ödeme sırasında gireceği kod."
|
|
@@ -2334,6 +2334,8 @@
|
|
|
2334
2334
|
"method": "Метод",
|
|
2335
2335
|
"allocation": "Розподіл",
|
|
2336
2336
|
"allocationTooltip": "Кожен застосовує обмеження кількості на окремий товар, тоді як Одноразово застосовує обмеження кількості до всього кошика",
|
|
2337
|
+
"targetSelectionStrategy": "Товари зі знижкою",
|
|
2338
|
+
"targetSelectionStrategyTooltip": "Які відповідні товари у кошику отримують знижку",
|
|
2337
2339
|
"addCondition": "Додати умову",
|
|
2338
2340
|
"clearAll": "Очистити все",
|
|
2339
2341
|
"taxInclusive": "З урахуванням податку",
|
|
@@ -2485,6 +2487,16 @@
|
|
|
2485
2487
|
"description": "Застосовує значення до обмеженої кількості товарів"
|
|
2486
2488
|
}
|
|
2487
2489
|
},
|
|
2490
|
+
"target_selection_strategy": {
|
|
2491
|
+
"most_expensive_first": {
|
|
2492
|
+
"title": "Найдорожчі спочатку",
|
|
2493
|
+
"description": "Застосовує знижку до найдорожчих відповідних товарів у кошику"
|
|
2494
|
+
},
|
|
2495
|
+
"cheapest_first": {
|
|
2496
|
+
"title": "Найдешевші спочатку",
|
|
2497
|
+
"description": "Застосовує знижку до найдешевших відповідних товарів у кошику"
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2488
2500
|
"code": {
|
|
2489
2501
|
"title": "Код",
|
|
2490
2502
|
"description": "Код, який клієнти введуть під час оформлення замовлення."
|
|
@@ -2225,6 +2225,8 @@
|
|
|
2225
2225
|
}
|
|
2226
2226
|
},
|
|
2227
2227
|
"allocationTooltip": "Each áp dụng giới hạn số lượng cho từng mục, còn Once áp dụng giới hạn số lượng cho toàn bộ giỏ hàng",
|
|
2228
|
+
"targetSelectionStrategy": "Mục hàng được giảm giá",
|
|
2229
|
+
"targetSelectionStrategyTooltip": "Mục hàng đủ điều kiện nào trong giỏ hàng sẽ nhận được giảm giá",
|
|
2228
2230
|
"usage": "Lượt sử dụng",
|
|
2229
2231
|
"usageLimit": "Giới hạn sử dụng"
|
|
2230
2232
|
},
|
|
@@ -2344,6 +2346,16 @@
|
|
|
2344
2346
|
"title": "Một lần"
|
|
2345
2347
|
}
|
|
2346
2348
|
},
|
|
2349
|
+
"target_selection_strategy": {
|
|
2350
|
+
"most_expensive_first": {
|
|
2351
|
+
"title": "Đắt nhất trước",
|
|
2352
|
+
"description": "Giảm giá các mục hàng đắt nhất đủ điều kiện trong giỏ hàng"
|
|
2353
|
+
},
|
|
2354
|
+
"cheapest_first": {
|
|
2355
|
+
"title": "Rẻ nhất trước",
|
|
2356
|
+
"description": "Giảm giá các mục hàng rẻ nhất đủ điều kiện trong giỏ hàng"
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2347
2359
|
"code": {
|
|
2348
2360
|
"title": "Mã",
|
|
2349
2361
|
"description": "Mã mà khách hàng sẽ nhập khi thanh toán."
|
|
@@ -2269,6 +2269,8 @@
|
|
|
2269
2269
|
"method": "方式",
|
|
2270
2270
|
"allocation": "分配",
|
|
2271
2271
|
"allocationTooltip": "每件(Each)按商品数量限制,一次(Once)按整个购物车限制",
|
|
2272
|
+
"targetSelectionStrategy": "折扣商品",
|
|
2273
|
+
"targetSelectionStrategyTooltip": "购物车中哪些符合条件的商品将获得折扣",
|
|
2272
2274
|
"addCondition": "添加条件",
|
|
2273
2275
|
"clearAll": "清除全部",
|
|
2274
2276
|
"taxInclusive": "含税",
|
|
@@ -2420,6 +2422,16 @@
|
|
|
2420
2422
|
"description": "将折扣值应用于有限数量的商品"
|
|
2421
2423
|
}
|
|
2422
2424
|
},
|
|
2425
|
+
"target_selection_strategy": {
|
|
2426
|
+
"most_expensive_first": {
|
|
2427
|
+
"title": "最贵优先",
|
|
2428
|
+
"description": "对购物车中最贵的符合条件的商品进行折扣"
|
|
2429
|
+
},
|
|
2430
|
+
"cheapest_first": {
|
|
2431
|
+
"title": "最便宜优先",
|
|
2432
|
+
"description": "对购物车中最便宜的符合条件的商品进行折扣"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2423
2435
|
"code": {
|
|
2424
2436
|
"title": "代码",
|
|
2425
2437
|
"description": "客户将在结账时输入的代码。"
|
|
@@ -2269,6 +2269,8 @@
|
|
|
2269
2269
|
"method": "方式",
|
|
2270
2270
|
"allocation": "分配",
|
|
2271
2271
|
"allocationTooltip": "「每個」對每個項目強制執行數量限制,而「一次」對整個購物車強制執行數量限制",
|
|
2272
|
+
"targetSelectionStrategy": "折扣項目",
|
|
2273
|
+
"targetSelectionStrategyTooltip": "購物車中哪些符合條件的項目將獲得折扣",
|
|
2272
2274
|
"addCondition": "新增條件",
|
|
2273
2275
|
"clearAll": "清除全部",
|
|
2274
2276
|
"taxInclusive": "含稅",
|
|
@@ -2418,6 +2420,16 @@
|
|
|
2418
2420
|
"description": "對有限數量的項目套用值"
|
|
2419
2421
|
}
|
|
2420
2422
|
},
|
|
2423
|
+
"target_selection_strategy": {
|
|
2424
|
+
"most_expensive_first": {
|
|
2425
|
+
"title": "最貴的優先",
|
|
2426
|
+
"description": "對購物車中最貴的符合條件項目套用折扣"
|
|
2427
|
+
},
|
|
2428
|
+
"cheapest_first": {
|
|
2429
|
+
"title": "最便宜的優先",
|
|
2430
|
+
"description": "對購物車中最便宜的符合條件項目套用折扣"
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2421
2433
|
"code": {
|
|
2422
2434
|
"title": "代碼",
|
|
2423
2435
|
"description": "顧客在結帳時將輸入的代碼。"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { zodResolver } from "@hookform/resolvers/zod"
|
|
2
2
|
import {
|
|
3
3
|
ApplicationMethodAllocationValues,
|
|
4
|
+
ApplicationMethodTargetSelectionStrategyValues,
|
|
4
5
|
ApplicationMethodTargetTypeValues,
|
|
5
6
|
ApplicationMethodTypeValues,
|
|
6
7
|
PromotionRuleOperatorValues,
|
|
@@ -63,6 +64,8 @@ const defaultValues = {
|
|
|
63
64
|
type: "fixed" as ApplicationMethodTypeValues,
|
|
64
65
|
target_type: "items" as ApplicationMethodTargetTypeValues,
|
|
65
66
|
max_quantity: 1,
|
|
67
|
+
target_selection_strategy:
|
|
68
|
+
"most_expensive_first" as ApplicationMethodTargetSelectionStrategyValues,
|
|
66
69
|
target_rules: [],
|
|
67
70
|
buy_rules: [],
|
|
68
71
|
},
|
|
@@ -104,6 +107,7 @@ export const CreatePromotionForm = () => {
|
|
|
104
107
|
const {
|
|
105
108
|
target_rules: targetRulesData = [],
|
|
106
109
|
buy_rules: buyRulesData = [],
|
|
110
|
+
target_selection_strategy,
|
|
107
111
|
...applicationMethodData
|
|
108
112
|
} = application_method
|
|
109
113
|
|
|
@@ -156,6 +160,9 @@ export const CreatePromotionForm = () => {
|
|
|
156
160
|
value: parseFloat(applicationMethodData.value as string) as number,
|
|
157
161
|
target_rules: buildRulesData(targetRulesData),
|
|
158
162
|
buy_rules: buildRulesData(buyRulesData),
|
|
163
|
+
...(promotionData.type === "buyget" && {
|
|
164
|
+
target_selection_strategy,
|
|
165
|
+
}),
|
|
159
166
|
},
|
|
160
167
|
is_tax_inclusive,
|
|
161
168
|
is_automatic: is_automatic === "true",
|
|
@@ -885,6 +892,56 @@ export const CreatePromotionForm = () => {
|
|
|
885
892
|
</>
|
|
886
893
|
)}
|
|
887
894
|
|
|
895
|
+
{isTypeBuyGet && (
|
|
896
|
+
<Form.Field
|
|
897
|
+
control={form.control}
|
|
898
|
+
name="application_method.target_selection_strategy"
|
|
899
|
+
render={({ field }) => {
|
|
900
|
+
return (
|
|
901
|
+
<Form.Item>
|
|
902
|
+
<Form.Label
|
|
903
|
+
tooltip={t(
|
|
904
|
+
"promotions.fields.targetSelectionStrategyTooltip"
|
|
905
|
+
)}
|
|
906
|
+
>
|
|
907
|
+
{t("promotions.fields.targetSelectionStrategy")}
|
|
908
|
+
</Form.Label>
|
|
909
|
+
<Form.Control>
|
|
910
|
+
<RadioGroup
|
|
911
|
+
dir={direction}
|
|
912
|
+
className="flex gap-y-3"
|
|
913
|
+
{...field}
|
|
914
|
+
onValueChange={field.onChange}
|
|
915
|
+
>
|
|
916
|
+
<RadioGroup.ChoiceBox
|
|
917
|
+
value={"most_expensive_first"}
|
|
918
|
+
label={t(
|
|
919
|
+
"promotions.form.target_selection_strategy.most_expensive_first.title"
|
|
920
|
+
)}
|
|
921
|
+
description={t(
|
|
922
|
+
"promotions.form.target_selection_strategy.most_expensive_first.description"
|
|
923
|
+
)}
|
|
924
|
+
className={clx("basis-1/2")}
|
|
925
|
+
/>
|
|
926
|
+
<RadioGroup.ChoiceBox
|
|
927
|
+
value={"cheapest_first"}
|
|
928
|
+
label={t(
|
|
929
|
+
"promotions.form.target_selection_strategy.cheapest_first.title"
|
|
930
|
+
)}
|
|
931
|
+
description={t(
|
|
932
|
+
"promotions.form.target_selection_strategy.cheapest_first.description"
|
|
933
|
+
)}
|
|
934
|
+
className={clx("basis-1/2")}
|
|
935
|
+
/>
|
|
936
|
+
</RadioGroup>
|
|
937
|
+
</Form.Control>
|
|
938
|
+
<Form.ErrorMessage />
|
|
939
|
+
</Form.Item>
|
|
940
|
+
)
|
|
941
|
+
}}
|
|
942
|
+
/>
|
|
943
|
+
)}
|
|
944
|
+
|
|
888
945
|
{isTypeStandard &&
|
|
889
946
|
!currentTemplate?.hiddenFields?.includes(
|
|
890
947
|
"application_method.allocation"
|
package/src/routes/promotions/promotion-create/components/create-promotion-form/form-schema.ts
CHANGED
|
@@ -38,6 +38,9 @@ export const CreatePromotionSchema = z
|
|
|
38
38
|
buy_rules: RuleSchema,
|
|
39
39
|
type: z.enum(["fixed", "percentage"]),
|
|
40
40
|
target_type: z.enum(["order", "shipping_methods", "items"]),
|
|
41
|
+
target_selection_strategy: z
|
|
42
|
+
.enum(["most_expensive_first", "cheapest_first"])
|
|
43
|
+
.optional(),
|
|
41
44
|
}),
|
|
42
45
|
campaign: CreateCampaignSchema.optional(),
|
|
43
46
|
})
|
|
@@ -32,6 +32,9 @@ const EditPromotionSchema = zod.object({
|
|
|
32
32
|
allocation: zod.enum(["each", "across", "once"]),
|
|
33
33
|
target_type: zod.enum(["order", "shipping_methods", "items"]),
|
|
34
34
|
max_quantity: zod.number().min(1).optional().nullable(),
|
|
35
|
+
target_selection_strategy: zod
|
|
36
|
+
.enum(["most_expensive_first", "cheapest_first"])
|
|
37
|
+
.optional(),
|
|
35
38
|
})
|
|
36
39
|
|
|
37
40
|
export const EditPromotionDetailsForm = ({
|
|
@@ -51,6 +54,8 @@ export const EditPromotionDetailsForm = ({
|
|
|
51
54
|
value_type: promotion.application_method!.type,
|
|
52
55
|
target_type: promotion.application_method!.target_type,
|
|
53
56
|
max_quantity: promotion.application_method!.max_quantity,
|
|
57
|
+
target_selection_strategy:
|
|
58
|
+
promotion.application_method!.target_selection_strategy,
|
|
54
59
|
},
|
|
55
60
|
resolver: zodResolver(EditPromotionSchema),
|
|
56
61
|
})
|
|
@@ -89,6 +94,9 @@ export const EditPromotionDetailsForm = ({
|
|
|
89
94
|
type: data.value_type as any,
|
|
90
95
|
allocation: data.allocation as any,
|
|
91
96
|
max_quantity: data.max_quantity,
|
|
97
|
+
...(promotion.type === "buyget" && {
|
|
98
|
+
target_selection_strategy: data.target_selection_strategy,
|
|
99
|
+
}),
|
|
92
100
|
},
|
|
93
101
|
},
|
|
94
102
|
{
|
|
@@ -433,6 +441,54 @@ export const EditPromotionDetailsForm = ({
|
|
|
433
441
|
)}
|
|
434
442
|
</>
|
|
435
443
|
)}
|
|
444
|
+
|
|
445
|
+
{promotion.type === "buyget" && (
|
|
446
|
+
<Form.Field
|
|
447
|
+
control={form.control}
|
|
448
|
+
name="target_selection_strategy"
|
|
449
|
+
render={({ field }) => {
|
|
450
|
+
return (
|
|
451
|
+
<Form.Item>
|
|
452
|
+
<Form.Label
|
|
453
|
+
tooltip={t(
|
|
454
|
+
"promotions.fields.targetSelectionStrategyTooltip"
|
|
455
|
+
)}
|
|
456
|
+
>
|
|
457
|
+
{t("promotions.fields.targetSelectionStrategy")}
|
|
458
|
+
</Form.Label>
|
|
459
|
+
<Form.Control>
|
|
460
|
+
<RadioGroup
|
|
461
|
+
dir={direction}
|
|
462
|
+
className="flex-col gap-y-3"
|
|
463
|
+
{...field}
|
|
464
|
+
onValueChange={field.onChange}
|
|
465
|
+
>
|
|
466
|
+
<RadioGroup.ChoiceBox
|
|
467
|
+
value={"most_expensive_first"}
|
|
468
|
+
label={t(
|
|
469
|
+
"promotions.form.target_selection_strategy.most_expensive_first.title"
|
|
470
|
+
)}
|
|
471
|
+
description={t(
|
|
472
|
+
"promotions.form.target_selection_strategy.most_expensive_first.description"
|
|
473
|
+
)}
|
|
474
|
+
/>
|
|
475
|
+
<RadioGroup.ChoiceBox
|
|
476
|
+
value={"cheapest_first"}
|
|
477
|
+
label={t(
|
|
478
|
+
"promotions.form.target_selection_strategy.cheapest_first.title"
|
|
479
|
+
)}
|
|
480
|
+
description={t(
|
|
481
|
+
"promotions.form.target_selection_strategy.cheapest_first.description"
|
|
482
|
+
)}
|
|
483
|
+
/>
|
|
484
|
+
</RadioGroup>
|
|
485
|
+
</Form.Control>
|
|
486
|
+
<Form.ErrorMessage />
|
|
487
|
+
</Form.Item>
|
|
488
|
+
)
|
|
489
|
+
}}
|
|
490
|
+
/>
|
|
491
|
+
)}
|
|
436
492
|
</div>
|
|
437
493
|
</RouteDrawer.Body>
|
|
438
494
|
|