Questions tagged «newsletter»

2
执行cron时发生PDO异常:新闻稿队列发送失败(“字段列表”中的未知列“ main_table.data”)
处理新闻通讯队列时,cron作业失败。我调试了PDO调用,似乎Magento在这里混淆了各个字段。我不知道Magento(或Zend PDO)从何处选择字段,但看起来完全混淆了: Magento似乎无法获得客户的名字。最后选择是: SELECT eav_entity_type.* FROM eav_entity_type WHERE (eav_entity_type.entity_type_code='customer') DESCRIBE customer_eav_attribute DESCRIBE customer_eav_attribute_website 然后出现带有不存在的字段列表的选择: SELECT main_table.data, main_table.lifetime, main_table.expire, main_table.priority, additional_table.attribute_id, additional_table.is_visible, additional_table.input_filter, additional_table.multiline_count, additional_table.validate_rules, additional_table.is_system, additional_table.sort_order, additional_table.data_model, scope_table.website_id AS scope_website_id, scope_table.is_visible AS scope_is_visible, scope_table.multiline_count AS scope_multiline_count FROM eav_attribute AS main_table INNER JOIN customer_eav_attribute AS additional_table ON additional_table.attribute_id = main_table.attribute_id LEFT …

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


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.