Oui, avec un code comme ça :
public function sendSellerNotificationEmail(SellerNotificationAmpSellerOrder $sellerOrder, $type = NULL) {
// Sending notification to sellers
$ampSellerQuery = new AmpSellerQuery();
$ampSeller = $ampSellerQuery->findOneById($sellerOrder->getAmpSellerId());
$this->mailer->sendEmailMessage(
'order_notification', [ConfigQuery::getStoreEmail() => ConfigQuery::getStoreName()], [$ampSeller->getEmail() => $ampSeller->getTitle()], [
'order_id' => $sellerOrder->getId(),
'order_ref' => $sellerOrder->getSellerOrderRef(),
'type' => $type,
]
);
}
Il y a des templates pour les emails dans templates/email/mmes supertemplatesperso ou default de base.
Last edited by GillesL (13-09-2018 13:37:08)