在产品信息中添加属性->库存选项卡
嘿,我刚刚意识到在 ADMIN 中向表单产品添加属性是多么容易,而且它工作得很好。 与设置常规、价格、元信息、图像、重复配置文件、设计和更多信息的属性类似,如何向库存表单添加属性?
预先感谢您的任何帮助。
Hey, I just realise how easy is to add attributes to the form products in ADMIN, and its working perfectly.
So similarly to setting attributes for General, Prices, Meta Information, Images, Recurring Profiles, Design and More Information, how can I add an attribute to Inventory form?
Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,库存表单不像其他表单那样是动态的,您不能只向此表单添加属性。
如果您擅长 Magento 编程,那么您可以使用它的块:
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
及其模板:
app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
Unfortunately, the Inventory form is not dynamic like others, and you can't just add an attribute to this form.
If you are good with Magento programming, than you can play with it's block:
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
and with it's template:
app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
对于我来说(在 Magento v 1.3.2.4 中),以通常的方式创建属性(目录>属性>管理属性)在这种情况下不起作用,因为该属性的值没有被保存。为了能够保存它,我必须在数据库表“cataloginventory_stock_item”中创建此属性。
只有这样,每个产品的值才会被保存。
For me (in Magento v 1.3.2.4) creating attributes the usual way (Catalog>Attributes>Manage Attributes) didn’t work in this case, as the value for that attribute didn’t get saved. In order to be able to save it I had to create this attribute in database table ”cataloginventory_stock_item”.
Only then the value is saved for each product.