php - Magento - selective email order confirmation -
this tricky question: sell lot of different items on store point confirmation email vary according item sold. example, mens item sold go 1 person , women items sold go person.
is possible in magento?
it's possible, you'd have work.
add new module installation, let module add new product attribute lets email.
then in module rewrite mage_sales_model_order can override queueneworderemail method (i'm assuming you're @ 1.9, if not, should update). make sure override 1 method, don't copy entire file, it'll less work check nothing's changed when upgrade.
in method end replacing $copymethod = mage::getstoreconfig(self::xml_path_email_copy_method, $storeid); piece of code iterate through order items , fetch emails associated it's products.
that way if order has items different people they'll email.
Comments
Post a Comment