← All changes
|
app/Hooks/Handlers/BlockEditors/BuySectionBlockEditor.php
+6
-0
1.3.21
→
1.6.6
View file →
| @@ -68,8 +68,14 @@ | ||
| 68 | 68 | if (!$product) { |
| 69 | 69 | return ''; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + // The Buy Section renders the single-product purchase UI, including | |
| 73 | + // Pro's advanced-variation selector — fire the asset hook so Pro | |
| 74 | + // enqueues the selector CSS/JS (without it the selector is unstyled and | |
| 75 | + // its price/variant JS never wires up). Pro dedupes by enqueue handle. | |
| 76 | + do_action('fluent_cart/advanced_variation/enqueue_assets'); | |
| 77 | + | |
| 72 | 78 | ob_start(); |
| 73 | 79 | (new ProductRenderer($product))->renderBuySection(); |
| 74 | 80 | return ob_get_clean(); |
| 75 | 81 | } |