Skip to content

Commit

Permalink
Update resources/views/product/partials/microdata.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Nov 14, 2023
1 parent 5f2b0fb commit da37217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/product/partials/microdata.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div itemprop="offers" itemtype="https://schema.org/Offer" itemscope>
<meta itemprop="availability" content="https://schema.org/{{ $product->in_stock ? 'InStock' : 'OutOfStock' }}" />
<meta itemprop="priceCurrency" content="@config('currency/options/default')" />
<meta itemprop="price" content="{{ round($product->price, 2) }}" />
<meta itemprop="price" content="{{ round($product->special_price ?: $product->price, 2) }}" />
<meta itemprop="url" content="{{ url($product->url) }}" />
@if($product->special_to_date && $product->special_to_date > now()->toDateTimeString())
<meta itemprop="priceValidUntil" content="{{ $product->special_to_date }}" />
Expand Down

0 comments on commit da37217

Please sign in to comment.