diff --git a/starters/shopify-meilisearch/components/product-card.tsx b/starters/shopify-meilisearch/components/product-card.tsx index 66357aae..63d05398 100644 --- a/starters/shopify-meilisearch/components/product-card.tsx +++ b/starters/shopify-meilisearch/components/product-card.tsx @@ -18,7 +18,7 @@ export const ProductCard = ({ variants, handle, title, featuredImage, minPrice, const variantPrice = variants?.find(Boolean)?.price return ( - +
-
+
{/* remove first word from the title as it includes vendor (this just needs feed update and then can be removed) */} -

{title.split(" ").slice(1).join(" ")}

+

{title.split(" ").slice(1).join(" ")}

- {!!vendor &&

{vendor}

} - {noOfVariants > 0 && ( -

- {noOfVariants} variant{noOfVariants > 1 ? "s" : ""} -

- )} - {!!avgRating && !!totalReviews && ( -
- - {avgRating.toFixed(2)} - - ({totalReviews} review{totalReviews !== 1 && "s"}) - -
- )} + {!!vendor &&

{vendor}

} +
+ {!!avgRating && !!totalReviews && ( + <> +
+ + {avgRating.toFixed(2)} + + ({totalReviews} review{totalReviews !== 1 && "s"}) + +
+ • + + )} + {noOfVariants > 0 && ( +

+ {noOfVariants} variant{noOfVariants > 1 ? "s" : ""} +

+ )} +
{!!variantPrice && From {mapCurrencyToSign((variantPrice.currencyCode as CurrencyType) || "USD") + minPrice.toFixed(2)}}
diff --git a/starters/shopify-meilisearch/components/ui/carousel.tsx b/starters/shopify-meilisearch/components/ui/carousel.tsx index e568fdea..b4467b85 100644 --- a/starters/shopify-meilisearch/components/ui/carousel.tsx +++ b/starters/shopify-meilisearch/components/ui/carousel.tsx @@ -162,7 +162,7 @@ const CarouselPrevious = forwardRef - + Next slide ) diff --git a/starters/shopify-meilisearch/views/listing/hits-section.tsx b/starters/shopify-meilisearch/views/listing/hits-section.tsx index 08d51869..486a0370 100644 --- a/starters/shopify-meilisearch/views/listing/hits-section.tsx +++ b/starters/shopify-meilisearch/views/listing/hits-section.tsx @@ -10,7 +10,7 @@ export async function HitsSection({ hits }: HitsSectionProps) { return

No results for this query

} return ( -
+
{hits.map((singleResult, idx) => ( ))} diff --git a/starters/shopify-meilisearch/views/product/review-button.tsx b/starters/shopify-meilisearch/views/product/review-button.tsx index 9532512d..759ff0ce 100644 --- a/starters/shopify-meilisearch/views/product/review-button.tsx +++ b/starters/shopify-meilisearch/views/product/review-button.tsx @@ -1,6 +1,6 @@ "use client" -import { Button } from "components/ui/button-old" +import { Button } from "components/ui/button" import { useModalStore } from "stores/modal-store" import { useQueryState } from "nuqs" @@ -14,6 +14,8 @@ export const ReviewButton = ({ productId }: ReviewButtonProps) => { return (