无法在我的 Magento 2.4.2 前端显示产品图片

问题描述 投票:0回答:0

你好Magento社区,

我的 Magento 2.4.2 商店出现问题,从 ChannelAdvisor 导入产品后,产品图片未显示在前端。这些图像在后端和各个产品页面上可见,但在前端主页上,它们被替换为 Magento 的默认占位符图像。

这是我到目前为止尝试过的:

Checked the image file permissions in the media folder and set them to 777 using the command chmod -R 777 media/.
Changed the Magento theme to see if it was an issue with the specific theme, but the problem persisted across different themes.
Checked the URLs of the images on the frontend, and they pointed to the default placeholder image URLs like this one: https://toptrending-products.com/static/frontend/presiden/presiden_cosmetics_home1/en_US/Magento_Catalog/images/product/placeholder/small_image.jpg
Verified that the media folder's path is correct in Magento 2.
Reindexed the database using the command bin/magento indexer:reindex and cleared the image cache using bin/magento catalog:image:resize.

尽管尝试了所有这些步骤,产品图片仍然没有出现在前端主页上。值得一提的是,我从 ChannelAdvisor 导入产品,图片在后台和各个产品页面上都能正确显示。

对于如何解决此问题的任何指导或建议,我将不胜感激。

提前谢谢你!

我尝试了什么:

Checked the image file permissions in the media folder and set them to 777 using the command chmod -R 777 media/.
Changed the Magento theme to see if it was an issue with the specific theme, but the problem persisted across different themes.
Checked the URLs of the images on the frontend, and they pointed to the default placeholder image URLs like this one: https://toptrending-products.com/static/frontend/presiden/presiden_cosmetics_home1/en_US/Magento_Catalog/images/product/placeholder/small_image.jpg
Verified that the media folder's path is correct in Magento 2.
Reindexed the database using the command bin/magento indexer:reindex and cleared the image cache using bin/magento catalog:image:resize.

预期结果:

我希望在从ChannelAdvisor导入产品并尝试上述步骤后,产品图像能够正确显示在前端主页上。

实际结果:

尽管尝试了所有这些步骤,产品图片仍然没有出现在前端主页上。图像被替换为 Magento 的默认占位符图像。

值得一提的是,我是从ChannelAdvisor导入产品,图片在后台和各个产品页面上都能正确显示。

对于如何解决此问题的任何指导或建议,我将不胜感激。

提前谢谢你!

magento2
© www.soinside.com 2019 - 2024. All rights reserved.