disable ratings and reviews if a provider is BC

This commit is contained in:
powerwlsl 2022-08-09 02:24:27 +09:00
parent 87134e2990
commit 3e35e64906
2 changed files with 9 additions and 6 deletions

View File

@ -21,7 +21,7 @@ BIGCOMMERCE_CHANNEL_ID=
BIGCOMMERCE_STORE_URL= BIGCOMMERCE_STORE_URL=
BIGCOMMERCE_STORE_API_STORE_HASH= BIGCOMMERCE_STORE_API_STORE_HASH=
BIGCOMMERCE_STORE_API_CLIENT_SECRET= BIGCOMMERCE_STORE_API_CLIENT_SECRET=
NEXT_PUBLIC_IS_BC=
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN= NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN= NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=
@ -53,4 +53,4 @@ SFCC_CLIENT_ID=
SFCC_CLIENT_SECRET= SFCC_CLIENT_SECRET=
SFCC_ORG_ID= SFCC_ORG_ID=
SFCC_SHORT_CODE= SFCC_SHORT_CODE=
SFCC_SITE_ID=RefArch SFCC_SITE_ID=RefArch

View File

@ -52,10 +52,13 @@ const ProductSidebar: FC<ProductSidebarProps> = ({ product, className }) => {
className="pb-4 break-words w-full max-w-xl" className="pb-4 break-words w-full max-w-xl"
html={product.descriptionHtml || product.description} html={product.descriptionHtml || product.description}
/> />
<div className="flex flex-row justify-between items-center">
<Rating value={4} /> {!process.env.NEXT_PUBLIC_IS_BC &&
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div> <div className="flex flex-row justify-between items-center">
</div> <Rating value={4}/>
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div>
</div>
}
<div> <div>
{process.env.COMMERCE_CART_ENABLED && ( {process.env.COMMERCE_CART_ENABLED && (
<Button <Button