From 89f32128f37d99b490de7590e2116a9cfd853f89 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 22 Dec 2023 17:33:46 +0700 Subject: Update promotion program feature --- src-migrate/constants/promotion.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src-migrate/constants/promotion.ts (limited to 'src-migrate/constants') diff --git a/src-migrate/constants/promotion.ts b/src-migrate/constants/promotion.ts new file mode 100644 index 00000000..e6dfcc9b --- /dev/null +++ b/src-migrate/constants/promotion.ts @@ -0,0 +1,17 @@ +export const PROMO_CATEGORY = { + bundling: { + name: 'Bundling', + alias: 'Silat', + description: 'Kombinasi Kilat (SiLat)', + }, + discount_loading: { + name: 'Discount Loading', + alias: 'Barong', + description: 'Barang Borong (BaRong)', + }, + merchandise: { + name: 'Merchandise', + alias: 'Angklung', + description: 'Menang Langsung (Angklung)', + }, +}; -- cgit v1.2.3 From f62b2345f463695ef0f8f79830cd76b6e0332821 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 13 Jan 2024 10:35:22 +0700 Subject: Refactor src migrate folder --- src-migrate/constants/menu.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src-migrate/constants/menu.ts (limited to 'src-migrate/constants') diff --git a/src-migrate/constants/menu.ts b/src-migrate/constants/menu.ts new file mode 100644 index 00000000..d1adebca --- /dev/null +++ b/src-migrate/constants/menu.ts @@ -0,0 +1,20 @@ +import { SecondaryNavItemProps } from '~/types/nav'; + +export const SECONDARY_MENU_ITEMS: SecondaryNavItemProps[] = [ + { + label: 'Semua Brand', + href: '/shop/brands', + }, + { + label: 'Ready Stock', + href: '/shop/search?orderBy=stock', + }, + { + label: 'Blog Indoteknik', + href: 'https://blog.indoteknik.com/', + }, + { + label: 'Indoteknik TV', + href: '/video', + }, +]; -- cgit v1.2.3 From 037c06c8c7ee0751105b5aea22819a5c4c41fdd8 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 29 Feb 2024 16:14:31 +0700 Subject: Add utm source function on product card --- src-migrate/constants/utm-source.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src-migrate/constants/utm-source.ts (limited to 'src-migrate/constants') diff --git a/src-migrate/constants/utm-source.ts b/src-migrate/constants/utm-source.ts new file mode 100644 index 00000000..95c03ed2 --- /dev/null +++ b/src-migrate/constants/utm-source.ts @@ -0,0 +1,8 @@ +export const UTM_SOURCE = { + '/': 'web.home', + '/shop/product/[slug]': 'web.other-product', + '/shop/search': 'web.search', + '/shop/brands/[slug]': 'web.brand', + '/shop/category/[slug]': 'web.category', + '/shop/cart': 'web.cart', +}; -- cgit v1.2.3