PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.27
ووسلام – همگام سازی ووکامرس و باسلام v1.10.27
1.1.26 1.10.27 1.10.24 1.10.25 1.10.23 1.10.22 1.10.21 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 All 60 releases
sync-basalam / templates / products / sections / Settings.php

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

694 lines 30.8 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 ثلا نا�
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 وجود با کا�
379 ا داخل پرانتز به انتهای نا�
380 �
381 حصول اضافه �
382 ی‌شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
383 <?php SettingPageComponents::renderAttributeSuffixPriority(); ?>
384 </div>
385 <div class="basalam-form-group basalam-p">
386 <?php echo CommonComponents::renderLabelWithTooltip('�
387 حصولات ع�
388 ده', '�
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::renderWholesaleProducts(); ?>
403 </div>
404 <div class="basalam-form-group basalam-p">
405 <?php echo CommonComponents::renderLabelWithTooltip('ویژگی ها به توضیحات', 'آیا ویژگی‌های �
406 حصول به توضیحات �
407 حصول در باسلا�
408 اضافه شود یا خیر.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
409 <?php SettingPageComponents::renderAttrAddToDesc(); ?>
410 </div>
411 <div class="basalam-form-group basalam-p">
412 <?php echo CommonComponents::renderLabelWithTooltip('توضیحات کوتاه به توضیحات', 'آیا توضیحات کوتاه �
413 حصول به توضیحات کا�
414 ل �
415 حصول در باسلا�
416 اضافه شود یا خیر.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
417 <?php SettingPageComponents::renderShortAttrAddToDesc(); ?>
418 </div>
419 <div class="basalam-form-group basalam-p">
420 <?php echo CommonComponents::renderLabelWithTooltip('قی�
421 ت �
422 حصول در باسلا�
423 ', 'انتخاب کنید که قی�
424 ت اصلی یا قی�
425 ت حراجی �
426 حصول به باسلا�
427 ارسال شود ، در صورتی که قی�
428 ت حراجی را انتخاب کنید و �
429 حصولی قی�
430 ت حراجی نداشته باشد قی�
431 ت اصلی به باسلا�
432 ارسال �
433 یشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
434 <?php SettingPageComponents::renderProductPrice(); ?>
435 </div>
436 <div class="basalam-form-group basalam-p">
437 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
438 '�
439 دت ز�
440 ان تخفیف �
441 حصول',
442 'در باسلا�
443 هر تخفیف بازه ز�
444 انی �
445 شخصی دارد. از این بخش �
446 ی‌توانید �
447 دت اعتبار تخفیف �
448 حصولات را تعیین کنید. با هر بار بروزرسانی �
449 حصول، این ز�
450 ان نیز به‌روز خواهد شد.'
451 ); ?>
452 <?php SettingPageComponents::renderProductDiscountDuration(); ?>
453 </div>
454 <div class="basalam-form-group basalam-p">
455 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
456 'کاهش درصد تخفیف',
457 'این �
458 قدار هنگا�
459 اع�
460 ال قی�
461 ت خط خورده در باسلا�
462 استفاده �
463 یشود. اگر درصد تخفیف �
464 حصول از این عدد بیشتر باشد، ه�
465 ین عدد از آن ک�
466 �
467 ی‌شود. �
468 ثال: اگر این �
469 قدار 10 باشد و تخفیف �
470 حصول 25٪ باشد، درصد تخفیف در باسلا�
471 15% �
472 یشود. اگر تخفیف �
473 حصول 8٪ باشد (ک�
474 تر یا �
475 ساوی 10)، بدون تغییر ه�
476 ان 8٪ ارسال �
477 ی‌شود.'
478 ); ?>
479 <?php SettingPageComponents::renderDiscountReductionPercent(); ?>
480 </div>
481 <div class="basalam-form-group basalam-p">
482 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
483 '�
484 نبع ویدیو �
485 حصول',
486 '�
487 شخص کنید ویدیو �
488 حصول از کجا خوانده شود. اگر قالب یا افزونه‌ای فیلد ویدیو دارد، گزینه «ارث‌بری» را انتخاب کنید. در غیر این صورت �
489 ی‌توانید از باکس اختصاصی افزونه در صفحه ویرایش �
490 حصول استفاده کنید.'
491 ); ?>
492 <?php SettingPageComponents::renderVideoSource(); ?>
493 </div>
494 <div class="basalam-form-group basalam-p basalam-video-inherit-container">
495 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
496 'روش ارث‌بری ویدیو',
497 'حالت تشخیص خودکار، meta key های رایج قالب‌ها و افزونه‌ها (Woodmart، Flatsome، YITH و ...) را ا�
498 تحان �
499 ی‌کند. در حالت دستی ش�
500 ا meta key دقیق را وارد �
501 ی‌کنید.'
502 ); ?>
503 <?php SettingPageComponents::renderVideoInheritMode(); ?>
504 </div>
505 <div class="basalam-form-group basalam-p basalam-video-meta-key-container">
506 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
507 'Meta key ویدیو',
508 'دقیقاً ه�
509 ان نا�
510 meta_key که قالب یا افزونه ش�
511 ا برای ذخیره ویدیو استفاده �
512 ی‌کند را اینجا وارد کنید.'
513 ); ?>
514 <?php SettingPageComponents::renderVideoMetaKey(); ?>
515 </div>
516 </div>
517 <div id="Basalam-custom-fields" class="basalam-element-hidden basalam-custom-fields-box">
518 <label class="basalam-label basalam-p">فیلدهایی که هنگا�
519 آپدیت �
520 حصول به باسلا�
521 ارسال �
522 یشوند </label><br>
523 <?php SettingPageComponents::renderSyncProductFields(); ?>
524 </div>
525
526 <!-- Category Mapping Section -->
527 <div class="basalam-form-group basalam-p basalam-margin-top-25-bottom-10">
528 <?php echo CommonComponents::renderLabelWithTooltip('تغییر نا�
529 ویژگی دسته بندی', 'ا�
530 کان تعریف �
531 ترادف برای ویژگی‌های �
532 حصول بین ووکا�
533 رس و باسلا�
534 ، برای �
535 ثال "چاپ کننده" در ووکا�
536 رس به "ناشر" در باسلا�
537 تبدیل شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
538 <?php SettingPageComponents::renderMapOptionsProduct(); ?>
539 </div>
540 <div>
541 <?php
542 global $wpdb;
543 $categoryOptionsManager = new CategoryOptions($wpdb);
544 $data = $categoryOptionsManager->getAll();
545 SettingPageComponents::renderCategoryOptionsMapping($data); ?>
546 </div>
547 </div>
548
549 <!-- Tab Content: Order Settings -->
550 <div id="order-settings" class="basalam-tab-content">
551 <div class="basalam-tab-header">
552 <span class="dashicons dashicons-cart"></span>
553 <h4 class="basalam-h">تنظی�
554 ات سفارشات</h4>
555 </div>
556 <div class="basalam-form-row">
557 <div class="basalam-form-group basalam-p">
558 <?php echo CommonComponents::renderLabelWithTooltip('وضعیت سفارش های باسلا�
559 ', ' در صورتی که وضعیت سفارش ، وضعیت های اختصاصی ووسلا�
560 باشد ا�
561 کان �
562 دیریت سفارش(تایید سفارش ، لغو سفارش ، ارسال کد رهگیری و...) از صفحه ویرایش سفارش وجود دارد ، در غیر این صورت سفارشات باسلا�
563 با وضعیت پیشفرض ووکارس "در حال انجا�
564 " به ووکا�
565 رس اضافه �
566 یشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
567 <?php SettingPageComponents::renderOrderStatus(); ?>
568 </div>
569 <div class="basalam-form-group basalam-p">
570 <?php echo CommonComponents::renderLabelWithTooltip('روش ح�
571 ل و نقل سفارشات', 'روش ح�
572 ل و نقل پیش‌فرض برای سفارشات باسلا�
573 . "ح�
574 ل و نقل باسلا�
575 " نا�
576 روش را از باسلا�
577 �
578 ی‌گیرد. یا �
579 ی‌توانید یکی از روش‌های ح�
580 ل و نقل فعال ووکا�
581 رس را انتخاب کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
582 <?php SettingPageComponents::renderShippingMethod(); ?>
583 </div>
584 <div class="basalam-form-group basalam-p">
585 <?php echo CommonComponents::renderLabelWithTooltip('پیشوند نا�
586 سفارش‌دهنده', '�
587 تنی که به ابتدای نا�
588 کوچک (نا�
589 ) سفارش‌دهنده در ووکا�
590 رس اضافه �
591 ی‌شود. برای �
592 ثال: "آقای" یا "خان�
593 "'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
594 <?php SettingPageComponents::renderCustomerPrefixName(); ?>
595 </div>
596 <div class="basalam-form-group basalam-p">
597 <?php echo CommonComponents::renderLabelWithTooltip('پسوند نا�
598 سفارش‌دهنده', '�
599 تنی که به انتهای نا�
600 خانوادگی (فا�
601 یلی) سفارش‌دهنده در ووکا�
602 رس اضافه �
603 ی‌شود. برای �
604 ثال: "عزیز"'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?>
605 <?php SettingPageComponents::renderCustomerSuffixName(); ?>
606 </div>
607 </div>
608 </div>
609
610 <!-- Tab Content: Operation Settings -->
611 <div id="operation-settings" class="basalam-tab-content">
612 <div class="basalam-tab-header">
613 <span class="dashicons dashicons-performance"></span>
614 <h4 class="basalam-h">تنظی�
615 ات اجرای ع�
616 لیات</h4>
617 </div>
618 <div class="basalam-form-row">
619 <div class="basalam-form-group basalam-p">
620 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
621 'تشخیص خودکار سرعت',
622 'فعال کردن تشخیص خودکار: سیست�
623 بر اساس �
624 نابع سرور (ر�
625 ، CPU، دیسک، شبکه) به طور خودکار بهترین سرعت را تعیین �
626 ی‌کند. غیرفعال کردن: ش�
627 ا �
628 قدار را دستی تنظی�
629 کنید.'
630 ); ?>
631 <?php SettingPageComponents::renderTasksPerMinuteAutoToggle(); ?>
632 </div>
633 <div class="basalam-form-group basalam-p basalam-tasks-manual-container">
634 <?php echo CommonComponents::renderLabelWithTooltip( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback.
635 'تعداد تسک در دقیقه (دستی)',
636 'تعداد تسک‌هایی که در هر دقیقه اجرا �
637 ی‌شوند. این تنظی�
638 بر سرعت پردازش �
639 حصولات و ع�
640 لیات‌های پس‌ز�
641 ینه تأثیر �
642 ی‌گذارد. �
643 قدار بالاتر = سرعت بیشتر (بین 1 تا 60)'
644 ); ?>
645 <?php SettingPageComponents::renderTasksPerMinute(); ?>
646 </div>
647 <?php SettingPageComponents::renderTasksPerMinuteInfo(); ?>
648 </div>
649 </div>
650
651 <script>
652 (function ($) {
653 $(function () {
654 var $source = $('.basalam-video-source-select');
655 var $mode = $('.basalam-video-inherit-mode-select');
656 var $inheritContainer = $('.basalam-video-inherit-container');
657 var $metaKeyContainer = $('.basalam-video-meta-key-container');
658
659 function syncVideoFields() {
660 var source = $source.val();
661 var mode = $mode.val();
662
663 if (source === 'plugin_box') {
664 $inheritContainer.hide();
665 $metaKeyContainer.hide();
666 return;
667 }
668
669 $inheritContainer.show();
670 if (mode === 'manual') {
671 $metaKeyContainer.show();
672 } else {
673 $metaKeyContainer.hide();
674 }
675 }
676
677 $source.on('change', syncVideoFields);
678 $mode.on('change', syncVideoFields);
679 syncVideoFields();
680 });
681 })(jQuery);
682 </script>
683
684 <center class="basalam-center-block basalam-submit-section basalam-submit-section-hidden" id="basalam-advanced-submit-section">
685 <button type="submit" class="basalam-primary-button basalam-p basalam-btn-fill">
686 <span class="dashicons dashicons-saved"></span>
687 ذخیره تنظی�
688 ات
689 </button>
690 </center>
691 </form>
692 </section>
693 </div>
694