← 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 | |