Skip to content

Commit bd6d108

Browse files
committed
Merge pull request #1 from magento-goinc/MAGETWO-53158
MAGETWO-53158: Swatches are absent on storefront product page
2 parents 1127146 + c654daf commit bd6d108

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/code/Magento/Swatches/Block/Product/Renderer/Configurable.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,18 +365,29 @@ protected function getConfigurableOptionsIds(array $attributeData)
365365
}
366366

367367
/**
368-
* Return HTML code
368+
* Produce and return block's html output
369369
*
370370
* @codeCoverageIgnore
371371
* @return string
372372
*/
373-
protected function _toHtml()
373+
public function toHtml()
374374
{
375375
$this->initIsProductHasSwatchAttribute();
376376
$this->setTemplate(
377377
$this->getRendererTemplate()
378378
);
379379

380+
return parent::toHtml();
381+
}
382+
383+
/**
384+
* Return HTML code
385+
*
386+
* @codeCoverageIgnore
387+
* @return string
388+
*/
389+
protected function _toHtml()
390+
{
380391
return $this->getHtmlOutput();
381392
}
382393

0 commit comments

Comments
 (0)