Where is the table that holds the “Special Price” in Magento?

后端 未结 3 687
旧巷少年郎
旧巷少年郎 2021-01-12 00:31

Im trying to update the \"Special_price\" and \"price\" in bulk with mySQL an a php script, I know the table and row that contains the \"price\" but not the one that contain

3条回答
  •  再見小時候
    2021-01-12 00:57

    Special Price is an attribute of decimal type. First you need to get the attribute id, by applying this sql query: SELECT attribute_id FROM eav_attribute WHERE attribute_code='special_price';

    Then, you can add a special price for any product by inserting a record into catalog_product_entity_decimal table.

提交回复
热议问题