magento out of stock and disable items

update catalog_product_entity p,catalog_product_entity_int ci,disable d set ci.value=2
 where p.entity_id=ci.entity_id and ci.attribute_id=84 and d.product_code=p.sku 






update catalog_product_entity p,cataloginventory_stock_item ci,disable d set ci.is_in_stock=0
 where p.entity_id=ci.product_id and d.product_code=p.sku 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章