| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace FluentCart\App\Services\Renderer; |
| 4 | 4 | |
| 5 | 5 | use FluentCart\Api\StoreSettings; |
| 6 | 6 | use FluentCart\Framework\Support\Arr; |
| 7 | -use FluentCart\App\Vite; | |
| 8 | 7 | use FluentCart\App\Helpers\Helper; |
| 9 | 8 | use FluentCart\App\Helpers\CartCheckoutHelper; |
| 10 | 9 | use FluentCart\App\Models\Product; |
| 11 | 10 | |
| @@ -142,11 +141,10 @@ | ||
| 142 | 141 | { |
| 143 | 142 | $image = Arr::get($this->currentCartItem, 'featured_media'); |
| 144 | 143 | $title = Arr::get($this->currentCartItem, 'title', __('Product Image', 'fluent-cart')); |
| 145 | 144 | |
| 146 | - if (!$image) { | |
| 147 | - $image = Vite::getAssetUrl('images/placeholder.svg'); | |
| 148 | - } | |
| 145 | + // Also maps the old generic icon a pre-existing cart row may still store. | |
| 146 | + $image = Helper::productImageOrPlaceholder($image); | |
| 149 | 147 | |
| 150 | 148 | ?> |
| 151 | 149 | |
| 152 | 150 | <div class="fct-cart-item-image"> |