24 <div
class=
"<?= /* @escapeNotVerified */ $attributeCode ?> "><?=
$elementHtml ?></div>
31 require([
'prototype'],
function () {
33 var
$attribute = $(
'<?= /* @escapeNotVerified */ $attributeCode ?>');
34 if ($(
'<?= /* @escapeNotVerified */ $switchAttributeCode ?>').value ==
'<?= /* @escapeNotVerified */ $block::DYNAMIC ?>') {
40 if ($(
'dynamic-price-warning')) {
41 $(
'dynamic-price-warning').show();
46 &&
$block->getProduct()->isObjectNew()) { ?>
47 <?php $defaultProductPrice =
$block->getDefaultProductPrice() ?:
"''"; ?>
48 $attribute.value = <?= $defaultProductPrice ?>;
54 if ($(
'dynamic-price-warning')) {
55 $(
'dynamic-price-warning').hide();
61 && !
$block->getProduct()->isObjectNew())) { ?>
62 $(
'<?= /* @escapeNotVerified */ $switchAttributeCode ?>').observe(
'change', <?=
$switchAttributeCode ?>_change);
64 Event.observe(window,
'load',
function(){