We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710d523 commit 9779577Copy full SHA for 9779577
1 file changed
src/routes/(info)/lttstore/products/[handle]/VariantDisplay.svelte
@@ -55,9 +55,12 @@
55
/>
56
</a>
57
{:else}
58
- <div class="flex justify-center items-center h-full w-full opacity-40 text-xs">
59
- No Image
60
- </div>
+ {@const otherOptionVariants = product.variants.filter(v => !v.options.includes(value) && v.featured_media)}
+ {#if otherOptionVariants.length > 0}
+ <div class="flex justify-center items-center h-full w-full opacity-40 text-xs">
61
+ No Image
62
+ </div>
63
+ {/if}
64
{/if}
65
66
<a href="https://www.lttstore.com/products/{product.handle}?variant={variant?.id}" class="hidden-link block w-full mt-auto" class:opacity-80={!inStock}>
0 commit comments