PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.15
ووسلام – همگام سازی ووکامرس و باسلام v1.10.15
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
sync-basalam / templates / products / Popups / AddProduct.php

AddProduct.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.15, at templates/products/Popups/AddProduct.php

130 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('ABSPATH') || exit; ?>
2 <div id="basalamAddProductsModal" class="basalam-modal basalam-modal-hidden">
3 <div class="basalam-modal-content basalam-modal-max-width-400">
4 <span class="basalam-modal-close"> <img class="basalam-modal-img-20" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/close.svg'); ?>">
5 </span>
6 <h3 class="basalam-h basalam-modal-font-20">افزودن �
7 حصولات به باسلا�
8 </h3>
9
10 <?php if ($has_active_create_jobs): ?>
11 <!-- Display when jobs are running -->
12 <div id="active-create-jobs-info" class="basalam-job-info-block">
13 <div class="basalam-p basalam-warning-bg">
14 <h4 class="basalam-h basalam-warning-header">
15 ع�
16 لیات افزودن �
17 حصولات در حال اجرا است
18 </h4>
19
20 <p class="basalam-warning-text">
21 <strong>نوع ع�
22 لیات:</strong> افزودن �
23 حصولات به باسلا�
24
25 </p>
26
27 <?php
28 $total_create_count = $single_create_count;
29 if ($total_create_count > 0): ?>
30 <p class="basalam-warning-text">
31 <strong>تعداد �
32 حصولات در صف:</strong>
33 <span class="basalam-warning-badge">
34 <?php echo esc_html($total_create_count > 1000 ? '+1000' : $total_create_count); ?> �
35 حصول
36 </span>
37 </p>
38 <?php endif; ?>
39
40 <p class="basalam-warning-justify-10">
41 لطفاً تا پایان ع�
42 لیات جاری صبر کنید. �
43 ی‌توانید پیشرفت را از صفحه لاگ‌ها �
44 شاهده کنید.
45 </p>
46 </div>
47 </div>
48 <?php elseif ($vendorCanCreate): ?>
49 <p class="basalam-p basalam-onboarding-paragraph">آیا �
50 ط�
51 ئن هستید که �
52 ی‌خواهید ه�
53 ه �
54 حصولات را به باسلا�
55 ارسال کنید؟</p>
56 <?php endif; ?>
57
58 <?php if (!$vendorCanCreate): ?>
59 <div class="basalam-p basalam-warning-bg">
60 <strong>ایجاد �
61 حصول در دسترس نیست.</strong>
62 <p><?php echo esc_html($vendorSyncState['message']); ?></p>
63 </div>
64 <?php elseif (!$has_active_create_jobs): ?>
65 <form method="POST" action="#" id="basalamAddProductsForm">
66 <?php wp_nonce_field('create_products_to_basalam_nonce', '_wpnonce'); ?>
67 <input type="hidden" name="action" value="create_products_to_basalam">
68 <div class="basalam-form-group basalam-form-group-margin">
69 <label for="include_out_of_stock" class="basalam-p">
70 <input type="checkbox" id="include_out_of_stock" name="include_out_of_stock" value="1" class="basalam-checkbox-scale">
71 افزودن �
72 حصولات نا�
73 وجود نیز انجا�
74 شود
75 </label>
76 </div>
77
78 <button type="<?php echo $has_active_create_jobs ? 'button' : 'submit'; ?>"
79 class="basalam-primary-button basalam-p basalam-product-action-button"
80 <?php echo $has_active_create_jobs ? 'disabled class="basalam-button-disabled-bg"' : ''; ?>>
81 <img src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/submit.svg'); ?>" alt="">
82 ارسال �
83 حصولات
84 </button>
85 </form>
86 <?php endif; ?>
87
88 <?php if ($has_active_create_jobs): ?>
89 <!-- Cancel button for new job system -->
90 <form method="POST" action="<?php echo esc_url(admin_url('admin-post.php')) ?>" id="BasalamCancelCreateJobs">
91 <?php wp_nonce_field('cancel_create_jobs_nonce', '_wpnonce'); ?>
92 <input type="hidden" name="action" value="cancel_create_jobs">
93 <button type="submit" class="basalam-primary-button basalam-p basalam-danger-button-full">
94 <img class="basalam-danger-button-img" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/trash.svg'); ?>">
95
96 توقف کردن ع�
97 لیات
98 </button>
99 </form>
100 <?php endif; ?>
101 </div>
102 </div>
103
104 <div id="BasalamConfirmModal" class="basalam-modal basalam-modal-display-none">
105 <div class="basalam-modal-content basalam-modal-max-width-400">
106 <span class="basalam-modal-close">
107 <img class="basalam-modal-img-20" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/close.svg'); ?>">
108 </span>
109 <h3 class="basalam-h basalam-modal-font-20">تأیید نهایی</h3>
110 <p class="basalam-p basalam-padding-top-bold">
111 اگر برخی از �
112 حصولات ش�
113 ا پیش‌تر به صورت دستی یا با استفاده از ابزارهای دیگر در باسلا�
114 ثبت شده‌اند، ابتدا لاز�
115 است از طریق قابلیت "اتصال �
116 حصولات" آن‌ها را �
117 تصل کنید. پس از آن از این گزینه استفاده ن�
118 ایید.
119 </p>
120 <div class="basalam-margin-top-15-flex-end">
121 <button class="basalam-modal-close basalam-primary-button basalam-p basalam-danger-button basalam-width-fill-available">
122 انصراف
123 </button>
124 <button id="confirmSubmitBtn" class="basalam-primary-button basalam-p basalam-width-fill-available">
125 تایید و ارسال
126 </button>
127 </div>
128 </div>
129 </div>
130