x
This commit is contained in:
1 parent
5fac4524c8
commit
e1d793ce37
69 files changed
+1892
-610
No files matched your search
@@ -111,7 +111,7 @@ export default function ProductCard({ product, enableQuickShop = false, category
|
||||
<div className="mt-auto flex flex-col gap-2 pt-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-sm font-black text-pop-pink md:text-lg">
|
||||
{formatPrice(selectedVariant?.price ?? product.variants?.[0]?.price ?? product.price)}
|
||||
{formatPrice(selectedVariant?.price ?? product.variants?.[0]?.price ?? 0)}
|
||||
</span>
|
||||
{!enableQuickShop && (
|
||||
<span className="flex items-center gap-1 text-[10px] font-bold uppercase tracking-widest text-pop-black transition-transform group-hover:translate-x-1 group-hover:text-pop-pink md:text-xs">
|
||||
@@ -134,7 +134,7 @@ export default function ProductCard({ product, enableQuickShop = false, category
|
||||
productId: product.id,
|
||||
variantId: targetVariant.id,
|
||||
quantity: 1,
|
||||
price: targetVariant.price || product.price || 0,
|
||||
price: targetVariant.price || 0,
|
||||
productName: displayName,
|
||||
variantName: [targetVariant.option1, targetVariant.option2, targetVariant.option3].filter(Boolean).map(opt => resolveOptionValue(opt, product.options, i18n.language)).join(' / '),
|
||||
productImage: product.images?.[0]?.url || getCategoryImage(displayCategoryName)
|
||||
|
||||
Reference in new issue
Block a user