简体   繁体   English

Drupal 7中的产品库存通知

[英]Product stock notification in drupal 7

I have used drupal 7.38. 我用过drupal 7.38。 My question is, I have used drupal commerce module. 我的问题是,我已经使用了drupal Commerce模块。 I have added 100 products in my site some products are in stock and some product are out of stocks. 我在网站上添加了100种产品,有些产品有库存,有些产品无库存。 Show how can I know which product is out of stock.How can I create a views for out of product stocks. 显示如何知道缺货的产品。如何创建缺货的视图。

Add a new View and select 'Commerce Product' as the type. 添加一个新的视图,然后选择“商业产品”作为类型。 新增检视

Configure other settings as required but the key thing to show products that are out of stock is to add a Filter Criteria for Stock amount. 根据需要配置其他设置,但要显示缺货的产品,关键是添加“库存量过滤标准”。

Click 'Add' next to Filter Criteria and select the Stock field. 单击过滤条件旁边的“添加”,然后选择“库存”字段。 库存过滤器

Then select 'Is greater than' and '0' as the criteria. 然后选择“大于”和“ 0”作为标准。 标准设置

This will give you a list of products with no stock. 这将为您提供没有库存的产品清单。 You'll need to add other fields and settings etc as required for your View. 您需要根据需要添加其他字段和设置等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM