Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
view
frontend
templates
product
view
options.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
9
/* @var $block \Magento\Catalog\Block\Product\View\Options */
10
?>
11
12
<?php $_options =
$block
->decorateArray(
$block
->getOptions()) ?>
13
<?php $_productId =
$block
->getProduct()->getId() ?>
14
<?php
if
(count($_options)):?>
15
<script type=
"text/x-magento-init"
>
16
{
17
"#product_addtocart_form"
: {
18
"priceOptions"
: {
19
"optionConfig"
: <?=
/* @escapeNotVerified */
$block
->getJsonConfig() ?>,
20
"controlContainer"
:
".field"
,
21
"priceHolderSelector"
:
"[data-product-id='<?= $block->escapeHtml($_productId) ?>'][data-role=priceBox]"
22
}
23
}
24
}
25
</script>
26
<?php
foreach
($_options as
$_option
): ?>
27
<?=
$block
->getOptionHtml(
$_option
) ?>
28
<?php
endforeach
; ?>
29
<?php
endif
; ?>
$_option
$_option
Definition:
checkbox.phtml:11
endif
if( $product->isSaleable())(count($options)) foreach( $options as $option)(! $option->getSelections()) endif
Definition:
options.phtml:34
$block
$block
Definition:
block.php:8
endforeach
endforeach
Definition:
options.phtml:38