120 $list[] = self::getForgottenCart(1);
121 $list[] = self::getCanceledOrder();
122 $list[] = self::getPaidOrder();
123 $list[] = self::getDontBuy(90);
124 $list[] = self::getDontAuth(111);
125 $list[] = self::getDontBuy(180);
126 $list[] = self::getDontBuy(360);
141 'CODE' =>
'sale_basket',
148 'MODULE_ID' =>
'sale',
149 'CODE' =>
'basket_forgotten',
150 'FIELDS' => array(
'DAYS_BASKET_FORGOTTEN' => $days)
155 'MODULE_ID' =>
'sale',
156 'CODE' =>
'order_paid',
164 'SUBJECT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_1_SUBJECT'),
165 'MESSAGE' => self::getMailTemplate(array(
166 'TITLE' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_1_SUBJECT'),
167 'TEXT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_1_MESSAGE', static::getMessagePlaceHolders()),
171 'TIME_SHIFT' => 1440,
172 'SUBJECT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_2_SUBJECT'),
173 'MESSAGE' => self::getMailTemplate(array(
174 'TITLE' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_2_SUBJECT'),
175 'TEXT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_2_MESSAGE', static::getMessagePlaceHolders()),
179 'TIME_SHIFT' => 1440,
180 'SUBJECT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_3_SUBJECT'),
181 'MESSAGE' => self::getMailTemplate(array(
182 'TITLE' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_3_SUBJECT'),
183 'TEXT' =>
Loc::getMessage(
'PRESET_FORGOTTEN_BASKET_LETTER_3_MESSAGE', static::getMessagePlaceHolders()),
189 foreach ($list[
'CHAIN'] as $index => $letter)
191 $letter[
'TEMPLATE_TYPE'] = Sender\Templates\Type::getCode(
Sender\Templates\Type::BASE);
192 $letter[
'TEMPLATE_ID'] = mb_strtoupper($list[
'CODE']).
'_' . $index;
193 $list[
'CHAIN'][$index] = $letter;
208 'CODE' =>
'sale_order_cancel',
215 'MODULE_ID' =>
'sale',
216 'CODE' =>
'order_cancel',
222 'MODULE_ID' =>
'sale',
223 'CODE' =>
'order_paid',
231 'SUBJECT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_1_SUBJECT'),
232 'MESSAGE' => self::getMailTemplate(array(
234 'TEXT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_1_MESSAGE', static::getMessagePlaceHolders()),
238 'TIME_SHIFT' => 1440,
239 'SUBJECT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_2_SUBJECT'),
240 'MESSAGE' => self::getMailTemplate(array(
242 'TEXT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_2_MESSAGE', static::getMessagePlaceHolders()),
246 'TIME_SHIFT' => 1440,
247 'SUBJECT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_3_SUBJECT'),
248 'MESSAGE' => self::getMailTemplate(array(
250 'TEXT' =>
Loc::getMessage(
'PRESET_CANCELED_ORDER_LETTER_3_MESSAGE', static::getMessagePlaceHolders()),
256 foreach ($list[
'CHAIN'] as $index => $letter)
258 $letter[
'TEMPLATE_TYPE'] = Sender\Templates\Type::getCode(
Sender\Templates\Type::BASE);
259 $letter[
'TEMPLATE_ID'] = mb_strtoupper($list[
'CODE']).
'_' . $index;
260 $list[
'CHAIN'][$index] = $letter;
275 'CODE' =>
'sale_order_pay',
282 'MODULE_ID' =>
'sale',
283 'CODE' =>
'order_paid',
289 'MODULE_ID' =>
'sale',
290 'CODE' =>
'order_paid',
297 'TIME_SHIFT' => 1440,
299 'MESSAGE' => self::getMailTemplate(array(
301 'TEXT' =>
Loc::getMessage(
'PRESET_PAID_ORDER_LETTER_1_MESSAGE', static::getMessagePlaceHolders()),
305 'TIME_SHIFT' => 1440,
307 'MESSAGE' => self::getMailTemplate(array(
309 'TEXT' =>
Loc::getMessage(
'PRESET_PAID_ORDER_LETTER_2_MESSAGE', static::getMessagePlaceHolders()),
313 'TIME_SHIFT' => 1440,
315 'MESSAGE' => self::getMailTemplate(array(
317 'TEXT' =>
Loc::getMessage(
'PRESET_PAID_ORDER_LETTER_3_MESSAGE', static::getMessagePlaceHolders()),
321 'TIME_SHIFT' => 1440,
323 'MESSAGE' => self::getMailTemplate(array(
325 'TEXT' =>
Loc::getMessage(
'PRESET_PAID_ORDER_LETTER_4_MESSAGE', static::getMessagePlaceHolders()),
329 'TIME_SHIFT' => 1440,
331 'MESSAGE' => self::getMailTemplate(array(
333 'TEXT' =>
Loc::getMessage(
'PRESET_PAID_ORDER_LETTER_5_MESSAGE', static::getMessagePlaceHolders()),
339 foreach ($list[
'CHAIN'] as $index => $letter)
341 $letter[
'TEMPLATE_TYPE'] = Sender\Templates\Type::getCode(
Sender\Templates\Type::BASE);
342 $letter[
'TEMPLATE_ID'] = mb_strtoupper($list[
'CODE']).
'_' . $index;
343 $list[
'CHAIN'][$index] = $letter;
359 'CODE' =>
'sale_order_not_create'.$days,
360 'NAME' =>
Loc::getMessage(
'PRESET_DONT_BUY_NAME', array(
'%DAYS%' => $days)),
361 'DESC_USER' =>
Loc::getMessage(
'PRESET_DONT_BUY_DESC_USER', array(
'%DAYS%' => $days)),
366 'MODULE_ID' =>
'sale',
367 'CODE' =>
'dont_buy',
368 'FIELDS' => array(
'DAYS_DONT_BUY' => $days),
369 'RUN_FOR_OLD_DATA' => ($days > 300 ?
'Y' :
'N')
374 'MODULE_ID' =>
'sale',
375 'CODE' =>
'order_paid',
383 'SUBJECT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_1_SUBJECT_' . $days),
384 'MESSAGE' => self::getMailTemplate(array(
385 'TITLE' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_1_SUBJECT_' . $days),
386 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_1_MESSAGE_' . $days, static::getMessagePlaceHolders()),
390 'TIME_SHIFT' => 1440,
391 'SUBJECT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_2_SUBJECT_' . $days),
392 'MESSAGE' => self::getMailTemplate(array(
393 'TITLE' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_2_SUBJECT_' . $days),
394 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_2_MESSAGE_' . $days, static::getMessagePlaceHolders()),
398 'TIME_SHIFT' => 1440,
399 'SUBJECT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_3_SUBJECT_' . $days),
400 'MESSAGE' => self::getMailTemplate(array(
401 'TITLE' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_3_SUBJECT_' . $days),
402 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_BUY_LETTER_3_MESSAGE_' . $days, static::getMessagePlaceHolders()),
408 foreach ($list[
'CHAIN'] as $index => $letter)
410 $letter[
'TEMPLATE_TYPE'] = Sender\Templates\Type::getCode(
Sender\Templates\Type::BASE);
411 $letter[
'TEMPLATE_ID'] = mb_strtoupper($list[
'CODE']).
'_' . $index;
412 $list[
'CHAIN'][$index] = $letter;
428 'CODE' =>
'sale_user_dontauth',
431 'DESC' =>
Loc::getMessage(
'PRESET_DONT_AUTH_DESC', array(
'%DAYS%' => $days)),
435 'MODULE_ID' =>
'sender',
436 'CODE' =>
'user_dontauth',
437 'FIELDS' => array(
'DAYS_DONT_AUTH' => $days)
442 'MODULE_ID' =>
'sender',
443 'CODE' =>
'user_auth',
452 'MESSAGE' => self::getMailTemplate(array(
454 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_AUTH_LETTER_1_MESSAGE', static::getMessagePlaceHolders()),
458 'TIME_SHIFT' => 1440,
460 'MESSAGE' => self::getMailTemplate(array(
462 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_AUTH_LETTER_2_MESSAGE', static::getMessagePlaceHolders()),
466 'TIME_SHIFT' => 1440,
468 'MESSAGE' => self::getMailTemplate(array(
470 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_AUTH_LETTER_3_MESSAGE', static::getMessagePlaceHolders()),
474 'TIME_SHIFT' => 1440,
476 'MESSAGE' => self::getMailTemplate(array(
478 'TEXT' =>
Loc::getMessage(
'PRESET_DONT_AUTH_LETTER_4_MESSAGE', static::getMessagePlaceHolders()),
484 foreach ($list[
'CHAIN'] as $index => $letter)
486 $letter[
'TEMPLATE_TYPE'] = Sender\Templates\Type::getCode(
Sender\Templates\Type::BASE);
487 $letter[
'TEMPLATE_ID'] = mb_strtoupper($list[
'CODE']).
'_' . $index;
488 $list[
'CHAIN'][$index] = $letter;