Skip to content

Commit

Permalink
Merge pull request #373
Browse files Browse the repository at this point in the history
Fix shopify image size
  • Loading branch information
portableant authored May 21, 2022
2 parents 1137c13 + a441141 commit 991a703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/shopify-card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card card-fitz h-100">
@isset($result['thumbnail'][0])
<a href="{{ $result['url'][0] }}">
<img class="card-img-top" src="{{ $result['thumbnail'][0]}}"
<img class="card-img-top" src="{{ str_replace('.jpg','_300x300.jpg',$result['thumbnail'][0]) }}"
alt="A product image depicting {{ $result['title'][0] }}"
loading="lazy"
/>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/shopify-live-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="col-md-4 mb-3">
<div class="card card-fitz h-100">
<a href="{{ env('SHOPIFY_FME_PROTOCOL') }}{{ env('SHOPIFY_FME_LIVE_URL') }}{{ env('SHOPIFY_FME_CATALOGUE') }}{{ $result['handle'] }}">
<img class="card-img-top" src="{{ $result['image']['src']}}"
<img class="card-img-top" src="{{ str_replace('.jpg','_300x300.jpg',$result['image']['src']) }}"
alt="A product image depicting {{ $result['image']['src'] }}"
loading="lazy"
/>
Expand Down

0 comments on commit 991a703

Please sign in to comment.