| 
2 | 2 |   <template v-if="allCategoryProducts?.productCategory?.products?.nodes">  | 
3 | 3 |     <section>  | 
4 | 4 |       <div id="product-container" class="flex flex-wrap items-center">  | 
5 |  | -        <template v-for="product in allCategoryProducts.productCategory.products.nodes">  | 
6 |  | -          <div v-if="product.slug" :key="product.id" class="flex flex-col mt-6 sm:w1/2 md:w-1/3 lg:w-1/4 lg:mr-4">  | 
7 |  | -            <NuxtLink class="text-black cursor-pointer hover:underline" :to="{  | 
8 |  | -              path: '/product/' + product.slug,  | 
9 |  | -              query: { id: product.databaseId },  | 
10 |  | -            }">  | 
 | 5 | +        <template  | 
 | 6 | +          v-for="product in allCategoryProducts.productCategory.products.nodes"  | 
 | 7 | +        >  | 
 | 8 | +          <div  | 
 | 9 | +            v-if="product.slug"  | 
 | 10 | +            :key="product.id"  | 
 | 11 | +            class="flex flex-col mt-6 sm:w1/2 md:w-1/3 lg:w-1/4 lg:mr-4"  | 
 | 12 | +          >  | 
 | 13 | +            <NuxtLink  | 
 | 14 | +              class="text-black cursor-pointer hover:underline"  | 
 | 15 | +              :to="{  | 
 | 16 | +                path: '/product/' + product.slug,  | 
 | 17 | +                query: { id: product.databaseId },  | 
 | 18 | +              }"  | 
 | 19 | +            >  | 
11 | 20 |               <ProductImage :alt="product.name" :src="productImage(product)" />  | 
12 | 21 | 
 
  | 
13 | 22 |               <div class="flex justify-center pt-3">  | 
 | 
16 | 25 |                 </p>  | 
17 | 26 |               </div>  | 
18 | 27 |             </NuxtLink>  | 
19 |  | -            <div v-if="product.onSale" class="flex justify-center mt-2">  | 
20 |  | -              <div class="text-lg text-gray-900 line-through">  | 
21 |  | -                <span v-if="product.variations">  | 
22 |  | -                  {{ filteredVariantPrice(product.price, "right") }}</span>  | 
23 |  | -                <span v-else>{{ product.regularPrice }}</span>  | 
24 |  | -              </div>  | 
25 |  | -              <div class="ml-4 text-xl text-gray-900">  | 
26 |  | -                <span v-if="product.variations">  | 
27 |  | -                  {{ filteredVariantPrice(product.price) }}</span>  | 
28 |  | -                <span v-else>{{ product.salePrice }}</span>  | 
29 |  | -              </div>  | 
30 |  | -            </div>  | 
31 |  | -            <div v-else>  | 
32 |  | -              <p class="mt-2 text-xl text-center text-gray-900">  | 
33 |  | -                {{ product.price }}  | 
34 |  | -              </p>  | 
35 |  | -            </div>  | 
 | 28 | +            <ProductPrice  | 
 | 29 | +              :product="product"  | 
 | 30 | +              priceFontSize="normal"  | 
 | 31 | +              :shouldCenterPrice="true"  | 
 | 32 | +            />  | 
36 | 33 |           </div>  | 
37 | 34 |         </template>  | 
38 | 35 |       </div>  | 
 | 
42 | 39 |     <section>  | 
43 | 40 |       <div id="product-container" class="flex flex-wrap items-center">  | 
44 | 41 |         <template v-for="product in allProducts.products.nodes">  | 
45 |  | -          <div v-if="product.slug" :key="product.id" class="flex flex-col mt-6 sm:w1/2 md:w-1/3 lg:w-1/4 lg:mr-4">  | 
46 |  | -            <NuxtLink class="text-black cursor-pointer hover:underline" :to="{  | 
47 |  | -              path: '/product/' + product.slug,  | 
48 |  | -              query: { id: product.databaseId },  | 
49 |  | -            }">  | 
 | 42 | +          <div  | 
 | 43 | +            v-if="product.slug"  | 
 | 44 | +            :key="product.id"  | 
 | 45 | +            class="flex flex-col mt-6 sm:w1/2 md:w-1/3 lg:w-1/4 lg:mr-4"  | 
 | 46 | +          >  | 
 | 47 | +            <NuxtLink  | 
 | 48 | +              class="text-black cursor-pointer hover:underline"  | 
 | 49 | +              :to="{  | 
 | 50 | +                path: '/product/' + product.slug,  | 
 | 51 | +                query: { id: product.databaseId },  | 
 | 52 | +              }"  | 
 | 53 | +            >  | 
50 | 54 |               <ProductImage :alt="product.name" :src="productImage(product)" />  | 
51 | 55 |               <div class="flex justify-center pt-3">  | 
52 | 56 |                 <p class="text-2xl font-bold text-center cursor-pointer">  | 
53 | 57 |                   {{ product.name }}  | 
54 | 58 |                 </p>  | 
55 | 59 |               </div>  | 
56 | 60 |             </NuxtLink>  | 
57 |  | -            <ProductPrice :product="product" priceFontSize="normal" :shouldCenterPrice="true" />  | 
 | 61 | +            <ProductPrice  | 
 | 62 | +              :product="product"  | 
 | 63 | +              priceFontSize="normal"  | 
 | 64 | +              :shouldCenterPrice="true"  | 
 | 65 | +            />  | 
58 | 66 |           </div>  | 
59 | 67 |         </template>  | 
60 | 68 |       </div>  | 
 | 
0 commit comments