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/Buttons/BuyNowButtonBlockEditor.php +2 -3 1.3.21 → 1.7.0 View file →
@@ -14,9 +14,8 @@
14 14 use FluentCart\App\Modules\Templating\AssetLoader;
15 15 use FluentCart\App\Services\Renderer\ModalCheckoutRenderer;
16 16 use FluentCart\App\Services\Renderer\ProductRenderer;
17 17 use FluentCart\App\Services\Translations\TransStrings;
18 -use FluentCart\App\Vite;
19 18 use FluentCart\Framework\Support\Arr;
20 19
21 20 class BuyNowButtonBlockEditor extends BlockEditor
22 21 {
@@ -73,13 +72,13 @@
73 72 'slug' => $this->slugPrefix,
74 73 'name' => static::getEditorName(),
75 74 'title' => __('Buy Now', 'fluent-cart'),
76 75 'description' => __('A custom button block with product selection and automatic link assignment.', 'fluent-cart'),
77 - 'placeholder_image' => Vite::getAssetUrl('images/placeholder.svg'),
76 + 'placeholder_image' => Helper::getProductPlaceholderUrl(),
78 77 ],
79 78 'fluent_cart_block_translation' => TransStrings::blockStrings(),
80 79 'fluent_cart_block_editor_asset' => [
81 - 'placeholder_image' => Vite::getAssetUrl('images/placeholder.svg'),
80 + 'placeholder_image' => Helper::getProductPlaceholderUrl(),
82 81 ],
83 82 ];
84 83 }
85 84