PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.0
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.0
1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 All 50 releases
← All changes | app/Services/Renderer/CartRenderer.php +2 -4 1.6.5 → 1.7.0 View file →
@@ -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">