Magento注册表格数据存储在哪里?在哪个数据库表中?
答案 0 :(得分:3)
找出用于获取客户数据的查询,这可能是保存所有数据的EAV结构:
<?php echo Mage::getModel('customer/customer')->getCollection()->getSelect();?>
或者
<?php echo Mage::getModel('customer/customer')->load('customerid')->getSelect();?>
并找出默认收集或加载时可用的字段:
<?php print_r(Mage::getModel('customer/customer')->getCollection()->getFirstItem()->getData());?>
或者
<?php print_r(Mage::getModel('customer/customer')->load('customerid')->getData());?>
答案 1 :(得分:0)
Anton的回答对于通过Magento框架访问数据是正确的。要按字面意思回答您的问题,下表存储了基本的客户数据:
+----------------------------------+
| Tables_in_entp (customer%) |
+----------------------------------+
| customer_address_entity |
| customer_address_entity_datetime |
| customer_address_entity_decimal |
| customer_address_entity_int |
| customer_address_entity_text |
| customer_address_entity_varchar |
| customer_entity |
| customer_entity_datetime |
| customer_entity_decimal |
| customer_entity_int |
| customer_entity_text |
| customer_entity_varchar |
+----------------------------------+