【问题标题】:In Magento there is any code in marketpalce seller when adding product to automatic disable it?在Magento中,添加产品以自动禁用它时,市场卖家中有任何代码吗?
【发布时间】:2015-09-28 15:27:23
【问题描述】:

当卖家添加任何产品时,我正在使用市场,然后它变为启用,并且在卖家添加产品页面中添加任何代码,当卖家添加新产品时,它变为禁用,然后管理员批准它。

【问题讨论】:

    标签: php magento marketplace


    【解决方案1】:

    是的。这是可能的。

    您尚未共享任何代码。所以我只是告诉你你是如何实现你的目标的。

    您需要将产品状态设置为2 or disabled,然后才能保存。

    类似的东西

    $product = Mage::getModel('catalog/product');
    $product->setStatus(2) //product status (1 - enabled, 2 - disabled) 
    $product->save();
    

    查看完美教程

    Programmatically (manually) creating simple Magento product

    Programmatically create a configurable Magento product

    【讨论】:

      猜你喜欢
      • 2013-03-09
      • 1970-01-01
      • 2017-10-07
      • 1970-01-01
      • 2017-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-25
      相关资源
      最近更新 更多