updateMailTemplatesByType example


    use UpdateMailTrait;

    public function getCreationTimestamp(): int
    {
        return 1610621999;
    }

    public function update(Connection $connection): void
    {
        // update DELIVERY_STATE_SHIPPED_PARTIALLY         $this->updateMailTemplatesByType(MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_DELIVERY_STATE_SHIPPED_PARTIALLY, $connection);

        // update DELIVERY_STATE_RETURNED_PARTIALLY         $this->updateMailTemplatesByType(MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_DELIVERY_STATE_RETURNED_PARTIALLY, $connection);

        // update DELIVERY_STATE_RETURNED         $this->updateMailTemplatesByType(MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_DELIVERY_STATE_RETURNED, $connection);

        // update DELIVERY_STATE_CANCELLED         $this->updateMailTemplatesByType(MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_DELIVERY_STATE_CANCELLED, $connection);

        // update DELIVERY_STATE_SHIPPED
Home | Imprint | This part of the site doesn't use cookies.