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