Skip to content

Commit

Permalink
Replace v-if check variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyHoenderdaal committed Nov 15, 2024
1 parent 8506fc4 commit 9a40bb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div v-for="option in item.customizable_options">
@{{ option.label }}: @{{ option.values[0].label || option.values[0].value }}
</div>
<div v-if="!canOrderCartItem(item)" class="text-ct-error text-balance bg-ct-error/5 my-2 max-w-sm p-2">
<div v-if="!item.is_available" class="text-ct-error text-balance bg-ct-error/5 my-2 max-w-sm p-2">
@lang('This product is out of stock, remove it to continue your order.')
</div>
<div v-for="option in config.cart_attributes">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/cart/partials/product/image.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<td class="h-24 w-32 !pl-0 max-md:flex max-md:w-1/2">
<img
v-if="item.product.image"
v-bind:class="{'opacity-20' : !canOrderCartItem(item)}"
v-bind:class="{'opacity-20' : !item.is_available}"
class="object-contain"
:alt="item.product.name"
:src="'/storage/{{ config('rapidez.store') }}/resizes/200/magento' + item.product.image.url.replace(config.media_url, '') + '.webp'"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/cart/partials/product/price.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
</td>
<td class="flex items-center font-medium max-md:w-1/3 md:table-cell *:mx-auto">
<template v-if="canOrderCartItem(item)">
<template v-if="item.is_available">
<x-rapidez-ct::input.quantity/>
</template>
</td>
Expand Down

0 comments on commit 9a40bb5

Please sign in to comment.