From 1a2c1d24e4ad409c8947db425757ed9c9b71cbe1 Mon Sep 17 00:00:00 2001 From: aratidgr8 Date: Thu, 4 Jul 2024 20:17:23 +0530 Subject: [PATCH 1/2] Adding Sales Channel route under Store main menu item --- src/app/data/routes.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/data/routes.js b/src/app/data/routes.js index aa04a7f89..4cd145d25 100644 --- a/src/app/data/routes.js +++ b/src/app/data/routes.js @@ -108,6 +108,13 @@ export const routes = [ title: __( 'Sales & Promotions', 'wp-plugin-bluehost' ), } : null, + NewfoldRuntime.hasCapability( 'hasYithExtended' ) && + NewfoldRuntime.hasCapability( 'hasEcomdash' ) + ? { + name: '/store/sales_channel', + title: __( 'Sales Channel', 'wp-plugin-bluehost' ), + } + : null, NewfoldRuntime.isWoo ? { name: '/store/payments', From 12fd4223d8e5a362ec4d05a7a9563808646aafc1 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 12 Jul 2024 14:31:41 +0530 Subject: [PATCH 2/2] linting fixes --- src/app/data/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/data/routes.js b/src/app/data/routes.js index 4cd145d25..fd73fe2ec 100644 --- a/src/app/data/routes.js +++ b/src/app/data/routes.js @@ -113,8 +113,8 @@ export const routes = [ ? { name: '/store/sales_channel', title: __( 'Sales Channel', 'wp-plugin-bluehost' ), - } - : null, + } + : null, NewfoldRuntime.isWoo ? { name: '/store/payments',