Skip to content

Commit 3c41b64

Browse files
MAGETWO-67010: [Performance] Swatches real server side optimization
1 parent 2fcb2bb commit 3c41b64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function getJsonConfig()
212212
],
213213
'productId' => $currentProduct->getId(),
214214
'chooseText' => __('Choose an Option...'),
215-
'images' => $this->getImages(),
215+
'images' => $this->getOptionImages(),
216216
'index' => isset($options['index']) ? $options['index'] : [],
217217
];
218218

@@ -230,7 +230,7 @@ public function getJsonConfig()
230230
*
231231
* @return array
232232
*/
233-
protected function getImages()
233+
protected function getOptionImages()
234234
{
235235
$images = [];
236236
foreach ($this->getAllowProducts() as $product) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getJsonConfig()
6666
*
6767
* @return array
6868
*/
69-
protected function getImages()
69+
protected function getOptionImages()
7070
{
7171
return [];
7272
}

0 commit comments

Comments
 (0)