diff --git a/components/shoe-results-popup.tsx b/components/shoe-results-popup.tsx index ae1124d..16b614f 100644 --- a/components/shoe-results-popup.tsx +++ b/components/shoe-results-popup.tsx @@ -52,8 +52,8 @@ export default function ShoeResultsPopup({ isOpen, onOpenChange, detectedSKU }: const handleViewDetails = () => { - if (product?.linkText) { - window.open(`https://www.impuls.com.mx/${product.linkText}/p`, '_blank'); + if (product?.linkText && selectedVariant) { + window.open(`https://www.impuls.com.mx/${product.linkText}/p?skuId=${selectedVariant}`, '_blank'); } }; @@ -293,10 +293,10 @@ export default function ShoeResultsPopup({ isOpen, onOpenChange, detectedSKU }: ${variant.price} )} - {stockInfo.label} + + {isSelected && ( + + )} - + {isSelected && ( -
+
)} ); @@ -378,7 +393,8 @@ export default function ShoeResultsPopup({ isOpen, onOpenChange, detectedSKU }: