28 lines
716 B
PHP
28 lines
716 B
PHP
<?php
|
|
|
|
namespace KupShop\KupShopBundle\Email;
|
|
|
|
class OrderCreateEmail extends OrderEmail
|
|
{
|
|
protected static $name = 'Vytvoření nové objednávky';
|
|
protected static $type = 'ORDER_CREATE';
|
|
protected static $priority = 10;
|
|
|
|
protected $subject = 'Děkujeme za Vaši objednávku {KOD}';
|
|
protected $template = 'email/email_order_create.tpl';
|
|
|
|
public function sendEmail($message, $logComment = null)
|
|
{
|
|
return parent::sendEmail($message, $this->comment);
|
|
}
|
|
|
|
public function getMicrodata(): array
|
|
{
|
|
if ($microdata = parent::getMicrodata()) {
|
|
$microdata['orderStatus'] = 'https://schema.org/OrderProcessing';
|
|
}
|
|
|
|
return $microdata;
|
|
}
|
|
}
|