Skip to content

Commit

Permalink
fix(bun2279): search product
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored and libruce committed Apr 16, 2024
1 parent 03c811a commit 0e0fa9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ export default function QuickOrderPad(props: QuickOrderPadProps) {
productId,
modifiers,
} = currentProduct

if (purchasingDisabled === '1') {
if (purchasingDisabled === '1' || purchasingDisabled) {
notPurchaseSku.push(variantSku)
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default function SearchProduct({
search: searchText,
companyId,
customerGroupId,
categoryFilter: true,
})

const product = conversionProductsList(productsSearch)
Expand Down
1 change: 1 addition & 0 deletions apps/storefront/src/shared/service/b2b/graphql/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const searchProducts = (data: CustomFieldItems) => `{
storeHash: "${storeHash}"
channelId: ${B3SStorage.get('B3channelId') || 1}
customerGroupId: ${data.customerGroupId || 0}
${data?.categoryFilter ? `categoryFilter: ${data?.categoryFilter}` : ''}
){
id,
name,
Expand Down

0 comments on commit 0e0fa9e

Please sign in to comment.