製品ビュー画像スライダー
-
12-12-2019 - |
質問
Magento の製品の多くには画像が 1 つしかありません。画像が 1 つしか存在しない場合、メインの商品画像の下にある画像スライダーを削除することはできますか?画像が 2 つ以上ある場合は表示されるはずです。
解決
デフォルトでは media.phtml is showing gallery image
。ここ getGalleryImages() show all images of product
。による Default gallery show when count of gallery image is greater than 0
.あなたは変わる必要があります this 0 to 1
.
<?php if (count($this->getGalleryImages()) > 1): ?>
所属していません magento.stackexchange