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/Hooks/Handlers/BlockEditors/ProductInfoBlockEditor.php +3 -2 1.3.21 → 1.7.0 View file →
@@ -4,9 +4,8 @@
4 4
5 5 use FluentCart\App\Hooks\Handlers\ShortCodes\ProductCardShortCode;
6 6 use FluentCart\App\Services\Renderer\ProductRenderer;
7 7 use FluentCart\App\Services\Translations\TransStrings;
8 -use FluentCart\App\Vite;
9 8 use FluentCart\Framework\Support\Arr;
10 9 use FluentCart\App\Models\Product;
11 10 use FluentCart\App\Helpers\Helper;
12 11 use FluentCart\App\App;
@@ -41,9 +40,9 @@
41 40 'slug' => $this->slugPrefix,
42 41 'name' => static::getEditorName(),
43 42 'title' => __('Product Info', 'fluent-cart'),
44 43 'description' => __('This block will display the product information.', 'fluent-cart'),
45 - 'placeholder_image' => Vite::getAssetUrl('images/placeholder.svg'),
44 + 'placeholder_image' => Helper::getProductPlaceholderUrl(),
46 45 ],
47 46 'fluent_cart_block_translation' => TransStrings::blockStrings(),
48 47 ];
49 48 }
@@ -76,8 +75,10 @@
76 75
77 76 if (!$product) {
78 77 return '';
79 78 }
79 +
80 + do_action('fluent_cart/advanced_variation/enqueue_assets');
80 81
81 82 $innerBlocksContent = '';
82 83 if ($block instanceof \WP_Block && !empty($block->inner_blocks)) {
83 84 $innerBlocksContent .= '<div class="product-info-block-wrapper">';