Skip to content

Commit 085b974

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-61106: Configurable product page does not display swatches
1 parent 8a1974f commit 085b974

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Swatches/view/frontend/templates/product/layered/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</div>
7070

7171
<script>
72-
require(["jquery", "jquery/ui", "Magento_Swatches/js/swatchRenderer"], function ($) {
72+
require(["jquery", "jquery/ui", "Magento_Swatches/js/SwatchRenderer"], function ($) {
7373
$('.swatch-layered.<?php /* @escapeNotVerified */ echo $swatchData['attribute_code'] ?>')
7474
.find('[option-type="1"], [option-type="2"], [option-type="0"], [option-type="3"]')
7575
.SwatchRendererTooltip();

app/code/Magento/Swatches/view/frontend/templates/product/listing/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<?php /** @var $block \Magento\Swatches\Block\Product\Renderer\Configurable */ ?>
88
<div class="swatch-opt-<?php /* @escapeNotVerified */ echo $block->getProduct()->getId() ?>"></div>
99
<script>
10-
require(["jquery", "jquery/ui", "Magento_Swatches/js/swatchRenderer"], function ($) {
10+
require(["jquery", "jquery/ui", "Magento_Swatches/js/SwatchRenderer"], function ($) {
1111
$('.swatch-opt-<?php /* @escapeNotVerified */ echo $block->getProduct()->getId() ?>').SwatchRenderer({
1212
selectorProduct: '.product-item-details',
1313
onlySwatches: true,

app/code/Magento/Swatches/view/frontend/templates/product/view/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/x-magento-init">
1111
{
1212
"[data-role=swatch-options]": {
13-
"Magento_Swatches/js/swatchRenderer": {
13+
"Magento_Swatches/js/SwatchRenderer": {
1414
"jsonConfig": <?php /* @escapeNotVerified */ echo $block->getJsonConfig(); ?>,
1515
"jsonSwatchConfig": <?php /* @escapeNotVerified */ echo $block->getJsonSwatchConfig(); ?>,
1616
"mediaCallback": "<?php /* @escapeNotVerified */ echo $block->getMediaCallback() ?>"

0 commit comments

Comments
 (0)