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/Helpers/ProductAdminHelper.php +1 -2 1.5.5 → 1.7.0 View file →
@@ -8,9 +8,8 @@
8 8 use FluentCart\App\Models\AttributeTerm;
9 9 use FluentCart\App\Models\ProductMeta;
10 10 use FluentCart\App\Models\ProductVariation;
11 11 use FluentCart\App\Services\Helpers;
12 -use FluentCart\App\Vite;
13 12 use FluentCart\Framework\Support\Arr;
14 13 use FluentCart\Framework\Support\Collection;
15 14
16 15 class ProductAdminHelper
@@ -333,7 +332,7 @@
333 332 }
334 333
335 334 public static function getFeaturedMedia($featuredMedia): string
336 335 {
337 - return !empty($featuredMedia) ? Arr::get($featuredMedia, 'url') : Vite::getAssetUrl('images/placeholder.svg');
336 + return !empty($featuredMedia) ? Arr::get($featuredMedia, 'url') : Helper::getProductPlaceholderUrl();
338 337 }
339 338 }