Magento 2:新增accessories_skus列未在产品导出CSV中显示
Magento导出CSV缺失accessories_skus列的解决方案
重置消费者队列(无需重启服务器)
- 先列出所有消费者,定位产品导出相关进程:
通常对应的消费者是bin/magento queue:consumers:listproduct_action_attribute.export - 停止该消费者的后台运行进程:
bin/magento queue:consumers:stop product_action_attribute.export - 清理队列中的旧消息:
bin/magento queue:clean - 重新启动消费者,可选两种运行模式:
# 后台守护模式持续运行 bin/magento queue:consumers:start product_action_attribute.export --daemon # 单次处理指定数量消息后自动停止 bin/magento queue:consumers:start product_action_attribute.export --max-messages=100
- 先列出所有消费者,定位产品导出相关进程:
清理并刷新Magento缓存
# 清理所有缓存 bin/magento cache:clean # 强制刷新缓存 bin/magento cache:flush # 单独清理配置缓存(关键步骤) bin/magento cache:clean config重新生成配置元数据与索引
# 重新编译依赖注入配置 bin/magento setup:di:compile --no-interaction # 重新生成产品属性索引 bin/magento indexer:reindex catalog_product_attribute检查accessories_skus属性的导出配置
- 进入后台
Stores > Attributes > Product,找到accessories_skus属性 - 切换到
Storefront Properties标签页,确认Visible in Product Export选项设置为Yes - 检查属性的作用域设置,确保在你导出的网站/商店视图下可见
- 进入后台
手动触发导出任务处理
在后台发起产品导出任务后,直接运行以下命令处理队列中的导出任务,完成后按Ctrl+C停止:bin/magento queue:consumers:start product_action_attribute.export
内容的提问来源于stack exchange,提问作者nikhil ajani
相关产品推荐
相关产品推荐

