PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.7
ووسلام – همگام سازی ووکامرس و باسلام v1.10.7
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.7, at templates/products/sections/Settings.php

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