获取所有产品图片,包括排除的图片 [英] Get all product images, including excluded images

查看:95
本文介绍了获取所有产品图片,包括排除的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用getMediaGalleryImages,但我只是意识到这不会返回排除的图像.还有另一种类似的方法吗?

I've been using getMediaGalleryImages, but I just realized that doesn't return excluded images. Is there another similar method that does?

推荐答案

$product = $this->getProduct();
$galleryData = $product->getData('media_gallery');

类似上面的代码将获取产品的所有媒体图像.

Something like above code will get all Media images for a product.

这篇关于获取所有产品图片,包括排除的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆