Questions tagged «magento-1.6»

4
如何检查客户是否已订阅新闻通讯
我需要检查客户是否订阅了新闻快讯。目前,我正在使用此代码,但未返回任何内容: if (Mage::getSingleton('customer/session')->isLoggedIn()) { $status = Mage::getSingleton('customer/session')->getCustomer()->getIsSubscribed(); echo $status; die(); } 这什么也没给。任何想法如何使它工作?

1
运行migration:delta时,导致“文档中实体不匹配”的原因
我已成功将magento 1.4.1数据库升级到1.4.2,然后又升级到1.6.0。我还能够成功地将 1.6.0数据库中的data 设置和迁移到Magento 2.1.2数据库中。(情况看起来很棒!...) 从那以后,我一直在2.1.2站点上工作;添加新主题,更改某些设置以及编辑cms块。我所做的所有这些假设都是我可以运行一个migration:delta并带来新的客户和订单数据,因为这是启动新站点真正需要的。(我没有在2.1.2数据库中创建任何新订单或客户) 在尝试迁移:delta(在我再次执行1.4.1-> 1.6.0升级过程以获取当前的实时数据之后)时,我遇到了缺少deltalog表(前缀为m2cl *)的错误。我从迁移的第一个数据库中提取了全部为空的那些表。这使我可以运行带有以下警告的migration:delta: 2017-01-25 23:32:29][INFO][mode: delta][stage: delta delivering][step: Customer Attributes Step]: started [2017-01-25 23:32:30][INFO][mode: delta][stage: volume check][step: Customer Attributes Step]: started 100% [============================] Remaining Time: 1 sec [2017-01-25 23:32:30][WARNING]: Mismatch of entities in the document: customer_entity [2017-01-25 23:32:30][WARNING]: Mismatch of entities in the document: …


2
重写资源模型时如何处理不推荐使用的“ Mysql4”类
我必须重写Mage_Catalog_Model_Resource_Category_Flat。 Mage_Catalog_Model_Resource_Eav_Mysql4_Category_FlatMagento 1.7中仍然存在旧的资源类,以实现向后兼容,并扩展了新的资源类。 在代码库中搜索完整的模型别名resource_eav_mysql4_category_flat不会产生任何结果。但是config.xmlMage_Catalog的包含以下行: <deprecatedNode>catalog_resource_eav_mysql4</deprecatedNode> 而且我不知道在哪里以及如何deprecatedNode使用。 重写这种资源模型时会遇到什么困难?我应该重写两个类吗?还是可以安全地忽略mysql4类?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.