You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Magento 2:新增accessories_skus列未在产品导出CSV中显示

Magento导出CSV缺失accessories_skus列的解决方案
  • 重置消费者队列(无需重启服务器)

    1. 先列出所有消费者,定位产品导出相关进程:
      bin/magento queue:consumers:list
      
      通常对应的消费者是product_action_attribute.export
    2. 停止该消费者的后台运行进程:
      bin/magento queue:consumers:stop product_action_attribute.export
      
    3. 清理队列中的旧消息:
      bin/magento queue:clean
      
    4. 重新启动消费者,可选两种运行模式:
      # 后台守护模式持续运行
      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属性的导出配置

    1. 进入后台Stores > Attributes > Product,找到accessories_skus属性
    2. 切换到Storefront Properties标签页,确认Visible in Product Export选项设置为Yes
    3. 检查属性的作用域设置,确保在你导出的网站/商店视图下可见
  • 手动触发导出任务处理
    在后台发起产品导出任务后,直接运行以下命令处理队列中的导出任务,完成后按Ctrl+C停止:

    bin/magento queue:consumers:start product_action_attribute.export
    

内容的提问来源于stack exchange,提问作者nikhil ajani

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.03 07:15:01