diff --git a/.htaccess b/.htaccess
index 26e03f9..4fb5ddf 100755
--- a/.htaccess
+++ b/.htaccess
@@ -105,63 +105,63 @@ AddDefaultCharset utf-8
# кеширование в браузере на стороне пользователя
-
- ExpiresActive On
- ExpiresDefault "access 7 days"
- ExpiresByType application/javascript "access plus 1 year"
- ExpiresByType text/javascript "access plus 1 year"
- ExpiresByType text/css "access plus 1 year"
- ExpiresByType text/html "access plus 7 day"
- ExpiresByType text/x-javascript "access 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType image/jpg "access plus 1 year"
- ExpiresByType image/x-icon "access 1 year"
- ExpiresByType application/x-shockwave-flash "access 1 year"
-
-
-AddOutputFilterByType DEFLATE text/plain
-AddOutputFilterByType DEFLATE text/html
-AddOutputFilterByType DEFLATE text/xml
-AddOutputFilterByType DEFLATE text/css
-AddOutputFilterByType DEFLATE application/xml
-AddOutputFilterByType DEFLATE application/xhtml+xml
-AddOutputFilterByType DEFLATE application/rss+xml
-AddOutputFilterByType DEFLATE application/javascript
-AddOutputFilterByType DEFLATE application/x-javascript
-BrowserMatch ^Mozilla/4 gzip-only-text/html
-BrowserMatch ^Mozilla/4\.0[678] no-gzip
-BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-Header append Vary User-Agent
-RewriteEngine On
-AddEncoding gzip .gz
-RewriteCond %{HTTP:Accept-encoding} gzip
-RewriteCond %{REQUEST_FILENAME}.gz -f
-RewriteRule ^(.*)$ $1.gz [QSA,L]
-
-# Cache-Control
-
-# 30 дней
-
- Header set Cache-Control "max-age=2592000, public"
-
- # 30 дней
-
- Header set Cache-Control "max-age=2592000, public"
-
- # 2 дня
-
- Header set Cache-Control "max-age=172800, public, must-revalidate"
-
- # 1 день
-
- Header set Cache-Control "max-age=172800, private, must-revalidate"
-
-
-
-#Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE
-
-BrowserMatch "MSIE" force-no-vary
-BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
-
\ No newline at end of file
+#
+# ExpiresActive On
+# ExpiresDefault "access 7 days"
+# ExpiresByType application/javascript "access plus 1 year"
+# ExpiresByType text/javascript "access plus 1 year"
+# ExpiresByType text/css "access plus 1 year"
+# ExpiresByType text/html "access plus 7 day"
+# ExpiresByType text/x-javascript "access 1 year"
+# ExpiresByType image/gif "access plus 1 year"
+# ExpiresByType image/jpeg "access plus 1 year"
+# ExpiresByType image/png "access plus 1 year"
+# ExpiresByType image/jpg "access plus 1 year"
+# ExpiresByType image/x-icon "access 1 year"
+# ExpiresByType application/x-shockwave-flash "access 1 year"
+#
+#
+#AddOutputFilterByType DEFLATE text/plain
+#AddOutputFilterByType DEFLATE text/html
+#AddOutputFilterByType DEFLATE text/xml
+#AddOutputFilterByType DEFLATE text/css
+#AddOutputFilterByType DEFLATE application/xml
+#AddOutputFilterByType DEFLATE application/xhtml+xml
+#AddOutputFilterByType DEFLATE application/rss+xml
+#AddOutputFilterByType DEFLATE application/javascript
+#AddOutputFilterByType DEFLATE application/x-javascript
+#BrowserMatch ^Mozilla/4 gzip-only-text/html
+#BrowserMatch ^Mozilla/4\.0[678] no-gzip
+#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+#Header append Vary User-Agent
+#RewriteEngine On
+#AddEncoding gzip .gz
+#RewriteCond %{HTTP:Accept-encoding} gzip
+#RewriteCond %{REQUEST_FILENAME}.gz -f
+#RewriteRule ^(.*)$ $1.gz [QSA,L]
+#
+## Cache-Control
+#
+## 30 дней
+#
+# Header set Cache-Control "max-age=2592000, public"
+#
+# # 30 дней
+#
+# Header set Cache-Control "max-age=2592000, public"
+#
+# # 2 дня
+#
+# Header set Cache-Control "max-age=172800, public, must-revalidate"
+#
+# # 1 день
+#
+# Header set Cache-Control "max-age=172800, private, must-revalidate"
+#
+#
+#
+##Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE
+#
+#BrowserMatch "MSIE" force-no-vary
+#BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
+#
\ No newline at end of file
diff --git a/common/modules/product/views/variant/_form.php b/common/modules/product/views/variant/_form.php
index d771b83..abcbf05 100644
--- a/common/modules/product/views/variant/_form.php
+++ b/common/modules/product/views/variant/_form.php
@@ -44,6 +44,39 @@ use kartik\select2\Select2;
],
]); ?>
+ = $form->field($model, 'variants')->widget(MultipleInput::className(), [
+ 'columns' => [
+ [
+ 'name' => '',
+ 'type' => MultipleInputColumn::TYPE_TEXT_INPUT,
+ 'title' => Yii::t('product', 'Name'),
+ ],
+ [
+ 'name' => 'sku',
+ 'type' => MultipleInputColumn::TYPE_TEXT_INPUT,
+ 'title' => Yii::t('product', 'SKU'),
+ ],
+ [
+ 'name' => 'price',
+ 'type' => MultipleInputColumn::TYPE_TEXT_INPUT,
+ 'title' => Yii::t('product', 'Price'),
+ ],
+ [
+ 'name' => 'price_old',
+ 'type' => MultipleInputColumn::TYPE_TEXT_INPUT,
+ 'title' => Yii::t('product', 'Old Price'),
+ ],
+ [
+ 'name' => 'product_unit_id',
+ 'type' => MultipleInputColumn::TYPE_DROPDOWN,
+ 'title' => Yii::t('product', 'Unit'),
+ 'items' => ArrayHelper::map(\common\modules\product\models\ProductUnit::find()->all(), 'product_unit_id', 'name'),
+ ],
+
+ ],
+ ]);
+ ?>
+
= $form->field($model, 'product_unit_id')->dropDownList(
ArrayHelper::map(\common\modules\product\models\ProductUnit::find()->all(), 'product_unit_id', 'name'),
[
--
libgit2 0.21.4