| @@ -4,9 +4,8 @@ | ||
| 4 | 4 | use SyncBasalam\Admin\Components\SettingPageComponents; |
| 5 | 5 | use SyncBasalam\Admin\Components\CommonComponents; |
| 6 | 6 | |
| 7 | 7 | defined('ABSPATH') || exit; |
| 8 | - | |
| 9 | 8 | ?> |
| 10 | 9 | <form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post"> |
| 11 | 10 | <input type="hidden" name="action" value="basalam_update_setting"> |
| 12 | 11 | <?php wp_nonce_field('basalam_update_setting_nonce', '_wpnonce'); ?> |
| @@ -21,10 +20,10 @@ | ||
| 21 | 20 | <p class="basalam-p basalam-p__small">تنظیمات پیشرفته افزونه</p> |
| 22 | 21 | |
| 23 | 22 | <div class="basalam-form-row"> |
| 24 | 23 | <div class="basalam-form-group basalam-form-group-full basalam-p"> |
| 25 | - <?php echo CommonComponents::renderLabelWithTooltip('افزایش قیمت در باسلام', 'درصد یا مبلغ ثابتی که به قیمت محصولات در باسلام اضافه میشود. میتواند به صورت درصد(1-100) یا مبلغ ثابت(101-∞) باشد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 26 | - <?php SettingPageComponents::renderDefaultPercentage(); ?> | |
| 24 | + <?php echo CommonComponents::renderLabelWithTooltip('تغییر قیمت در باسلام', 'درصد یا مبلغ ثابتی که به قیمت محصولات در باسلام اعمال میشود. مقدار مثبت افزایش و مقدار منفی کاهش قیمت است؛ حداکثر 35 درصد افزایش و 35 درصد کاهش. مقادیر خارج از بازه -100 تا 100 به عنوان مبلغ ثابت تومانی در نظر گرفته میشوند. با فعال کردن «کارمزد دستهبندی» قیمت بر اساس کارمزد دستهبندی باسلام محاسبه میشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 25 | + <?php SettingPageComponents::renderPriceChange(); ?> | |
| 27 | 26 | </div> |
| 28 | 27 | </div> |
| 29 | 28 | <div class="basalam-form-row basalam-form-row-two-col"> |
| 30 | 29 | <div class="basalam-form-group basalam-p"> |
| @@ -113,10 +112,10 @@ | ||
| 113 | 112 | <?php echo CommonComponents::renderLabelWithTooltip('مدیریت زمان آمادهسازی', 'باسلام برای هر دستهبندی حداکثر زمان آمادهسازی مشخصی دارد. اگر زمان آمادهسازی تنظیمشده بیشتر از این حد باشد: «کاهش به حداکثر مجاز» مقدار را به سقف دستهبندی کاهش داده و محصول را ارسال میکند؛ «عدم ارسال و ثبت لاگ» محصول را ارسال نمیکند و فقط یک لاگ ثبت میشود. مثال: اگر زمان آمادهسازی شما ۱۰ روز باشد و سقف دستهبندی باسلام ۷ روز باشد، در حالت «کاهش به حداکثر مجاز» مقدار ۷ روز به باسلام ارسال میشود و در حالت «عدم ارسال و ثبت لاگ» محصول ارسال نمیشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> |
| 114 | 113 | <?php SettingPageComponents::renderCapPreparationToCategoryMax(); ?> |
| 115 | 114 | </div> |
| 116 | 115 | <div class="basalam-form-group basalam-p"> |
| 117 | - <?php echo CommonComponents::renderLabelWithTooltip('افزایش قیمت در باسلام', 'درصد یا مبلغ ثابتی که به قیمت محصولات در باسلام اضافه میشود. میتواند به صورت درصد(1-100) یا مبلغ ثابت(101-∞) باشد.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 118 | - <?php SettingPageComponents::renderDefaultPercentage(); ?> | |
| 116 | + <?php echo CommonComponents::renderLabelWithTooltip('تغییر قیمت در باسلام', 'درصد یا مبلغ ثابتی که به قیمت محصولات در باسلام اعمال میشود. مقدار مثبت افزایش و مقدار منفی کاهش قیمت است؛ حداکثر 35 درصد افزایش و 35 درصد کاهش. مقادیر خارج از بازه -100 تا 100 به عنوان مبلغ ثابت تومانی در نظر گرفته میشوند. با فعال کردن «کارمزد دستهبندی» قیمت بر اساس کارمزد دستهبندی باسلام محاسبه میشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 117 | + <?php SettingPageComponents::renderPriceChange(); ?> | |
| 119 | 118 | </div> |
| 120 | 119 | <div class="basalam-form-group basalam-p"> |
| 121 | 120 | <?php echo CommonComponents::renderLabelWithTooltip('جهت رند کردن قیمت در باسلام', 'نحوه رند کردن قیمتها در باسلام. میتوانید قیمت را به بالا، پایین یا بدون رند تنظیم کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> |
| 122 | 121 | <?php SettingPageComponents::renderDefaultRound(); ?> |
| @@ -145,13 +144,13 @@ | ||
| 145 | 144 | <?php echo CommonComponents::renderLabelWithTooltip('پسوند نام محصولات', 'متنی که به انتهای نام همه محصولات در باسلام اضافه میشود. برای مثال: "- اصل و کیفیت تضمین"'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> |
| 146 | 145 | <?php SettingPageComponents::renderSuffixProductTitle(); ?> |
| 147 | 146 | </div> |
| 148 | 147 | <div class="basalam-form-group basalam-p"> |
| 149 | - <?php echo CommonComponents::renderLabelWithTooltip('پسوند از ویژگی محصول', 'با فعال کردن این گزینه، میتوانید یکی از ویژگیهای محصول را به عنوان پسوند به نام محصول اضافه کنید (مثلا نام ناشر کتاب).'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 148 | + <?php echo CommonComponents::renderLabelWithTooltip('پسوند از ویژگی محصول', 'با فعال کردن این گزینه، میتوانید مقدار یک یا چند ویژگی محصول را به عنوان پسوند به نام محصول اضافه کنید (مثلا نام ناشر و نویسنده کتاب).'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 150 | 149 | <?php SettingPageComponents::renderAttributeSuffixEnabled(); ?> |
| 151 | 150 | </div> |
| 152 | 151 | <div class="basalam-form-group basalam-p basalam-attribute-suffix-container"> |
| 153 | - <?php echo CommonComponents::renderLabelWithTooltip('نام ویژگی برای پسوند', 'نام ویژگی محصول که میخواهید به عنوان پسوند به نام محصول اضافه شود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 152 | + <?php echo CommonComponents::renderLabelWithTooltip('نام ویژگی برای پسوند', 'نام ویژگیها را به ترتیب دلخواه با کاما (انگلیسی یا فارسی) جدا کنید؛ مثلا «ناشر, نویسنده». مقدار ویژگیهای موجود با کاما داخل پرانتز به انتهای نام محصول اضافه میشود.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> | |
| 154 | 153 | <?php SettingPageComponents::renderAttributeSuffixPriority(); ?> |
| 155 | 154 | </div> |
| 156 | 155 | <div class="basalam-form-group basalam-p"> |
| 157 | 156 | <?php echo CommonComponents::renderLabelWithTooltip('محصولات عمده', 'مشخص کنید که آیا همه محصولات به صورت عمده به باسلام ارسال شوند یا اینکه فقط برخی یا هیچ کدام ، از صفحه ویرایش محصول در ووکامرس میتوانید وضعیت عمده محصول را در باسلام مشخص کنید.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML built and escaped inside the component/callback. ?> |
| @@ -315,5 +314,5 @@ | ||
| 315 | 314 | </button> |
| 316 | 315 | </center> |
| 317 | 316 | </form> |
| 318 | 317 | </section> |
| 319 | -</div> | |
| 318 | +</div> | |