Programmatically send shipping/tracking mail

前端 未结 2 554
忘掉有多难
忘掉有多难 2021-02-04 19:43

In Magento 1.4, I am successfully using this code to mark an order as Complete and add a shipping tracking code to it :

$order = Mage::getModel(\'sales/order\')-         


        
2条回答
  •  孤街浪徒
    2021-02-04 20:03

                    if($shipment){
                        if(!$shipment->getEmailSent()){
                            $shipment->sendEmail(true);
                            $shipment->setEmailSent(true);
                            $shipment->save();                          
                        }
                    }   
    

提交回复
热议问题