← 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">'; |