Skip to content

Commit

Permalink
fix: PDP variants improved
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriassuncx committed Jul 30, 2024
1 parent 8333eb6 commit c5df0e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/product/ProductInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function ProductInfo({ page, colors = [], layout }: Props) {
{availability === "https://schema.org/InStock"
? (
<>
{platform === "vtex" && !notHasPossibilities && (
{platform === "vtex" && !hasVariants && (
<>
<AddToCartButtonVTEX
eventParams={{ items: [eventItem] }}
Expand All @@ -212,7 +212,7 @@ function ProductInfo({ page, colors = [], layout }: Props) {
}
</>
)}
{platform === "wake" && !notHasPossibilities && (
{platform === "wake" && !hasVariants && (
<>
<AddToCartButtonWake
eventParams={{ items: [eventItem] }}
Expand All @@ -225,27 +225,27 @@ function ProductInfo({ page, colors = [], layout }: Props) {
/>
</>
)}
{platform === "linx" && !notHasPossibilities && (
{platform === "linx" && !hasVariants && (
<AddToCartButtonLinx
eventParams={{ items: [eventItem] }}
productID={productID}
productGroupID={productGroupID}
/>
)}
{platform === "vnda" && !notHasPossibilities && (
{platform === "vnda" && !hasVariants && (
<AddToCartButtonVNDA
eventParams={{ items: [eventItem] }}
productID={productID}
additionalProperty={additionalProperty}
/>
)}
{platform === "shopify" && !notHasPossibilities && (
{platform === "shopify" && !hasVariants && (
<AddToCartButtonShopify
eventParams={{ items: [eventItem] }}
productID={productID}
/>
)}
{platform === "nuvemshop" && !notHasPossibilities && (
{platform === "nuvemshop" && !hasVariants && (
<AddToCartButtonNuvemshop
productGroupID={productGroupID}
eventParams={{ items: [eventItem] }}
Expand Down

0 comments on commit c5df0e8

Please sign in to comment.