Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们需要更改每个网站的延期交货假设可以将数量为 0 的产品 X 购买到 WebsiteA 但不能购买到 WebsiteB Magento 只允许在全球范围内更改此属性。
我的想法是创建另一个属性并将 getBackorders 函数修改为 app/code/core/Mage/CatalogInventory/Model/Stock/Item.php 以查看这个新属性而不是“延期交货”
此修改仅在保存时影响我的产品进入管理员
知道如何解决吗?
我认为你的想法是正确的。创建在每个网站/商店视图级别上设置的新属性,然后扩展库存项目功能以查看此值。