简体   繁体   English

Magento的平面目录可见性列

[英]Magento's flat catalog visibility column

I am almost finishing an exporting system of my flat catalog but I am with a little doubt about this column visibility . 我几乎要完成平面目录的导出系统,但是对此栏的visibility有一点疑问。 I don't know exactly what should I put in there to get only visible and active products. 我不知道该怎么放置在那里,以便只获得可见和活跃的产品。 What can I do to approach this? 我该怎么办? Here is the query that I am using right now: 这是我现在正在使用的查询:

SELECT * FROM catalog_product_flat_1 WHERE visibility=4

The column visbility isn't about the activity status of a product, only where it should be displayed when it's active. visbility性与产品的活动状态visbility ,仅与产品活动时应在何处显示有关。 The visibility column may contain one of the following values: visibility列可能包含以下值之一:

  • 1: Not Visible Individually 1:不可见
  • 2: Catalog 2:目录
  • 3: Search 3:搜索
  • 4: Catalog and Search 4:目录和搜索

So it depends if you also want to get the products that are only visible in the catalog and not the search, if these do actually exists. 因此,这取决于您是否还希望获得仅在目录中可见而不是在搜索中可见的产品(如果确实存在)。 But most likely you indeed to use 4 in your where clause regarding the visibility. 但是最有可能您确实在有关可见性的where子句中使用4

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

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