Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add specific products to new dashboard
fowczarekd969f4490429
diff --git a/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx b/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsxindex 5babc458f6..ca0f3db8a8 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx@@ -158,7 +158,8 @@ const VoucherDetailsPage: React.StatelessComponent<VoucherDetailsPageProps> = ({<CardSpacer />{data.type === VoucherType.CATEGORY ||data.type === VoucherType.COLLECTION ||- data.type === VoucherType.PRODUCT ? (+ data.type === VoucherType.PRODUCT ||+ data.type === VoucherType.SPECIFIC_PRODUCT ? (<><TabContainer><CategoriesTabdiff --git a/saleor/static/dashboard-next/discounts/translations.ts b/saleor/static/dashboard-next/discounts/translations.tsindex 4463ee88a0..d4d0a0bdf3 100644--- a/saleor/static/dashboard-next/discounts/translations.ts+++ b/saleor/static/dashboard-next/discounts/translations.ts@@ -6,5 +6,8 @@ export const translateVoucherTypes = () => ({[VoucherType.COLLECTION]: i18n.t("Selected Collections"),[VoucherType.PRODUCT]: i18n.t("Selected Products"),[VoucherType.SHIPPING]: i18n.t("Shipment"),- [VoucherType.ENTIRE_ORDER]: i18n.t("Entire order")+ [VoucherType.ENTIRE_ORDER]: i18n.t("Entire order"),+ [VoucherType.SPECIFIC_PRODUCT]: i18n.t(+ "Selected Products, Collections and Categories"+ )});