¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -15,7 +15,7 @@
<td v-for="product in products">
<a :href="productUrl(product)" class="product-image">
<img :src="baseImage(product)" :class="{ 'image-placeholder': ! hasBaseImage(product) }" alt="product image">
<img :src="baseImage(product)" :class="{ 'image-placeholder': !hasBaseImage(product) }" :alt="product.name">
</a>
<a :href="productUrl(product)" v-text="product.name" class="product-name"></a>
@@ -36,7 +36,11 @@
<td>{{ trans('storefront::compare.rating') }}</td>
<td v-for="product in products">
<product-rating :rating-percent="product.rating_percent" :review-count="product.reviews.length"></product-rating>
<product-rating
:rating-percent="product.rating_percent"
:review-count="product.reviews.length"
>
</product-rating>
</td>
</tr>
@@ -44,7 +48,7 @@
<td>{{ trans('storefront::compare.price') }}</td>
<td v-for="product in products">
<span class="product-price" v-html="product.formatted_price"></span>
<span class="product-price" v-html="productPrice(product)"></span>
</td>
</tr>
@@ -52,7 +56,7 @@
<td>{{ trans('storefront::compare.availability') }}</td>
<td v-for="product in products">
<span class="badge badge-success" v-if="product.is_in_stock">
<span class="badge badge-success" v-if="productIsInStock(product)">
{{ trans('storefront::compare.in_stock') }}
</span>
@@ -92,7 +96,7 @@
<button
title="{{ trans('storefront::compare.add_to_cart') }}"
class="btn btn-add-to-cart"
:disabled="product.is_out_of_stock"
:disabled="!productIsInStock(product)"
@click="addToCart(product)"
>
<i class="las la-shopping-cart"></i>