mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
disable ratings and reviews if a provider is BC
This commit is contained in:
parent
87134e2990
commit
3e35e64906
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user