dqdl6469 2015-07-13 16:22
浏览 23

Magento - 选择性电子邮件订单确认

this could be a tricky question: I sell a lot of different items on my store to a point where I would like confirmation email to vary according to the item sold. example, all my Mens item sold would go to one person and all my women items sold go to another person.

Is this possible in magento?

  • 写回答

1条回答 默认 最新

  • douyan1944 2015-07-14 09:27
    关注

    It's possible, but you'd have to do some work.

    Add a new module to your installation, let this module add a new product attribute lets say email.

    Then in the module rewrite Mage_Sales_Model_Order so you can override the queueNewOrderEmail method (I'm assuming you're at 1.9, if not, you should update). Make sure you only override that one method, don't copy the entire file, it'll be less work to check nothing's changed when you upgrade.

    In that method you end up replacing $copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId); with a piece of code that will iterate through your order items and fetch the emails associated with it's products.

    That way if an order has items for different people they'll all get an email.

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大