drzbc6003 2013-02-25 23:15
浏览 23
已采纳

将所有产品设置为使用所有商店的默认值

I have a Magento 1.5.0.1 install with 3 different store views. At some point along the way two of the stores dont use the default values for product attributes. I am trying to find a way to make all products use default values for all stores, that way the client only has to update things in one place. I found this article but it seems like it only applies to specifically called products. Can anyone explain how to employ that code in my situation? Or suggest new code?

  • 写回答

3条回答 默认 最新

  • dongshetao1814 2013-04-02 03:05
    关注

    The only way I could get this to work was via MySQL:

    DELETE FROM `catalog_product_entity_text` where store_id != 0;
    DELETE FROM `catalog_product_entity_datetime` where store_id != 0;
    DELETE FROM `catalog_product_entity_decimal` where store_id != 0;
    DELETE FROM `catalog_product_entity_int` where store_id != 0;
    DELETE FROM `catalog_product_entity_varchar` where store_id != 0;
    

    The above will reset all products to use default values for all attributes.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法