首页 > 解决方案 > OroCommerce 前端的产品图片有问题吗?

问题描述

这是https://forum.oroinc.com/orocommerce/topic/my-product-images-are-not-displayed-in-the-frontend/的后续行动

在生产服务器上升级之前,我刚刚将标签 3.1.20 合并到我的本地环境中,并发现了我前一段时间面临的相同问题。

我发现的唯一解决方法是注释掉这些行:

if (!$this->configManager->get('oro_frontend.guest_access_enabled')) {
   return false;
}

159 - 161 在供应商/oro/customer-portal/src/Oro/Bundle/FrontendAttachmentBundle/Provider/FileUrlProvider.php

当我从 3.1.15 升级到 3.1.17 时,我开始看到这个问题

在 VM 中进行测试我发现图像在任何地方都显示正常(带有注释行),但在按类别视图列出的产品中(URL 像http://localhost:8000/product/?categoryId=7&includeSubcategories=1http:// localhost:8000/navigation-root/products/by-category/industrial/lighting-products?frontend-product-search-grid%5Brow-view%5D=list-view )

有人有这个问题吗?谢谢!

标签: orocommerce

解决方案


推荐阅读