在内容创建上设置 UberCart 库存水平?
目前,如果您在 UberCart 中创建产品,则必须先创建产品,然后才能访问库存选项卡以设置库存水平。我希望能够在创建产品时设置库存水平。即就在我设置“标价”的地方下方。我该怎么做?
Currently if you create a product in UberCart, you have to first create the product before accessing the stock tab to set stock levels. I want to be able to set the stock levels when I create the product. I.e. Right below where I set the "list price". How would I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,这需要做一些工作。
或者,您可以创建一个验证和提交函数,而不是 2 和 3,并将它们附加到表单的 #validate 和 #submit 数组中。
Well, that's going to involve a little work.
Alternately, instead of 2 and 3, you could mess around with creating a validation and submit function, and append them to the #validate and #submit arrays of the form.
对于在 Drupal 7 中寻找基于模块的解决方案来解决此问题的人们,“Ubercart Product Power Tools”模块的最新开发版本具有出色的每个产品设置,可以在创建时激活库存跟踪,并设置默认值产品的库存数量和阈值。
For people looking for a module-based solution to this problem in Drupal 7, the latest dev version of the "Ubercart Product Power Tools" module has an excellent per-product setting to make stock-tracking active on creation, as well as set default stock quantity and threshold for the product.