簡體   English   中英

magento 1.9.x“位置”列

[英]magento 1.9.x 'position' column

我試圖了解表'catalog_category_product'的'position'列的目的是什么:

      +-------------+------------------+------+-----+---------+-------+
      | Field       | Type             | Null | Key | Default | Extra |
      +-------------+------------------+------+-----+---------+-------+
      | category_id | int(10) unsigned | NO   | PRI | 0       |       |
      | product_id  | int(10) unsigned | NO   | PRI | 0       |       |
      **| position    | int(11)          | NO   |     | 0       |       |**
      +-------------+------------------+------+-----+---------+-------+

表catalog_category_entity:

      | Field            | Type                 | Null | Key | Default |
      +----------------------+------+-----+---------+---+
      | entity_id        | int(10) unsigned     | NO   | PRI | NULL    | | 
      |entity_type_id   | smallint(5) unsigned | NO   |     | 0       |                
      | attribute_set_id | smallint(5) unsigned | NO   |     | 0       |                
      | parent_id        | int(10) unsigned     | NO   |     | 0       |                
      | created_at       | timestamp            | YES  |     | NULL    |                
      | updated_at       | timestamp            | YES  |     | NULL    |                
      | path             | varchar(255)         | NO   | MUL | NULL    |                
      **| position         | int(11)              | NO   |     | NULL    |**                
      | level            | int(11)              | NO   | MUL | 0       |                
      | children_count   | int(11)              | NO   |     | NULL    |                
      +----------------------+------+-----+---------+----------------+

根據我的理解,類別中的定位有兩種類型,一種屬於類別彼此相對的位置,一種用於指定產品以特定順序顯示它們的位置,這就是我認為擁有位置列的目的。

希望我回答了你的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM