保存“特价"的表在哪里?在 Magento 中?

Where is the table that holds the quot;Special Pricequot; in Magento?(保存“特价的表在哪里?在 Magento 中?)
本文介绍了保存“特价"的表在哪里?在 Magento 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在尝试使用 mySQL 和 php 脚本批量更新特价"和价格",我知道包含价格"的表和行,但不知道包含特价"的表和行.

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 contains the "special_price".

我查看了数据库本身,但仍然没有运气.有任何想法吗?我需要表名和字段名.

I've looks though the database itself and still no luck. Any ideas? I need the table name and the field name.

推荐答案

我是 Magento Question Answers Guild 的成员,因此我建议您修复 API 错误,而不是使用普通的旧 SQL 来更新数据库.正如其他地方提到的,直接更新数据库可能会使 Magento 进入系统无法识别的状态,这可能会导致奇怪的、令人恼火的错误.

My membership in the Magento Question Answers Guild requires me to suggest you work on fixing your API errors instead of using plain old SQL to update the database. As mentioned elsewhere, updating the database directly might put Magento into a state not recognized by the system, which can lead to strange, infuriating errors.

也就是说,特价值将与其他产品属性值一起存储在

That said, the special price value will be stored with the other product attribute values in the

catalog_product_entity_decimal

表.该表有一个attribute_id 列,该列与eav_attribute 表具有外键关系.在 eav_attribute 表中查找代码为 special_price 的属性.attribute_id 和产品的 entity_id 应该足以在 catalog_product_entity_decimal 中找到正确的行.

table. This table has an attribute_id column, which has a foreign key relationship with the eav_attribute table. Look in the eav_attribute table for the attribute with the code special_price. That attribute_id and the product's entity_id should be enough to find the correct row in catalog_product_entity_decimal.

请记住,如果产品没有设置 special_price,则不会存在任何行.还要记住,如果产品在不同的范围级别设置了 special_price,则可能会有不止一行.

Keep in mind no row will exist if a product doesn't have a special_price set. Also keep in mind if a product has a special_price set at different scope levels that there may be more than one row.

这篇关于保存“特价"的表在哪里?在 Magento 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)