Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productedit.php
1<?php
3
8
9Loc::loadMessages(__FILE__);
10
18{
26 public static function getDefaultValues($subscribe = false)
27 {
28 $vatInclude = ((string)Main\Config\Option::get('catalog', 'default_product_vat_included') == 'Y' ? 'Y' : 'N');
29 $subscribe = ($subscribe === true);
30 if ($subscribe)
31 {
32 return array(
33 'QUANTITY' => '',
34 'QUANTITY_RESERVED' => '',
35 'VAT_ID' => 0,
36 'VAT_INCLUDED' => $vatInclude,
37 'QUANTITY_TRACE_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
38 'CAN_BUY_ZERO_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
39 'SUBSCRIBE_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
40 'PURCHASING_PRICE' => '',
41 'PURCHASING_CURRENCY' => '',
42 'BARCODE_MULTI' => '',
43 'PRICE_TYPE' => '',
44 'RECUR_SCHEME_TYPE' => '',
45 'RECUR_SCHEME_LENGTH' => '',
46 'TRIAL_PRICE_ID' => '',
47 'WITHOUT_ORDER' => '',
48 );
49 }
50 return array(
51 'QUANTITY' => '',
52 'QUANTITY_RESERVED' => '',
53 'VAT_ID' => 0,
54 'VAT_INCLUDED' => $vatInclude,
55 'QUANTITY_TRACE_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
56 'CAN_BUY_ZERO_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
57 'SUBSCRIBE_ORIG' => Catalog\ProductTable::STATUS_DEFAULT,
58 'PURCHASING_PRICE' => '',
59 'PURCHASING_CURRENCY' => '',
60 'WEIGHT' => '',
61 'WIDTH' => '',
62 'LENGTH' => '',
63 'HEIGHT' => '',
64 'MEASURE' => '',
65 'BARCODE_MULTI' => ''
66 );
67 }
68}
static getDefaultValues($subscribe=false)
static loadMessages($file)
Definition loc.php:64