2011-11-19 62 views
0

我想在magento中添加额外的新闻快递订阅类型。我可以这样做吗?如何在magento中添加额外的新闻快递类型

目前我只有一个选择“总认购”但我想添加额外的订阅类型,如 “新品上市”,“每周更新”。请给我建议这样做。

由于提前

回答

0

有缺省没有管理界面Magento中添加额外的通讯组列表。 从应用程序/设计/前端/基/默认/模板/客户/表格/ newsletter.phtml的摘录:

<ul class="form-list"> 
     <li class="control"><input type="checkbox" name="is_subscribed" id="subscription" value="1" title="<?php echo $this->__('General Subscription') ?>"<?php if($this->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="subscription"><?php echo $this->__('General Subscription') ?></label></li> 
    </ul> 

正如你所看到的,总认购仅仅是被订阅电子报标签。 多,从应用程序/代码/核心/法师/新闻/控制器/的saveAction ManageController.php:

try { 
     Mage::getSingleton('customer/session')->getCustomer() 
     ->setStoreId(Mage::app()->getStore()->getId()) 
     ->setIsSubscribed((boolean)$this->getRequest()->getParam('is_subscribed', false)) 
     ->save(); 
     if ((boolean)$this->getRequest()->getParam('is_subscribed', false)) { 
      Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been saved.')); 
     } else { 
      Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been removed.')); 
     } 
    } 

对待is_subscribed布尔(假/真),所以你的选择是:

0

没有嵌入功能在Magento做到这一点。

我使用Mailchimp的MageMonkey扩展及其系统来处理所有我的通讯和电子邮件相关任务。

它很容易使用,您可以根据需要创建列表(组)。

干杯

相关问题