PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.0
ووسلام – همگام سازی ووکامرس و باسلام v1.10.0
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 / sections / Settings.php

Settings.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.0, at templates/products/sections/Settings.php

661 lines 29.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use SyncBasalam\Admin\Product\Category\CategoryOptions;
4 use SyncBasalam\Admin\Components\SettingPageComponents;
5 use SyncBasalam\Admin\Components\CommonComponents;
6
7 defined('ABSPATH') || exit;
8
9 ?>
10 <form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post">
11 <input type="hidden" name="action" value="basalam_update_setting">
12 <?php wp_nonce_field('basalam_update_setting_nonce', '_wpnonce'); ?>
13
14 <div id="sync-basalam-onboarding-settings" class="basalam-action-card basalam-relative">
15 <div class="basalam-info-icon basalam-info-icon-small">
16 <a href="https://www.aparat.com/v/fdcbuj0" target="_blank">
17 <img src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . "/icons/info-black.svg"); ?>" alt="اطلاعات" class="basalam-img-22 basalam-cursor-pointer">
18 </a>
19 </div>
20 <h3 class="basalam-h">تنظی�
21 ات</h3>
22 <p class="basalam-p basalam-p__small">تنظی�
23 ات پیشرفته افزونه</p>
24
25 <div class="basalam-form-row">
26 <div class="basalam-form-group basalam-form-group-full basalam-p">
27 <?php echo CommonComponents::renderLabelWithTooltip('افزایش قی�
28 ت در باسلا�
29 ', 'درصد یا �
30 بلغ ثابتی که به قی�
31 ت �
32 حصولات در باسلا�
33 اضافه �
34 ی‌شود. �
35 ی‌تواند به صورت درصد(1-100) یا �
36 بلغ ثابت(101-) باشد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
37 <?php SettingPageComponents::renderDefaultPercentage(); ?>
38 </div>
39 </div>
40 <div class="basalam-form-row basalam-form-row-two-col">
41 <div class="basalam-form-group basalam-p">
42 <?php echo CommonComponents::renderLabelWithTooltip('�
43 وجودی �
44 حصولات در باسلا�
45 ', '�
46 وجودی پیش‌فرضی که برای �
47 حصولات ووکا�
48 رس بدون �
49 وجودی �
50 شخص شده در باسلا�
51 نظر گرفته �
52 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
53 <?php SettingPageComponents::renderDefaultStockQuantity(); ?>
54 </div>
55 <div class="basalam-form-group basalam-p">
56 <?php echo CommonComponents::renderLabelWithTooltip('قی�
57 ت �
58 حصول در باسلا�
59 ', 'انتخاب کنید که قی�
60 ت اصلی یا قی�
61 ت حراجی �
62 حصول به باسلا�
63 ارسال شود ، در صورتی که قی�
64 ت حراجی را انتخاب کنید و �
65 حصولی قی�
66 ت حراجی نداشته باشد قی�
67 ت اصلی به باسلا�
68 ارسال �
69 یشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
70 <?php SettingPageComponents::renderProductPrice(); ?>
71 </div>
72 </div>
73
74 <center class="basalam-center">
75 <button type="submit" class="basalam-primary-button basalam-p basalam-btn-fill basalam-btn-no-margin-bottom">
76 <span class="dashicons dashicons-saved"></span>
77 ذخیره تنظی�
78 ات
79 </button>
80 </center>
81 </form>
82
83 <center class="basalam-center-margin">
84 <button
85 type="button"
86 id="sync-basalam-onboarding-advanced-settings"
87 class="basalam-secondary-button basalam-p"
88 onclick="document.getElementById('basalam-modal').style.display='block';">
89 <span class="dashicons dashicons-arrow-down-alt2"></span>
90 تنظی�
91 ات بیشتر
92 </button>
93 </center>
94 <div class="basalam-p basalam-flex-responsive">
95 <div class="basalam-flex-align-center-33">
96 <?php echo CommonComponents::renderLabelWithTooltip('دیباگ', 'حالت دیباگ فقط برای توسعه‌دهندگان توصیه �
97 ی‌شود.', 'right'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
98 </div>
99 <?php SettingPageComponents::renderDeveloperMode(); ?>
100 </div>
101 </div>
102
103 <div id="basalam-modal" class="basalam-modal">
104 <section id="sep-section" class="basalam-action-card basalam-bg-modal">
105
106 <span onclick="document.getElementById('basalam-modal').style.display='none';" class="basalam-modal-close-abs">✖️</span>
107
108 <h3 class="basalam-h basalam-modal-title">تنظی�
109 ات پیشرفته</h3>
110
111 <!-- Tabs Navigation -->
112 <div class="basalam-tabs-nav">
113 <button type="button" class="basalam-tab-btn active" data-tab="product-settings">
114 <span class="dashicons dashicons-products"></span>
115 تنظی�
116 ات �
117 حصول
118 </button>
119 <button type="button" class="basalam-tab-btn" data-tab="order-settings">
120 <span class="dashicons dashicons-cart"></span>
121 تنظی�
122 ات سفارشات
123 </button>
124 <button type="button" class="basalam-tab-btn" data-tab="operation-settings">
125 <span class="dashicons dashicons-performance"></span>
126 تنظی�
127 ات اجرای ع�
128 لیات
129 </button>
130 </div>
131
132 <form id="basalam-advanced-settings-form" action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post" class="basalam-margin-bottom-20">
133 <input type="hidden" name="action" value="basalam_update_setting">
134 <?php wp_nonce_field('basalam_update_setting_nonce', '_wpnonce'); ?>
135
136 <!-- Tab Content: Product Settings -->
137 <div id="product-settings" class="basalam-tab-content active">
138 <div class="basalam-tab-header">
139 <span class="dashicons dashicons-products"></span>
140 <h4 class="basalam-h">تنظی�
141 ات �
142 حصول</h4>
143 </div>
144 <div class="basalam-form-row">
145 <div class="basalam-form-group basalam-p">
146 <?php echo CommonComponents::renderLabelWithTooltip('وزن �
147 حصولات (گر�
148 )', 'وزن پیش‌فرض که برای �
149 حصولات ووکا�
150 رس بدون وزن �
151 شخص شده در باسلا�
152 نظر گرفته �
153 ی‌شود. این �
154 قدار در �
155 حاسبه هزینه ح�
156 ل و نقل باسلا�
157
158 ه�
159 است.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
160 <?php SettingPageComponents::renderDefaultWeight(); ?>
161 </div>
162 <div class="basalam-form-group basalam-p">
163 <?php echo CommonComponents::renderLabelWithTooltip('وزن بسته بندی (گر�
164 )', 'وزن بسته‌بندی که به وزن �
165 حصول اضافه �
166 ی‌شود و در �
167 حاسبه ح�
168 ل و نقل هزینه ارسال باسلا�
169 اه�
170 یت دارد. شا�
171 ل جعبه، برچسب و سایر �
172 واد بسته‌بندی.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
173 <?php SettingPageComponents::renderPackageWeight(); ?>
174 </div>
175 <div class="basalam-form-group basalam-p">
176 <?php echo CommonComponents::renderLabelWithTooltip('ز�
177 ان آ�
178 اده‌سازی (روز)', 'تعداد روزهایی که برای آ�
179 اده‌سازی و بسته‌بندی �
180 حصولات نیاز دارید. این ز�
181 ان به �
182 شتریان باسلا�
183 ن�
184 ایش داده �
185 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
186 <?php SettingPageComponents::renderDefaultPreparation(); ?>
187 </div>
188 <div class="basalam-form-group basalam-p">
189 <?php echo CommonComponents::renderLabelWithTooltip('�
190 دیریت ز�
191 ان آ�
192 اده‌سازی', 'باسلا�
193 برای هر دسته‌بندی حداکثر ز�
194 ان آ�
195 اده‌سازی �
196 شخصی دارد. اگر ز�
197 ان آ�
198 اده‌سازی تنظی�
199 ‌شده بیشتر از این حد باشد: «کاهش به حداکثر �
200 جاز» �
201 قدار را به سقف دسته‌بندی کاهش داده و �
202 حصول را ارسال �
203 ی‌کند؛ «عد�
204 ارسال و ثبت لاگ» �
205 حصول را ارسال ن�
206 ی‌کند و فقط یک لاگ ثبت �
207 ی‌شود. �
208 ثال: اگر ز�
209 ان آ�
210 اده‌سازی ش�
211 ا ۱۰ روز باشد و سقف دسته‌بندی باسلا�
212 ۷ روز باشد، در حالت «کاهش به حداکثر �
213 جاز» �
214 قدار ۷ روز به باسلا�
215 ارسال �
216 ی‌شود و در حالت «عد�
217 ارسال و ثبت لاگ» �
218 حصول ارسال ن�
219 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
220 <?php SettingPageComponents::renderCapPreparationToCategoryMax(); ?>
221 </div>
222 <div class="basalam-form-group basalam-p">
223 <?php echo CommonComponents::renderLabelWithTooltip('افزایش قی�
224 ت در باسلا�
225 ', 'درصد یا �
226 بلغ ثابتی که به قی�
227 ت �
228 حصولات در باسلا�
229 اضافه �
230 ی‌شود. �
231 ی‌تواند به صورت درصد(1-100) یا �
232 بلغ ثابت(101-) باشد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
233 <?php SettingPageComponents::renderDefaultPercentage(); ?>
234 </div>
235 <div class="basalam-form-group basalam-p">
236 <?php echo CommonComponents::renderLabelWithTooltip('جهت رند کردن قی�
237 ت در باسلا�
238 ', 'نحوه رند کردن قی�
239 ت‌ها در باسلا�
240 . �
241 ی‌توانید قی�
242 ت را به بالا، پایین یا بدون رند تنظی�
243 کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
244 <?php SettingPageComponents::renderDefaultRound(); ?>
245 </div>
246 <div class="basalam-form-group basalam-p">
247 <?php echo CommonComponents::renderLabelWithTooltip('�
248 وجودی �
249 حصولات', '�
250 وجودی پیش‌فرضی که برای �
251 حصولات ووکا�
252 رس بدون �
253 وجودی �
254 شخص شده در باسلا�
255 در نظر گرفته �
256 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
257 <?php SettingPageComponents::renderDefaultStockQuantity(); ?>
258 </div>
259 <div class="basalam-form-group basalam-p">
260 <?php echo CommonComponents::renderLabelWithTooltip('�
261 وجودی ا�
262 ن', 'اگر �
263 وجودی �
264 حصول در ووکا�
265 رس برابر یا ک�
266 تر از این عدد باشد، �
267 حصول در باسلا�
268 به صورت نا�
269 وجود ن�
270 ایش داده �
271 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
272 <?php SettingPageComponents::renderSafeStock(); ?>
273 </div>
274 <div class="basalam-form-group basalam-p">
275 <?php echo CommonComponents::renderLabelWithTooltip('اولویت �
276 وجودی �
277 حصولات �
278 تغیر', '�
279 شخص کنید در �
280 حصولات �
281 تغیر، اولویت �
282 حاسبه �
283 وجودی بر اساس �
284 وجودی خود �
285 حصول باشد یا �
286 وجودی هر �
287 تغیر. در صورتی که برای اولویت انتخاب‌شده �
288 وجودی ثبت نشده باشد، �
289 وجودی بر اساس اولویت بعدی �
290 حاسبه خواهد شد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
291 <?php SettingPageComponents::renderVariableProductStockSource(); ?>
292 </div>
293 <div class="basalam-form-group basalam-p">
294 <?php echo CommonComponents::renderLabelWithTooltip('فیلد های ارسالی هنگا�
295 آپدیت �
296 حصول', 'انتخاب کنید که هنگا�
297 آپدیت �
298 حصول چه اطلاعاتی به باسلا�
299 ارسال شود. حالت سفارشی ا�
300 کان انتخاب دقیق اطلاعات را �
301 ی‌دهد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
302 <?php SettingPageComponents::renderSyncProduct(); ?>
303 </div>
304 <div class="basalam-form-group basalam-p">
305 <?php echo CommonComponents::renderLabelWithTooltip('پیشوند نا�
306
307 حصولات', '�
308 تنی که به ابتدای نا�
309 ه�
310 ه �
311 حصولات در باسلا�
312 اضافه �
313 ی‌شود. برای �
314 ثال: "فروشگاه �
315 ن -"'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
316 <?php SettingPageComponents::renderPrefixProductTitle(); ?>
317 </div>
318 <div class="basalam-form-group basalam-p">
319 <?php echo CommonComponents::renderLabelWithTooltip('پسوند نا�
320
321 حصولات', '�
322 تنی که به انتهای نا�
323 ه�
324 ه �
325 حصولات در باسلا�
326 اضافه �
327 ی‌شود. برای �
328 ثال: "- اصل و کیفیت تض�
329 ین"'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
330 <?php SettingPageComponents::renderSuffixProductTitle(); ?>
331 </div>
332 <div class="basalam-form-group basalam-p">
333 <?php echo CommonComponents::renderLabelWithTooltip('پسوند از ویژگی �
334 حصول', 'با فعال کردن این گزینه، �
335 ی‌توانید یکی از ویژگی‌های �
336 حصول را به عنوان پسوند به نا�
337
338 حصول اضافه کنید (�
339 ثلا نا�
340 ناشر کتاب).'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
341 <?php SettingPageComponents::renderAttributeSuffixEnabled(); ?>
342 </div>
343 <div class="basalam-form-group basalam-p basalam-attribute-suffix-container">
344 <?php echo CommonComponents::renderLabelWithTooltip('نا�
345 ویژگی برای پسوند', 'نا�
346 ویژگی �
347 حصول که �
348 ی‌خواهید به عنوان پسوند به نا�
349
350 حصول اضافه شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
351 <?php SettingPageComponents::renderAttributeSuffixPriority(); ?>
352 </div>
353 <div class="basalam-form-group basalam-p">
354 <?php echo CommonComponents::renderLabelWithTooltip('�
355 حصولات ع�
356 ده', '�
357 شخص کنید که آیا ه�
358 ه �
359 حصولات به صورت ع�
360 ده به باسلا�
361 ارسال شوند یا اینکه فقط برخی یا هیچ کدا�
362 ، از صفحه ویرایش �
363 حصول در ووکا�
364 رس �
365 یتوانید وضعیت ع�
366 ده �
367 حصول را در باسلا�
368
369 شخص کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
370 <?php SettingPageComponents::renderWholesaleProducts(); ?>
371 </div>
372 <div class="basalam-form-group basalam-p">
373 <?php echo CommonComponents::renderLabelWithTooltip('ویژگی ها به توضیحات', 'آیا ویژگی‌های �
374 حصول به توضیحات �
375 حصول در باسلا�
376 اضافه شود یا خیر.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
377 <?php SettingPageComponents::renderAttrAddToDesc(); ?>
378 </div>
379 <div class="basalam-form-group basalam-p">
380 <?php echo CommonComponents::renderLabelWithTooltip('توضیحات کوتاه به توضیحات', 'آیا توضیحات کوتاه �
381 حصول به توضیحات کا�
382 ل �
383 حصول در باسلا�
384 اضافه شود یا خیر.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
385 <?php SettingPageComponents::renderShortAttrAddToDesc(); ?>
386 </div>
387 <div class="basalam-form-group basalam-p">
388 <?php echo CommonComponents::renderLabelWithTooltip('قی�
389 ت �
390 حصول در باسلا�
391 ', 'انتخاب کنید که قی�
392 ت اصلی یا قی�
393 ت حراجی �
394 حصول به باسلا�
395 ارسال شود ، در صورتی که قی�
396 ت حراجی را انتخاب کنید و �
397 حصولی قی�
398 ت حراجی نداشته باشد قی�
399 ت اصلی به باسلا�
400 ارسال �
401 یشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
402 <?php SettingPageComponents::renderProductPrice(); ?>
403 </div>
404 <div class="basalam-form-group basalam-p">
405 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
406 '�
407 دت ز�
408 ان تخفیف �
409 حصول',
410 'در باسلا�
411 هر تخفیف بازه ز�
412 انی �
413 شخصی دارد. از این بخش �
414 ی‌توانید �
415 دت اعتبار تخفیف �
416 حصولات را تعیین کنید. با هر بار بروزرسانی �
417 حصول، این ز�
418 ان نیز به‌روز خواهد شد.'
419 ); ?>
420 <?php SettingPageComponents::renderProductDiscountDuration(); ?>
421 </div>
422 <div class="basalam-form-group basalam-p">
423 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
424 'کاهش درصد تخفیف',
425 'این �
426 قدار هنگا�
427 اع�
428 ال قی�
429 ت خط خورده در باسلا�
430 استفاده �
431 یشود. اگر درصد تخفیف �
432 حصول از این عدد بیشتر باشد، ه�
433 ین عدد از آن ک�
434
435 ی‌شود. �
436 ثال: اگر این �
437 قدار 10 باشد و تخفیف �
438 حصول 25٪ باشد، درصد تخفیف در باسلا�
439 15% �
440 یشود. اگر تخفیف �
441 حصول 8٪ باشد (ک�
442 تر یا �
443 ساوی 10)، بدون تغییر ه�
444 ان 8٪ ارسال �
445 ی‌شود.'
446 ); ?>
447 <?php SettingPageComponents::renderDiscountReductionPercent(); ?>
448 </div>
449 <div class="basalam-form-group basalam-p">
450 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
451 '�
452 نبع ویدیو �
453 حصول',
454 '�
455 شخص کنید ویدیو �
456 حصول از کجا خوانده شود. اگر قالب یا افزونه‌ای فیلد ویدیو دارد، گزینه «ارث‌بری» را انتخاب کنید. در غیر این صورت �
457 ی‌توانید از باکس اختصاصی افزونه در صفحه ویرایش �
458 حصول استفاده کنید.'
459 ); ?>
460 <?php SettingPageComponents::renderVideoSource(); ?>
461 </div>
462 <div class="basalam-form-group basalam-p basalam-video-inherit-container">
463 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
464 'روش ارث‌بری ویدیو',
465 'حالت تشخیص خودکار، meta key های رایج قالب‌ها و افزونه‌ها (Woodmart، Flatsome، YITH و ...) را ا�
466 تحان �
467 ی‌کند. در حالت دستی ش�
468 ا meta key دقیق را وارد �
469 ی‌کنید.'
470 ); ?>
471 <?php SettingPageComponents::renderVideoInheritMode(); ?>
472 </div>
473 <div class="basalam-form-group basalam-p basalam-video-meta-key-container">
474 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
475 'Meta key ویدیو',
476 'دقیقاً ه�
477 ان نا�
478 meta_key که قالب یا افزونه ش�
479 ا برای ذخیره ویدیو استفاده �
480 ی‌کند را اینجا وارد کنید.'
481 ); ?>
482 <?php SettingPageComponents::renderVideoMetaKey(); ?>
483 </div>
484 </div>
485 <div id="Basalam-custom-fields" class="basalam-element-hidden basalam-custom-fields-box">
486 <label class="basalam-label basalam-p">فیلدهایی که هنگا�
487 آپدیت �
488 حصول به باسلا�
489 ارسال �
490 یشوند </label><br>
491 <?php SettingPageComponents::renderSyncProductFields(); ?>
492 </div>
493
494 <!-- Category Mapping Section -->
495 <div class="basalam-form-group basalam-p basalam-margin-top-25-bottom-10">
496 <?php echo CommonComponents::renderLabelWithTooltip('تغییر نا�
497 ویژگی دسته بندی', 'ا�
498 کان تعریف �
499 ترادف برای ویژگی‌های �
500 حصول بین ووکا�
501 رس و باسلا�
502 ، برای �
503 ثال "چاپ کننده" در ووکا�
504 رس به "ناشر" در باسلا�
505 تبدیل شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
506 <?php SettingPageComponents::renderMapOptionsProduct(); ?>
507 </div>
508 <div>
509 <?php
510 global $wpdb;
511 $categoryOptionsManager = new CategoryOptions($wpdb);
512 $data = $categoryOptionsManager->getAll();
513 SettingPageComponents::renderCategoryOptionsMapping($data); ?>
514 </div>
515 </div>
516
517 <!-- Tab Content: Order Settings -->
518 <div id="order-settings" class="basalam-tab-content">
519 <div class="basalam-tab-header">
520 <span class="dashicons dashicons-cart"></span>
521 <h4 class="basalam-h">تنظی�
522 ات سفارشات</h4>
523 </div>
524 <div class="basalam-form-row">
525 <div class="basalam-form-group basalam-p">
526 <?php echo CommonComponents::renderLabelWithTooltip('وضعیت سفارش های باسلا�
527 ', ' در صورتی که وضعیت سفارش ، وضعیت های اختصاصی ووسلا�
528 باشد ا�
529 کان �
530 دیریت سفارش(تایید سفارش ، لغو سفارش ، ارسال کد رهگیری و...) از صفحه ویرایش سفارش وجود دارد ، در غیر این صورت سفارشات باسلا�
531 با وضعیت پیشفرض ووکارس "در حال انجا�
532 " به ووکا�
533 رس اضافه �
534 یشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
535 <?php SettingPageComponents::renderOrderStatus(); ?>
536 </div>
537 <div class="basalam-form-group basalam-p">
538 <?php echo CommonComponents::renderLabelWithTooltip('روش ح�
539 ل و نقل سفارشات', 'روش ح�
540 ل و نقل پیش‌فرض برای سفارشات باسلا�
541 . "ح�
542 ل و نقل باسلا�
543 " نا�
544 روش را از باسلا�
545
546 ی‌گیرد. یا �
547 ی‌توانید یکی از روش‌های ح�
548 ل و نقل فعال ووکا�
549 رس را انتخاب کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
550 <?php SettingPageComponents::renderShippingMethod(); ?>
551 </div>
552 <div class="basalam-form-group basalam-p">
553 <?php echo CommonComponents::renderLabelWithTooltip('پیشوند نا�
554 سفارش‌دهنده', '�
555 تنی که به ابتدای نا�
556 کوچک (نا�
557 ) سفارش‌دهنده در ووکا�
558 رس اضافه �
559 ی‌شود. برای �
560 ثال: "آقای" یا "خان�
561 "'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
562 <?php SettingPageComponents::renderCustomerPrefixName(); ?>
563 </div>
564 <div class="basalam-form-group basalam-p">
565 <?php echo CommonComponents::renderLabelWithTooltip('پسوند نا�
566 سفارش‌دهنده', '�
567 تنی که به انتهای نا�
568 خانوادگی (فا�
569 یلی) سفارش‌دهنده در ووکا�
570 رس اضافه �
571 ی‌شود. برای �
572 ثال: "عزیز"'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
573 <?php SettingPageComponents::renderCustomerSuffixName(); ?>
574 </div>
575 </div>
576 </div>
577
578 <!-- Tab Content: Operation Settings -->
579 <div id="operation-settings" class="basalam-tab-content">
580 <div class="basalam-tab-header">
581 <span class="dashicons dashicons-performance"></span>
582 <h4 class="basalam-h">تنظی�
583 ات اجرای ع�
584 لیات</h4>
585 </div>
586 <div class="basalam-form-row">
587 <div class="basalam-form-group basalam-p">
588 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
589 'تشخیص خودکار سرعت',
590 'فعال کردن تشخیص خودکار: سیست�
591 بر اساس �
592 نابع سرور (ر�
593 ، CPU، دیسک، شبکه) به طور خودکار بهترین سرعت را تعیین �
594 ی‌کند. غیرفعال کردن: ش�
595 ا �
596 قدار را دستی تنظی�
597 کنید.'
598 ); ?>
599 <?php SettingPageComponents::renderTasksPerMinuteAutoToggle(); ?>
600 </div>
601 <div class="basalam-form-group basalam-p basalam-tasks-manual-container">
602 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
603 'تعداد تسک در دقیقه (دستی)',
604 'تعداد تسک‌هایی که در هر دقیقه اجرا �
605 ی‌شوند. این تنظی�
606 بر سرعت پردازش �
607 حصولات و ع�
608 لیات‌های پس‌ز�
609 ینه تأثیر �
610 ی‌گذارد. �
611 قدار بالاتر = سرعت بیشتر (بین 1 تا 60)'
612 ); ?>
613 <?php SettingPageComponents::renderTasksPerMinute(); ?>
614 </div>
615 <?php SettingPageComponents::renderTasksPerMinuteInfo(); ?>
616 </div>
617 </div>
618
619 <script>
620 (function ($) {
621 $(function () {
622 var $source = $('.basalam-video-source-select');
623 var $mode = $('.basalam-video-inherit-mode-select');
624 var $inheritContainer = $('.basalam-video-inherit-container');
625 var $metaKeyContainer = $('.basalam-video-meta-key-container');
626
627 function syncVideoFields() {
628 var source = $source.val();
629 var mode = $mode.val();
630
631 if (source === 'plugin_box') {
632 $inheritContainer.hide();
633 $metaKeyContainer.hide();
634 return;
635 }
636
637 $inheritContainer.show();
638 if (mode === 'manual') {
639 $metaKeyContainer.show();
640 } else {
641 $metaKeyContainer.hide();
642 }
643 }
644
645 $source.on('change', syncVideoFields);
646 $mode.on('change', syncVideoFields);
647 syncVideoFields();
648 });
649 })(jQuery);
650 </script>
651
652 <center class="basalam-center-block basalam-submit-section basalam-submit-section-hidden" id="basalam-advanced-submit-section">
653 <button type="submit" class="basalam-primary-button basalam-p basalam-btn-fill">
654 <span class="dashicons dashicons-saved"></span>
655 ذخیره تنظی�
656 ات
657 </button>
658 </center>
659 </form>
660 </section>
661 </div>