Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
wizard-ajax.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
11 $productMatrix = $block->getProductMatrix();
12 $attributes = $block->getProductAttributes();
13 
14 /* @noEscape */ echo $block->getVariationWizard([
15  'attributes' => $attributes,
16  'configurations' => $productMatrix,
17  'configurableModal' => $block->getForm() . '.' . $block->getModal()
18 ]);
19 ?>
20 <script>
21  require(['jquery', 'uiRegistry', 'underscore'], function ($, registry, _) {
22  $('body').trigger('contentUpdated');
23  $('.<?= /* @noEscape */ $block->getData('config/dataScope') ?>[data-role=steps-wizard-main]').applyBindings();
24 
25  registry.async('<?= /* @noEscape */ $block->getData('config/nameStepWizard') ?>')(function (component) {
26  _.delay(component.open.bind(component), 500); // TODO: MAGETWO-50246
27  })
28  });
29 </script>
$productMatrix
$block
Definition: block.php:8
$attributes