File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,9 @@ public function getGalleryImagesJson()
121
121
}
122
122
if (empty ($ imagesItems )) {
123
123
$ imagesItems [] = [
124
- 'thumb ' => $ this ->_imageHelper -> getDefaultPlaceholderUrl ( ' thumbnail ' ),
125
- 'img ' => $ this ->_imageHelper -> getDefaultPlaceholderUrl ( ' image ' ),
126
- 'full ' => $ this ->_imageHelper -> getDefaultPlaceholderUrl ( ' image ' ),
124
+ 'thumb ' => $ this ->getImage ( $ this -> getProduct (), ' product_thumbnail_image ' )-> getImageUrl ( ),
125
+ 'img ' => $ this ->getImage ( $ this -> getProduct (), ' product_base_image ' )-> getImageUrl ( ),
126
+ 'full ' => $ this ->getImage ( $ this -> getProduct (), ' product_page_image_large ' )-> getImageUrl ( ),
127
127
'caption ' => '' ,
128
128
'position ' => '0 ' ,
129
129
'isMain ' => true ,
Original file line number Diff line number Diff line change @@ -433,6 +433,9 @@ public function placeholder($fileName)
433
433
*
434
434
* @param null|string $placeholder
435
435
* @return string
436
+ *
437
+ * @deprecated Returns only default placeholder.
438
+ * Does not take into account custom placeholders set in Configuration.
436
439
*/
437
440
public function getPlaceholder ($ placeholder = null )
438
441
{
@@ -544,6 +547,9 @@ public function getResizedImageInfo()
544
547
/**
545
548
* @param null|string $placeholder
546
549
* @return string
550
+ *
551
+ * @deprecated Returns only default placeholder.
552
+ * Does not take into account custom placeholders set in Configuration.
547
553
*/
548
554
public function getDefaultPlaceholderUrl ($ placeholder = null )
549
555
{
You can’t perform that action at this time.
0 commit comments