]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-148] красивая урл для картинки 3
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 13 Nov 2024 09:58:27 +0000 (12:58 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 13 Nov 2024 09:58:27 +0000 (12:58 +0300)
erp24/api2/controllers/YandexMarketController.php
erp24/views/matrix_erp/index.php

index 6500e703bc4ae5d7bc9d63deb06d37f8bce79ffd..62bd6dbefef827720e2635108a4d9cbb371cd806 100644 (file)
@@ -17,7 +17,7 @@ use yii_app\records\ProductsClass;
 
 class YandexMarketController extends Controller
 {
-    public function actionTest() {
+    public function actionCreateCards() {
         Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
 //http://localhost:5555/yandex-market/test
 
index 376e3547841c18a145a951d77dcd8ca3592b5ab4..635f4baa28a71488b2b7e16bee1a0d3f93af7dd2 100644 (file)
@@ -70,6 +70,15 @@ $this->params['breadcrumbs'][] = $this->title;
         </div>
     <?php endif; ?>
 
+    <div class="row mb-4">
+        <div class="col-12">
+            <?= Html::a("Создать карточки для яндекс-маркетплейса",
+                'https://api2.erp-flowers.ru/yandex-market/create-cards',
+                ['class' => 'btn btn-primary', 'target' => '_blank']
+            ) ?>
+        </div>
+    </div>
+
     <div class="row">
         <div class="col-xl-12 col-lg-12 col-md-12">
             <div class="card">