diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-11 10:04:09 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-11 10:04:09 +0700 |
| commit | 768e5a550c07bdcfb7fda779163458e0c9762902 (patch) | |
| tree | d44236911d0fea32fa582fb739ebac8ab325a064 /src/pages | |
| parent | 1e8959ef719689bc8ddd2477fa12e960f4c9a759 (diff) | |
| parent | 46faf7e7ba398a4137e93559b2efa5abf3df9663 (diff) | |
Merge branch 'release' into CR/search_enggine
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/api/shop/promo.js | 2 | ||||
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/pages/api/shop/promo.js b/src/pages/api/shop/promo.js index 221a9adb..f90c8559 100644 --- a/src/pages/api/shop/promo.js +++ b/src/pages/api/shop/promo.js @@ -52,6 +52,7 @@ export default async function handler(req, res) { 'facet.field=category_name', 'facet=true', 'indent=true', + `facet.limit=-1`, // `facet.query=${escapeSolrQuery(q)}`, `q.op=${operation}`, `q=${q}`, @@ -60,6 +61,7 @@ export default async function handler(req, res) { `rows=${limit}`, `sort=${paramOrderBy}`, `fq=product_ids:[* TO *]`, + `fq=active_b:true`, ]; if (priceFrom > 0 || priceTo > 0) { diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index 88e9b302..ed6724ea 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -18,9 +18,10 @@ export default function BrandDetail() { const brandName = getNameFromSlug(slug) const id = getIdFromSlug(slug) const {brand} = useBrand({id}) - if ( !brand.isLoading && _.isEmpty(brand.data)) { - return <PageNotFound />; - } + // if ( !brand.isLoading && _.isEmpty(brand.data)) { + // console.log('ini masuk pak') + // return <PageNotFound />; + // } return ( <BasicLayout> <Seo |
