Plugin Directory

Changeset 3809098


Ignore:
Timestamp:
11/18/2026 11:03:02 AM (less than one hour ago)
Author:
mrnwp
Message:

Update to version 1.6.0 from GitHub

Location:
anar-toolkit
Files:
12 added
44 edited
1 copied

Legend:

Unmodified
Added
Removed
  • anar-toolkit/tags/1.6.0/anar-login.php

    r3796547 r3809098  
    44 * Plugin URI:        https://mrnwp.ir/anar/
    55 * Description:       SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.
    6  * Version:           1.5.9
     6 * Version:           1.6.0
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
    … …  
    1919defined( 'ABSPATH' ) || exit;
    2020
    21 define( 'ANAR_LOGIN_VERSION', '1.5.9' );
     21define( 'ANAR_LOGIN_VERSION', '1.6.0' );
    2222define( 'ANAR_LOGIN_FILE', __FILE__ );
    2323define( 'ANAR_LOGIN_PATH', plugin_dir_path( __FILE__ ) );
  • anar-toolkit/tags/1.6.0/assets/css/commerce-suite.css

    r3788438 r3809098  
    11.anar-commerce{--ink:#282331;--muted:#8b8295;--line:#ebe6ee;--red:#ae2750;--green:#4c937b;max-width:1500px;margin-inline-end:24px;color:var(--ink);font-family:inherit;font-size:13px;line-height:1.8}.anar-commerce *{box-sizing:border-box}.anar-commerce [hidden]{display:none!important}.anar-commerce a{color:var(--red);text-decoration:none}.anar-suite-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:30px 24px}.anar-suite-brand{display:flex;align-items:center;gap:18px}.anar-suite-brand>img{width:62px;height:62px;object-fit:contain}.anar-suite-brand p{margin:0;font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--red)}.anar-suite-brand p span{font-size:9px;background:#eee9f0;color:var(--muted);border-radius:5px;padding:3px 8px;letter-spacing:0;margin-inline-start:8px}.anar-suite-header h1{font-size:26px;font-weight:700;line-height:1.5;margin:3px 0;letter-spacing:-.5px}.anar-suite-brand .anar-suite-subtitle{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.anar-suite-link{display:flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)!important}.anar-suite-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:28px}.anar-suite-tabs a{position:relative;flex-shrink:0;padding:15px 16px;color:var(--muted);font-weight:600;font-size:12px}.anar-suite-tabs a.is-active{color:var(--red)}.anar-suite-tabs .is-active:after{content:'';position:absolute;inset-inline:16px;bottom:0;height:3px;background:var(--red);border-radius:4px 4px 0 0}.anar-suite-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0 22px}.anar-suite-toolbar h2{font-size:23px;margin:3px 0}.anar-eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#9d93a5}.anar-suite-toolbar form,.anar-table-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.anar-commerce select,.anar-commerce input:is([type=text],[type=number],[type=tel],[type=email],[type=url]),.anar-commerce textarea{background:#fff;border:1px solid #ddd5e3;border-radius:8px;min-height:38px;padding:7px 11px;font:inherit;box-shadow:none;max-width:100%}.anar-commerce .button{min-height:38px;padding:3px 15px;border:1px solid #dfd7e5;border-radius:8px;background:#fff;color:var(--ink);box-shadow:none}.anar-commerce .button-primary{background:var(--red);border-color:var(--red);color:#fff}.anar-commerce :focus-visible{outline:2px solid var(--red);outline-offset:3px}.anar-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin-bottom:24px}.anar-kpi{position:relative;min-width:0;min-height:180px;padding:24px;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.anar-kpi p{font-size:12px;color:#7c7088;margin:12px 0 7px}.anar-kpi strong{display:block;font-size:32px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.5px}.anar-kpi small{display:block;margin-top:8px;color:#a096aa;font-size:10px}.anar-kpi-icon{width:35px;height:35px;padding:7px;border-radius:10px;background:#faf0f4;color:var(--red);font-size:21px}.anar-kpi.hero{background:linear-gradient(135deg,#6e1736,#b32c56);color:#fff;border-color:transparent}.anar-kpi.hero:after{content:'';position:absolute;inset-inline-end:-35px;bottom:-80px;width:200px;height:200px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff04;pointer-events:none}.anar-kpi.hero p,.anar-kpi.hero small{color:#efc5d4}.anar-kpi.hero .anar-kpi-icon{background:#ffffff18;color:#fff}.anar-analytics-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:22px}.anar-commerce-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.anar-commerce-card h2{font-size:16px;font-weight:650;margin:4px 0 20px}.anar-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.anar-chart-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.anar-chart-legend i{display:inline-block;width:7px;height:7px;background:#bd3e66;border-radius:2px}.anar-chart-legend .second{background:#68a68f;margin-inline-start:10px}.anar-chart{display:flex;direction:ltr;gap:12px;height:235px;padding-top:24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#f3eff6 49px,#f3eff6 50px)}.anar-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.anar-chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:180px;width:100%}.anar-chart-bar{width:35%;max-width:22px;min-height:0;border-radius:5px 5px 0 0;background:linear-gradient(#b82e58,#e2abbe)}.anar-chart-bar.second{background:linear-gradient(#43856f,#b4d3c8)}.anar-chart-column small{font-size:9px;color:#a498ad;margin-top:12px}.anar-chart-details{font-size:11px;color:var(--muted);margin-top:15px}.anar-chart-details summary{cursor:pointer}.anar-footnote{font-size:11px;color:var(--muted);line-height:1.9}.anar-donut{width:155px;height:155px;border-radius:50%;padding:13px;background:conic-gradient(var(--green) 0 var(--anar-sweep),#f0eaf3 var(--anar-sweep) 360deg);margin:22px auto}.anar-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;border-radius:50%;height:100%}.anar-donut strong{font-size:29px}.anar-donut span{font-size:11px;color:var(--muted)}.anar-health-list{margin-top:24px}.anar-health-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #f4f0f7;padding:9px 0;font-size:11px;color:var(--muted)}.anar-health-list dd{margin:0;color:var(--ink);font-weight:700}.anar-suite-note{display:flex;align-items:center;gap:12px;background:#efebf3;border-radius:12px;padding:13px 20px;color:#8b7e97;margin:8px 0 22px}.anar-suite-note p{font-size:11px;margin:0}.anar-suite-note .dashicons{flex-shrink:0}.anar-table-filter{margin-block:16px}.anar-table-filter>span{margin-inline-start:auto;color:var(--muted);font-size:11px}.anar-table-card{padding:0;overflow:hidden}.anar-commerce-table{overflow-x:auto}.anar-commerce-table table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap}.anar-commerce-table th{padding:17px 20px;background:#faf8fc;color:#95889f;font-size:11px;font-weight:500;text-align:start;border-bottom:1px solid var(--line)}.anar-commerce-table td{padding:18px 20px;border-bottom:1px solid #f3eff6;font-size:12px}.anar-commerce-table tbody tr:last-child td{border-bottom:0}.anar-commerce-table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.anar-commerce-table tr:hover{background:#fdfbfd}.anar-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;white-space:nowrap;padding:4px 10px;border-radius:20px;background:#f1edf5;color:#80728c}.anar-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.anar-badge--accepted,.anar-badge--converted{background:#eaf4ef;color:#41866d}.anar-badge--active,.anar-badge--pending{background:#fff3e0;color:#a37d39}.anar-badge--running{background:#eaf1fd;color:#507fb6}.anar-badge--failed,.anar-badge--uncertain{background:#fbebf0;color:#b24a6c}.anar-empty-state{text-align:center;padding:55px 15px;white-space:normal}.anar-empty-state>.dashicons{width:55px;height:55px;padding:10px;font-size:35px;color:#c7b7d0;background:#f8f3fa;border-radius:15px}.anar-empty-state h3{font-size:15px;margin:16px 0 7px}.anar-empty-state p{font-size:12px;color:#9d8ea8;margin:0}.anar-pagination{display:flex;gap:10px;justify-content:flex-end;margin:15px 0 26px}.anar-settings-grid,.anar-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.anar-settings-grid .anar-commerce-card,.anar-template-grid .anar-commerce-card{margin:0}.anar-commerce-field{margin-block:16px}.anar-commerce-field label strong{font-size:12px;color:#675773}.anar-commerce-field .description{font-size:11px;color:#a091ab;line-height:1.8}.anar-commerce-field input{margin-top:8px}.anar-template-grid code{font-size:10px;background:#f6f1f9;white-space:normal;word-break:break-word;line-height:2}.anar-template-grid input,.anar-template-grid textarea{width:100%}.anar-suite-savebar{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:12px;margin-block:24px;padding:10px 22px;z-index:5;box-shadow:0 -6px 30px #37203c08}.anar-suite-savebar p.submit{margin:0;padding:0}.anar-campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.anar-campaign-card .dashicons{font-size:27px;width:45px;height:45px;padding:9px;background:#faf0f4;border-radius:12px;color:var(--red)}.anar-campaign-card p{font-size:12px;color:var(--muted)}.anar-setup-step{border-inline-start:3px solid #c88b9e;padding-inline-start:18px;margin-block:20px}
    22@media(max-width:1100px){.anar-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.anar-analytics-grid{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}.anar-card-heading{flex-direction:column;align-items:flex-start}.anar-chart-legend{margin-bottom:15px}.anar-campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.anar-commerce{margin-inline:10px 16px}.anar-suite-header{gap:12px;align-items:flex-start;padding-block:20px}.anar-suite-brand{gap:10px}.anar-suite-brand>img{width:44px;height:44px}.anar-suite-header h1{font-size:17px}.anar-suite-brand .anar-suite-subtitle{font-size:10px}.anar-suite-link{padding:8px;font-size:0}.anar-suite-link .dashicons{font-size:19px}.anar-suite-tabs a{padding:12px;font-size:11px}.anar-suite-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.anar-suite-toolbar h2{font-size:20px}.anar-kpis{gap:10px}.anar-kpi{padding:18px;min-height:160px;border-radius:12px}.anar-kpi strong{font-size:25px}.anar-kpi p{font-size:11px}.anar-kpi small{font-size:9px}.anar-analytics-grid,.anar-settings-grid,.anar-template-grid,.anar-campaign-grid{grid-template-columns:minmax(0,1fr)}.anar-commerce-card{padding:20px}.anar-table-card{padding:0}.anar-chart{gap:6px}.anar-chart-column small{font-size:8px}.anar-suite-note{align-items:flex-start}.anar-commerce-table td,.anar-commerce-table th{padding:15px}}@media(prefers-reduced-motion:reduce){.anar-commerce *{animation:none!important;transition:none!important}}@media print{.anar-suite-tabs,.anar-suite-savebar,.anar-suite-link,.anar-table-filter{display:none!important}.anar-commerce [data-suite-panel]{display:block!important}.anar-commerce{margin:0}.anar-commerce-card{break-inside:avoid}}
     3
     4.anar-store-nav{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:12px}.anar-store-nav a{padding:9px 16px;border-radius:8px;background:#faf2f5;color:#94274e;text-decoration:none}.anar-commerce-card{scroll-margin-top:48px}
  • anar-toolkit/tags/1.6.0/assets/js/admin.js

    r3795335 r3809098  
    88        const showTab = (name) => {
    99                const connection = root.querySelector('.anar-connection-form');
    10                 if (connection) connection.hidden = name === 'messages' || name === 'sending';
     10                if (connection) connection.hidden = name === 'messages' || name === 'sending' || name === 'features';
    1111                const save = root.querySelector('.anar-admin__save');
    1212                if (save) save.hidden = name === 'setup';
  • anar-toolkit/tags/1.6.0/languages/anar-toolkit-fa_IR.l10n.php

    r3796547 r3809098  
    11<?php
    22return array(
    3 'project-id-version' => 'Anar Toolkit 1.5.9',
     3'project-id-version' => 'Anar Toolkit 1.6.0',
    44'language' => 'fa_IR',
    55'plural-forms' => 'nplurals=2; plural=(n > 1);',
    … …  
    4141'Abandoned carts' => 'سبدهای رهاشده',
    4242'Accent' => 'برجسته',
     43'Accent color' => 'رنگ اصلی',
    4344'Accepted by provider' => 'پذیرفته‌شده توسط سرویس‌دهنده',
    4445'Accepted means the SMS provider accepted the request; it does not confirm delivery to the phone. Investigate uncertain results before retrying. Codes and full messages are not shown in the report.' => '«پذیرفته‌شده» یعنی سرویس پیامک درخواست را پذیرفته است و تحویل به گوشی را تأیید نمی‌کند. پیش از تکرار، نتیجهٔ نامشخص را بررسی کنید. کدها و متن کامل پیام در گزارش نمایش داده نمی‌شوند.',
    … …  
    99100'Anar SMS password reset' => 'بازیابی رمز پیامکی انار',
    100101'Anar Toolkit' => 'جعبه‌ابزار انار',
     102'Anar Toolkit - SMS Login, Recovery & Marketing for WooCommerce' => 'جعبه‌ابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس',
    101103'Anar Toolkit overview' => 'وضعیت کلی انار',
    102104'Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce' => 'جعبه‌ابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس',
    103105'Anar Toolkit — WooCommerce SMS' => 'جعبه‌ابزار انار — پیامک ووکامرس',
     106'Anar account button' => 'دکمه ورود و حساب کاربری انار',
    104107'Anar and MRN Forms' => 'انار و MRN Forms',
     108'Anar cart recovery' => 'بازیابی سبد خرید انار',
    105109'Anar customer campaigns' => 'کمپین‌های مشتریان انار',
    106110'Anar customer gift' => 'هدیهٔ مشتری انار',
    … …  
    154158'Balance received' => 'موجودی دریافت شد',
    155159'Balance settings saved.' => 'تنظیمات اعتبار پیامک ذخیره شد.',
     160'Bale OTP' => 'کد ورود در بله',
     161'Bale authentication failed.' => 'احراز هویت پنل بله انجام نشد.',
     162'Bale could not deliver the verification code.' => 'بله نتوانست کد تأیید را ارسال کند.',
     163'Bale supports verification codes only.' => 'بله فقط از ارسال کد تأیید پشتیبانی می‌کند.',
    156164'Before a code is sent, the browser solves a short puzzle in the background, with no image or click. Adaptive mode asks only when one address requests repeatedly or the whole site sees an unusual volume, so SMS floods stop costing you money.' => 'پیش از ارسال کد، مرورگر در پس‌زمینه یک معمای کوتاه را حل می‌کند؛ بدون تصویر و بدون کلیک. در حالت هوشمند فقط وقتی فعال می‌شود که یک نشانی پشت‌سرهم درخواست بدهد یا حجم کل سایت غیرعادی شود؛ بنابراین ارسال انبوه رباتی، هزینهٔ پیامک برای شما نمی‌سازد.',
    157165'Before predicted purchase' => 'پیش از خرید پیش‌بینی‌شده',
    … …  
    164172'Both links must be included in the recovery parameter mapping (or the custom gateway message). Use templates approved for purchase reminders.' => 'هر دو لینک بازیابی و لغو دریافت باید در نگاشت متغیرها (یا متن درگاه سفارشی) وجود داشته باشند. از قالب تأییدشده برای یادآوری خرید استفاده کنید.',
    165173'Brand color' => 'رنگ برند',
     174'Branded' => 'برنددار',
    166175'Build a registration form with your own fields in MRN Forms. Anar verifies the mobile number and creates the WordPress account. Other forms can use the same SMS service to verify a number before submission.' => 'فرم ثبت‌نام را با فیلدهای دلخواه در MRN Forms بسازید. انار شمارهٔ همراه را تأیید و حساب وردپرس را ایجاد می‌کند. فرم‌های دیگر هم می‌توانند پیش از ارسال، شمارهٔ همراه را با همین سرویس پیامکی تأیید کنند.',
    167176'Built-in providers send the approved provider template, not this text. Keep its wording in sync with the approved template.' => 'پنل‌های آماده، قالب تأییدشده سرویس را ارسال می‌کنند. این متن را با متن قالب تأییدشده هماهنگ نگه دارید.',
    … …  
    184193'Cancelled' => 'لغوشده',
    185194'Capped game discount' => 'تخفیف بازی با سقف مبلغ',
     195'Capped recovery discount' => 'تخفیف سقف‌دار بازیابی',
     196'Capped recovery discounts require WooCommerce 8.8 or newer.' => 'تخفیف سقف‌دار بازیابی به ووکامرس ۸.۸ یا جدیدتر نیاز دارد.',
    186197'Capture source' => 'منبع ثبت',
    187198'Capture timestamp (UTC Unix time)' => 'زمان ثبت خودکار (زمان یونیکس UTC)',
    … …  
    191202'Cart records' => 'سوابق سبد',
    192203'Cart recovery' => 'بازیابی سبد',
     204'Cart recovery and sending limits' => 'بازیابی سبد و محدودیت‌های ارسال',
    193205'Category' => 'دسته',
    194206'Chance of receiving a coupon (%)' => 'احتمال دریافت جایزه (درصد)',
    … …  
    227239'Clean up when uninstalling' => 'پاک‌سازی هنگام حذف افزونه',
    228240'Clear about 40% of the cover to reveal your result.' => 'حدود ۴۰ درصد پوشش را پاک کنید تا نتیجه نمایش داده شود.',
     241'Client ID' => 'شناسه مشتری بله',
     242'Client secret' => 'رمز اتصال بله',
    229243'Close' => 'بستن',
    230244'Close signup' => 'بستن فرم ثبت‌نام',
    … …  
    272286'Connected and verified' => 'متصل و تأییدشده',
    273287'Connection and message' => 'اتصال و پیام',
     288'Connection and orders' => 'اتصال و سفارش‌ها',
    274289'Connection interrupted. Retry to continue the same game.' => 'ارتباط قطع شد. با زدن «ادامهٔ همین بازی»، همان نوبت را دنبال کنید.',
    275290'Connection settings' => 'تنظیمات اتصال',
    … …  
    279294'Conservative Unicode SMS segment estimate before replacing placeholders; actual billing depends on the provider:' => 'برآورد محافظه‌کارانه تعداد بخش‌های پیامک یونیکد پیش از جایگزینی متغیرها؛ هزینه واقعی به سرویس بستگی دارد:',
    280295'Contact mobile numbers' => 'شماره‌های همراه مخاطبان',
     296'Content' => 'محتوا',
    281297'Continue' => 'ادامه',
    282298'Continue a purchase with your recovery code' => 'ادامه خرید با کد بازیابی',
    … …  
    296312'Core is active' => 'هسته فعال است',
    297313'Correct answer number' => 'شمارهٔ پاسخ درست',
     314'Correct quiz option (1-8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)',
    298315'Correct quiz option (1–8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)',
    299316'Could not complete Google sign-in. Please try again.' => 'ورود با گوگل کامل نشد. لطفاً دوباره تلاش کنید.',
    … …  
    388405'Enable the features your store needs.' => 'قابلیت‌های مورد نیاز فروشگاه را فعال کنید.',
    389406'Enable the login SMS report to count future login and verification messages.' => 'برای ثبت آمار پیامک‌های ورود و تأیید از این به بعد، گزارش پیامک ورود را فعال کنید.',
     407'Enable this feature in Anar settings.' => 'این قابلیت را در تنظیمات انار فعال کنید.',
    390408'Enable this feature, check an account, then set its alert threshold. Periodic checks contact only the accounts you select, about every 30 minutes.' => 'این قابلیت را فعال کنید، موجودی حساب را دریافت کنید و حد هشدار را تعیین کنید. فقط حساب‌های انتخاب‌شده، تقریباً هر ۳۰ دقیقه به‌صورت خودکار بررسی می‌شوند.',
    391409'Enable this stage' => 'فعال‌سازی این مرحله',
    … …  
    526544'If this number is linked to an eligible account, a password reset code will be sent. Please wait before requesting another.' => 'اگر این شماره به حساب واجد شرایطی متصل باشد، کد بازنشانی رمز برای آن ارسال می‌شود. پیش از درخواست مجدد کمی صبر کنید.',
    527545'If you leave now, the changes you made to this message will be lost.' => 'با خروج از ویرایشگر، تغییرات این پیام از دست می‌رود.',
     546'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. کد یک‌بارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره می‌شوند. لینک لغو فقط یادآوری خرید را متوقف می‌کند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    528547'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. کد یک‌بارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره می‌شوند. لینک لغو فقط یادآوری خرید را متوقف می‌کند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
     548'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    529549'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    530550'Import campaign contacts' => 'درون‌ریزی مخاطبان کمپین',
    … …  
    543563'Install and activate WooCommerce to run these modules. Login features work independently.' => 'برای اجرای این ماژول‌ها، ووکامرس را نصب و فعال کنید. قابلیت‌های ورود مستقل کار می‌کنند.',
    544564'Invisible bot check' => 'بررسی نامرئی ربات',
     565'Invoice footer' => 'متن پایین فاکتور',
    545566'Invoice number prefix' => 'پیشوند شمارهٔ صورتحساب',
     567'Invoice template' => 'قالب فاکتور',
    546568'Issued or reserved in the shared pool: %d' => 'صادر یا رزرو شده در مخزن مشترک: %d',
    547569'It may be time to reorder your product.' => 'شاید زمان خرید دوبارهٔ کالای شما رسیده باشد.',
    … …  
    583605'Loading message…' => 'در حال دریافت پیام…',
    584606'Loading the sign-in form…' => 'در حال بارگذاری فرم ورود…',
     607'Local data retention, days (7-90)' => 'مدت نگهداری داده‌های محلی، به روز (۷ تا ۹۰)',
    585608'Local data retention, days (7–90)' => 'مدت نگهداری داده‌های محلی، به روز (۷ تا ۹۰)',
    586609'Log only error codes and channel names; OTPs and confidential data are never logged.' => 'فقط کد خطا و نام کانال در گزارش خطا ثبت می‌شود؛ کد OTP و اطلاعات محرمانه ثبت نمی‌شوند.',
    … …  
    589612'Login form' => 'فرم ورود',
    590613'Login popup' => 'پاپ‌آپ ورود',
     614'Logo URL' => 'نشانی تصویر لوگو',
    591615'Low credit' => 'اعتبار کم است',
    592616'Lucky wheel' => 'گردونهٔ شانس',
    … …  
    604628'Maximum campaign messages per phone / day' => 'حداکثر پیام کمپین برای هر شماره در روز',
    605629'Maximum coupons for this prize' => 'سقف تعداد این جایزه',
     630'Maximum discount including tax (0 = unlimited)' => 'حداکثر مبلغ تخفیف با احتساب مالیات (۰ = بدون سقف)',
    606631'Maximum lifetime spend (0 = no maximum)' => 'حداکثر مجموع خرید (۰ یعنی بدون سقف)',
    607632'Maximum money discount for the single reward' => 'سقف مبلغ تخفیف جایزهٔ ثابت',
    608633'Maximum money discount per coupon' => 'سقف مبلغ تخفیف هر کد',
     634'Maximum reminders per phone in 24 hours (1-10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)',
    609635'Maximum reminders per phone in 24 hours (1–10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)',
    610636'Maximum saving: %1$s %2$s, including tax.' => 'حداکثر مبلغ تخفیف با احتساب مالیات: %1$s %2$s.',
    … …  
    695721'Off' => 'خاموش',
    696722'Off by default. When on, the WordPress login page shows the passwordless form with a “Sign in with a password” link, so staff can always use their password.' => 'به‌طور پیش‌فرض خاموش است. در صورت فعال‌سازی، صفحهٔ ورود وردپرس فرم ورود بدون رمز را همراه با لینک «ورود با رمز عبور» نمایش می‌دهد تا مدیران همیشه بتوانند با رمز وارد شوند.',
     723'Offer from reminder stage (1-3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)',
    697724'Offer from reminder stage (1–3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)',
    698725'One coupon per cart, one use, restricted to the recipient billing phone. Include {coupon_code} in the relevant reminder template. A valid coupon is applied after the customer verifies their recovery code.' => 'برای هر سبد یک کوپن یک‌بارمصرف، محدود به شمارهٔ صورتحساب گیرنده ایجاد می‌شود. {coupon_code} را در الگوی یادآوری مربوط قرار دهید. کوپن معتبر پس از تأیید کد بازیابی مشتری اعمال می‌شود.',
    … …  
    734761'Order completed' => 'سفارش تکمیل‌شده',
    735762'Order invoice' => 'صورتحساب سفارش',
     763'Order messages and connection' => 'پیام‌های سفارش و اتصال پنل',
     764'Order not found.' => 'سفارش پیدا نشد.',
    736765'Order notifications' => 'اعلان‌های سفارش',
    737766'Order number' => 'شمارهٔ سفارش',
    … …  
    818847'Preparing your result…' => 'نتیجهٔ بازی در حال آماده شدن است…',
    819848'Preview eligible audience' => 'پیش‌نمایش مخاطبان واجد شرایط',
     849'Preview order ID (empty = sample)' => 'شناسه سفارش برای پیش‌نمایش (خالی = نمونه)',
    820850'Preview saved form' => 'پیش‌نمایش فرم ذخیره‌شده',
     851'Preview saved invoice settings' => 'پیش‌نمایش فاکتور با تنظیمات ذخیره‌شده',
    821852'Preview the form and choose where it appears' => 'فرم را ببینید و محل نمایش آن را انتخاب کنید',
    822853'Previous' => 'قبلی',
    … …  
    859890'Raw OTPs are never stored in the database.' => 'OTP خام هرگز در دیتابیس ذخیره نمی‌شود.',
    860891'Receive today’s gift' => 'دریافت هدیهٔ امروز',
     892'Receive verification codes inside Bale.' => 'کد تأیید را در پیام‌رسان بله دریافت کنید.',
    861893'Recent customer profiles' => 'پروفایل مشتریان اخیر',
    862894'Recipient' => 'گیرنده',
    … …  
    872904'Recovered revenue' => 'درآمد خریدهای بازیابی‌شده',
    873905'Recovery code' => 'کد بازیابی',
     906'Recovery code validity, minutes (5-1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)',
    874907'Recovery code validity, minutes (5–1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)',
    875908'Recovery discounts' => 'تخفیف بازیابی خرید',
     909'Recovery eligibility after cart activity, days (1-30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    876910'Recovery eligibility after cart activity, days (1–30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
     911'Recovery link lifetime after cart activity, days (1-30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    877912'Recovery link lifetime after cart activity, days (1–30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    878913'Recovery messages must include both recovery and unsubscribe links.' => 'پیام یادآوری باید هر دو لینک بازیابی و لغو دریافت را داشته باشد.',
    … …  
    880915'Recovery messages must include the recovery code and unsubscribe link.' => 'پیام یادآوری باید کد بازیابی و لینک لغو دریافت را داشته باشد.',
    881916'Recovery page URL' => 'نشانی صفحهٔ بازیابی خرید',
     917'Recovery sending starts at hour (0-23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)',
    882918'Recovery sending starts at hour (0–23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)',
     919'Recovery sending stops at hour (1-24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)',
    883920'Recovery sending stops at hour (1–24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)',
    884921'Recovery · first reminder' => 'بازیابی · یادآوری اول',
    … …  
    951988'SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.' => 'ورود با پیامک، ایمیل و گوگل، بازیابی رمز پیامکی، بازیابی سبد و ابزارهای ارتباط با مشتری ووکامرس.',
    952989'Sample' => 'نمونه',
     990'Sample address' => 'نشانی نمونه',
    953991'Sample campaign content' => 'متن نمونهٔ کمپین',
     992'Sample customer' => 'مشتری نمونه',
    954993'Sample preview' => 'پیش‌نمایش نمونه',
     994'Sample product' => 'کالای نمونه',
    955995'Save and close' => 'ذخیره و بستن',
    956996'Save and continue' => 'ذخیره و ادامه',
    … …  
    10451085'Show a link to sign in with a password. Password recovery also appears here when SMS password recovery is enabled.' => 'پیوند ورود با رمز عبور را نشان می‌دهد. اگر بازیابی پیامکی رمز فعال باشد، گزینهٔ بازیابی هم در پنجره نمایش داده می‌شود.',
    10461086'Show above the WooCommerce forms' => 'نمایش بالای فرم‌های ووکامرس',
     1087'Show customer note' => 'نمایش یادداشت مشتری',
    10471088'Show low-credit warnings to site administrators' => 'هشدار کمبود اعتبار به مدیران سایت نمایش داده شود',
     1089'Show product SKU' => 'نمایش شناسه کالا',
     1090'Show shipping address' => 'نمایش نشانی ارسال',
    10481091'Show the Google sign-in button on the login form.' => 'دکمه ورود گوگل در فرم ورود نمایش داده شود.',
    10491092'Shown after the customer wins and the coupon has been created. The coupon code is displayed separately below this message.' => 'این پیام پس از برنده شدن مشتری و ایجاد کد تخفیف نمایش داده می‌شود. خود کد تخفیف جداگانه زیر پیام قرار می‌گیرد.',
    … …  
    10531096'Shows the time, provider, and result of SMS requests for sign-in, two-step verification, and password reset.' => 'زمان، سرویس‌دهنده و نتیجهٔ ارسال پیامک‌های ورود، تأیید دومرحله‌ای و بازیابی رمز عبور را نشان می‌دهد.',
    10541097'Sign in' => 'ورود',
     1098'Sign in / Account' => 'ورود / حساب کاربری',
    10551099'Sign in / Register' => 'ورود / ثبت‌نام',
    10561100'Sign in before verifying your mobile number.' => 'برای تأیید شمارهٔ همراه، ابتدا وارد حساب خود شوید.',
    … …  
    10771121'Signing you in…' => 'در حال ورود…',
    10781122'Simple' => 'ساده',
     1123'Simple print' => 'ساده و مناسب چاپ',
    10791124'Single use' => 'مصرف یک‌باره',
    10801125'Site domain' => 'دامنهٔ سایت',
    … …  
    11121157'Store promotion' => 'هدیهٔ فروشگاه',
    11131158'Store quiz' => 'مسابقهٔ پرسش‌وپاسخ',
     1159'Store settings' => 'تنظیمات فروشگاه',
    11141160'Store tax / registration ID' => 'شناسهٔ مالیاتی / ثبتی فروشگاه',
    11151161'Store tax / registration ID:' => 'شناسهٔ مالیاتی / ثبتی فروشگاه:',
    … …  
    12761322'Use the existing shortcode, popup or WooCommerce integration. Changing where the form appears does not change its verification rules. Save appearance changes before previewing.' => 'از کد کوتاه، پاپ‌آپ یا اتصال ووکامرس استفاده کنید. محل نمایش فرم، قواعد تأیید هویت را تغییر نمی‌دهد. پیش از دیدن پیش‌نمایش، تغییرات ظاهر را ذخیره کنید.',
    12771323'Use the same SMS settings as the sign-in code' => 'استفاده از تنظیمات ارسال پیامک کد ورود',
     1324'Use the sign-in SMS provider' => 'استفاده از پنل پیامکی ورود',
    12781325'Use the sign-in template for this verification message' => 'استفاده از الگوی ورود برای این پیام تأیید',
    12791326'Used for messages whose delivery method is plain text. Approved-template messages use the panel service line.' => 'این شماره برای پیام‌هایی استفاده می‌شود که روش ارسالشان «پیامک متنی» است. پیام‌های الگویی از خط خدماتی پنل ارسال می‌شوند.',
    … …  
    12891336'Value to send' => 'مقدار ارسالی',
    12901337'Verification code' => 'کد تأیید',
     1338'Verification code sent via Bale.' => 'کد تأیید در پیام‌رسان بله ارسال شد.',
    12911339'Verified' => 'تأییدشده',
    12921340'Verify Lookup template name' => 'نام الگوی Verify Lookup',
    … …  
    13111359'When enabled by this store, Anar saves checkout/account mobile numbers and cart contents for reminders without a separate checkbox. A notice is shown at cart/checkout; every marketing message includes an unsubscribe link. Optional campaigns keep customer contact details, paid-order/product facts, stock requests, honest purchase feedback, birthday month/day and calendar, referral relationships, game attempts and personal coupon references locally. No birth year is requested. Coupon gifts are single-use and phone-bound; survey gifts do not depend on a positive rating. Provider credentials and plaintext login/reset codes are never written to campaign reports. The selected SMS provider receives recipient numbers and configured message variables. Optional traffic analytics use a first-party random browser identifier lasting up to 30 days, daily keyed hashes and referring hostnames, excluding checkout/account pages and administrator visits; no raw IP or full referrer URL is retained in traffic reports. Configure and disclose the selected modules, provider, purposes and retention period here. WordPress personal-data tools and administrator phone erasure remove local marketing records and revoke unused personal gifts without deleting WooCommerce orders. Minimal suppression hashes may remain to remember stopped messages.' => 'در صورت فعال‌سازی فروشگاه، انار شمارهٔ همراه حساب یا تسویه‌حساب و محتوای سبد را بدون تیک جداگانه برای یادآوری ذخیره می‌کند. اطلاعیه در سبد و تسویه‌حساب نمایش داده می‌شود و هر پیام بازاریابی لینک لغو دریافت دارد. کمپین‌های اختیاری اطلاعات تماس، سوابق سفارش پرداخت‌شده و کالا، درخواست موجودی، بازخورد خرید، ماه و روز تولد و تقویم، روابط معرفی دوستان، دفعات بازی و ارجاع کوپن‌های اختصاصی را محلی نگه می‌دارند. سال تولد درخواست نمی‌شود. کوپن‌های هدیهٔ تولیدشده یک‌بارمصرف و محدود به شمارهٔ همراه هستند؛ هدیهٔ نظرسنجی به امتیاز مثبت وابسته نیست. اطلاعات دسترسی سرویس‌دهنده و کدهای ورود و بازنشانیِ خوانا در گزارش کمپین ذخیره نمی‌شوند. سرویس پیامک انتخاب‌شده شمارهٔ گیرنده و متغیرهای تنظیم‌شده را دریافت می‌کند. آمار اختیاری بازدید از شناسهٔ تصادفی مرورگر همان سایت با عمر حداکثر ۳۰ روز، هش کلیددار روزانه و نام میزبان ارجاع‌دهنده استفاده می‌کند؛ صفحات تسویه‌حساب، حساب کاربری و بازدید مدیران مستثنا هستند. IP خام و نشانی کامل ارجاع‌دهنده در گزارش بازدید نگهداری نمی‌شود. ماژول‌ها، سرویس‌دهنده، هدف‌ها و دورهٔ نگهداری انتخاب‌شده را اینجا اعلام کنید. ابزارهای دادهٔ شخصی وردپرس و حذف بر اساس شماره توسط مدیر، سوابق محلی بازاریابی را پاک و هدیه‌های اختصاصیِ استفاده‌نشده را باطل می‌کنند، بدون حذف سفارش ووکامرس. ممکن است حداقل هش لازم برای به‌خاطر سپردن لغو پیام باقی بماند.',
    13121360'When no prizes remain' => 'پس از تمام شدن جوایز',
     1361'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویه‌حساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره می‌کند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری می‌شوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویس‌دهندهٔ انتخاب‌شده فرستاده می‌شوند. هر یادآوری پیوند توقف پیام‌های بعدی دارد. اعلان‌های پرداخت پیام خدماتی مستقل‌اند. کد بازیابی یک‌بارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی می‌کند و ورود به حساب نیست. هش کد، تلاش‌ها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری می‌شوند. لغو دریافت، یادآوری خرید و کمپین‌های اختیاری بازاریابی را متوقف می‌کند؛ پیام‌های خدماتی مستقل‌اند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی می‌ماند. فروشگاه سرویس‌دهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین می‌کند. پیش از فعال‌سازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیام‌ها را به این سیاست اضافه کنید.',
    13131362'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویه‌حساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره می‌کند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری می‌شوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویس‌دهندهٔ انتخاب‌شده فرستاده می‌شوند. هر یادآوری پیوند توقف پیام‌های بعدی دارد. اعلان‌های پرداخت پیام خدماتی مستقل‌اند. کد بازیابی یک‌بارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی می‌کند و ورود به حساب نیست. هش کد، تلاش‌ها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری می‌شوند. لغو دریافت، یادآوری خرید و کمپین‌های اختیاری بازاریابی را متوقف می‌کند؛ پیام‌های خدماتی مستقل‌اند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی می‌ماند. فروشگاه سرویس‌دهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین می‌کند. پیش از فعال‌سازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیام‌ها را به این سیاست اضافه کنید.',
    13141363'Winning chance and single-reward fallback' => 'احتمال برد و جایزهٔ ثابت',
    … …  
    13251374'You cannot manage these campaigns.' => 'اجازهٔ مدیریت این کمپین‌ها را ندارید.',
    13261375'You cannot manage these settings.' => 'اجازه مدیریت این تنظیمات را ندارید.',
     1376'You cannot preview invoices.' => 'شما اجازه پیش‌نمایش فاکتور را ندارید.',
    13271377'You have signed in successfully.' => 'با موفقیت وارد شدید.',
    13281378'Your account could not be created. Request a new code and try again.' => 'ایجاد حساب انجام نشد. کد جدید بگیرید و دوباره تلاش کنید.',
  • anar-toolkit/tags/1.6.0/readme.txt

    r3796547 r3809098  
    1 === Anar Toolkit (انار) – SMS Login, Recovery & Marketing for WooCommerce ===
     1=== Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce ===
    22Contributors: mrnwp
    33Tags: sms, woocommerce, abandoned-cart, otp, notifications
    … …  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.5.9
     7Stable tag: 1.6.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 انار برای ووکامرس با ورود پیامکی، بازیابی رمز و سبد خرید، اعلان سفارش و کمپین. SMS login, password reset, cart recovery, order alerts and campaigns.
     11SMS login, password reset, cart recovery, order alerts and customer campaigns for WooCommerce.
    1212
    1313== Description ==
    … …  
    118118Customers print/save invoices as PDF from My Account or an expiring scoped link. Use [anar_customer_preferences] for birthday month/day, [anar_referrals] for referrals and [anar_game type="wheel"] for a game. Other types: scratch, boxes, cards, slots, treasure, daily, quiz, memory and milestone. Server-side rules enforce coupon rewards and daily limits; there is no paid entry or cash prize. Persian birthday dates require PHP Intl.
    119119
     120= Elementor widgets and printable invoices =
     121Three optional Elementor widgets reuse Anar's sign-in form, account button and cart recovery form. Elementor is not required for other features. Enable the corresponding Anar capability before using its widget.
     122Choose a simple-print or branded invoice, adjust its accent color, logo URL and footer, and choose whether to show product SKUs, shipping addresses and customer notes. Save changes before opening the invoice preview. An empty preview order ID uses sample data; a real order ID is accessible only to an authorized store manager.
     123Recovery coupons support an optional maximum monetary discount including tax (0 means unlimited). Capped recovery coupons require WooCommerce 8.8 or later. Coupon expiry is measured from issuance and is not renewed by subsequent reminders.
     124
    120125== External services ==
     126
     127= Bale Safir OTP (optional) =
     128Bale is a verification-code channel, not a plain-text commerce SMS provider. It is used only after the store administrator selects Bale and supplies their Safir client ID and client secret. When a verification code is requested, Anar sends those credentials to https://safir.bale.ai/api/v2/auth/token to obtain an access token. The token is cached temporarily on the WordPress server. Anar sends the recipient's international mobile number and numeric OTP to https://safir.bale.ai/api/v2/send_otp with that bearer token. The user receives the code inside Bale and must have a Bale account. No automatic SMS fallback is performed. Select a separate SMS provider for commerce messages when sign-in uses Bale.
     129Official service: https://safir.bale.ai/
     130Official documentation: https://docs.bale.ai/
     131Official terms, including privacy provisions: https://bale.ai/terms
     132
    121133
    122134All integrations use accounts configured by the site administrator. The plugin makes no telemetry, licensing or analytics requests to MRNWP or its author. Provider service fees and contracts are independent of the free plugin.
    … …  
    241253
    242254== Changelog ==
     255
     256= 1.6.0 =
     257
     258* Move feature switches into Settings and group store recovery, message and discount controls.
     259* Let store messages follow the sign-in provider by default while preserving explicit provider and message bindings.
     260* Add recovery discount ceilings including tax, retaining coupon expiry and single-use restrictions.
     261* Add optional Bale Safir OTP delivery with cached access tokens.
     262* Add Elementor sign-in, account-button and purchase-recovery widgets using existing forms.
     263* Add simple-print and branded invoice templates, display controls and administrator-only sample/order previews.
     264
    243265
    244266= 1.5.9 =
  • anar-toolkit/tags/1.6.0/src/Admin/FeaturesPage.php

    r3796547 r3809098  
    4141                        }
    4242                }
    43                 add_submenu_page( 'anar-login', __( 'Features', 'anar-toolkit' ), __( 'Features', 'anar-toolkit' ), 'manage_options', 'anar-login', array( self::class, 'render' ), 0 );
     43                add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login', array( SettingsPage::class, 'landing' ), 0 );
    4444                $flags = Features::all();
    4545                $commerce = new \Anar\Login\Commerce\Admin( new \Anar\Login\Commerce\Settings(), new \Anar\Login\Commerce\Repository(), \Anar\Login\Messaging\ProviderRegistry::shared() );
    … …  
    5252                                add_submenu_page( 'anar-login', self::labels()[ $key ], self::labels()[ $key ], 'manage_options', 'anar-toolkit-' . $key, array( $commerce, 'render' ) ); }
    5353                }
    54                 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) );
     54                $settings_hook = add_submenu_page( null, __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) );
     55                add_action(
     56                        'load-' . $settings_hook,
     57                        static function () {
     58                        // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Hidden compatibility page still needs its admin heading.
     59                                $GLOBALS['title'] = __( 'Settings', 'anar-toolkit' );
     60                        }
     61                );
    5562                add_submenu_page( $flags['balance'] ? 'anar-login' : null, __( 'SMS credit', 'anar-toolkit' ), __( 'SMS credit', 'anar-toolkit' ), 'manage_options', 'anar-toolkit-balance', array( BalancePage::class, 'render' ) );
    5663                // Keep older bookmarked URLs working without a second copy of the catalog in the menu.
    … …  
    93100        }
    94101
    95         public static function render() {
     102        public static function render( $embedded = false ) {
    96103                if ( ! current_user_can( 'manage_options' ) ) {
    97104                        return;
    … …  
    104111                $groups = $other_first ? array( false => __( 'Other features', 'anar-toolkit' ), true => __( 'Active features', 'anar-toolkit' ) ) : array( true => __( 'Active features', 'anar-toolkit' ), false => __( 'Other features', 'anar-toolkit' ) );
    105112                ?>
    106                 <div class="wrap anar-features" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
     113                <div class="<?php echo $embedded ? 'anar-features' : 'wrap anar-features'; ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
    107114                        <header class="anar-features-banner">
    108115                                <img src="<?php echo esc_url( ANAR_LOGIN_URL . 'assets/images/anar-logo.png?ver=' . ANAR_LOGIN_VERSION ); ?>" alt="" width="64" height="64">
    109116                                <div>
    110                                         <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1>
     117                                        <?php
     118                                        if ( $embedded ) :
     119                                                ?>
     120                                                <h2><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h2>
     121                                                <?php
     122else :
     123        ?>
     124                                                <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1><?php endif; ?>
    111125                                        <p><?php esc_html_e( 'Enable the features your store needs.', 'anar-toolkit' ); ?></p>
    112126                                </div>
    113127                        </header>
    114                         <hr class="wp-header-end">
    115                         <?php StatusPanel::credit(); ?>
     128                        <!---->
     129                        <?php
     130                        if ( ! $embedded ) :
     131                                ?>
     132                                <hr class="wp-header-end">
     133                                <?php
     134                                StatusPanel::credit();
     135endif;
     136                        ?>
    116137                        <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
    117138                                <?php wp_nonce_field( 'anar_features' ); ?>
    … …  
    194215                $balance['enabled'] = empty( $selected['balance'] ) ? 0 : 1;
    195216                update_option( \Anar\Login\Balance\Monitor::OPTION, $balance, false );
    196                 wp_safe_redirect( admin_url( 'admin.php?page=anar-login&saved=1' ) );
     217                wp_safe_redirect( admin_url( 'admin.php?page=anar-login-settings&section=features&saved=1' ) );
    197218                exit;
    198219        }
  • anar-toolkit/tags/1.6.0/src/Admin/SettingsPage.php

    r3795335 r3809098  
    5151         * @return void
    5252         */
     53        public static function landing() {
     54                ( new self( new Settings(), ProviderRegistry::shared() ) )->render();
     55        }
     56
    5357        public function menu() {
    5458                add_menu_page(
    … …  
    5761                        'manage_options',
    5862                        'anar-login',
    59                         array( FeaturesPage::class, 'render' ),
     63                        array( self::class, 'landing' ),
    6064                        ANAR_LOGIN_URL . 'assets/images/anar-menu-icon.png?ver=' . ANAR_LOGIN_VERSION,
    6165                        58
    … …  
    97101         */
    98102        public function assets( $hook ) {
    99                 if ( false === strpos( $hook, 'anar-login-settings' ) ) {
     103                if ( false === strpos( $hook, 'anar-login' ) ) {
    100104                        return;
    101105                }
    … …  
    525529                                        </footer>
    526530                                </form>
     531                                <section class="anar-tab" data-panel="features" hidden><?php FeaturesPage::render( true ); ?></section>
    527532                                <section class="anar-tab" data-panel="messages" hidden>
    528533                                        <?php $this->section_header( __( 'Messages and templates', 'anar-toolkit' ), __( 'Find a message and edit it here. The same editor is available in each feature.', 'anar-toolkit' ), '✉' ); ?>
    … …  
    557562                ?>
    558563                <div class="anar-admin__nav-label"><?php esc_html_e( 'Shared settings', 'anar-toolkit' ); ?></div>
     564                <button type="button" data-tab="features"><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></button>
     565                <a class="button" href="<?php echo esc_url( admin_url( 'admin.php?page=anar-toolkit-commerce&tab=settings' ) ); ?>"><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></a>
    559566                <button type="button" data-tab="messages"><?php esc_html_e( 'Messages and templates', 'anar-toolkit' ); ?></button>
    560567                <button type="button" data-tab="sending"><?php esc_html_e( 'Campaign sending rules', 'anar-toolkit' ); ?></button>
  • anar-toolkit/tags/1.6.0/src/Auth/OtpService.php

    r3792977 r3809098  
    306306                        'message'      => 'email' === $channel
    307307                                ? __( 'If sign-in is available, a code has been sent to your email.', 'anar-toolkit' )
    308                                 : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ),
     308                                : ( 'bale' === \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'] ? __( 'Verification code sent via Bale.', 'anar-toolkit' ) : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ) ),
    309309                        'channel'      => $channel,
    310310                        'resend_after' => absint( $this->settings->get( 'resend_delay', 60 ) ),
  • anar-toolkit/tags/1.6.0/src/Commerce/Admin.php

    r3791206 r3809098  
    4242        public function assets( $hook ) {
    4343                if ( false !== strpos( $hook, 'anar-toolkit-' ) ) {
     44                        wp_enqueue_script( 'anar-invoice-preview', ANAR_LOGIN_URL . 'assets/js/invoice-preview.js', array(), ANAR_LOGIN_VERSION, true );
    4445                        wp_enqueue_style( 'anar-toolkit-commerce', ANAR_LOGIN_URL . 'assets/css/commerce-suite.css', array(), ANAR_LOGIN_VERSION );
    4546                }
    … …  
    112113                                \Anar\Login\Admin\Help::section( $flags['recovery'] ? 'recovery' : 'orders' );
    113114                                ?>
    114                                 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Automation settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">
     115                                <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">
    115116                                <?php settings_fields( 'anar_toolkit_commerce' ); ?>
    116                                 <div class="anar-commerce-card">
    117                                         <h2><?php esc_html_e( 'Modules', 'anar-toolkit' ); ?></h2>
     117<nav class="anar-store-nav" aria-label="<?php esc_attr_e( 'Store settings', 'anar-toolkit' ); ?>"><a href="#anar-store-connection"><?php esc_html_e( 'Connection and orders', 'anar-toolkit' ); ?></a><a href="#anar-store-recovery"><?php esc_html_e( 'Cart recovery', 'anar-toolkit' ); ?></a><a href="#anar-store-discounts"><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></a></nav>
     118                                <div class="anar-commerce-card" id="anar-store-connection"><h2><?php esc_html_e( 'Order messages and connection', 'anar-toolkit' ); ?></h2>
    118119                                        <?php
    119120                                        foreach ( array( 'paid_customer' => $labels['paid_customer'], 'paid_admin' => $labels['paid_admin'], 'recovery' => __( 'Cart and unpaid-order reminders', 'anar-toolkit' ), 'new_admin' => $labels['new_admin'], 'failed_admin' => $labels['failed_admin'], 'shipment_customer' => $labels['shipment_customer'], 'status_processing' => $labels['status_processing'], 'status_completed' => $labels['status_completed'], 'status_on-hold' => $labels['status_on-hold'], 'status_cancelled' => $labels['status_cancelled'], 'status_refunded' => $labels['status_refunded'] ) as $key => $label ) :
    … …  
    130131                                        <p><?php esc_html_e( 'Payment messages are triggered by WooCommerce payment completion, not by viewing the thank-you page. Merely creating an order or choosing cash on delivery does not trigger them.', 'anar-toolkit' ); ?></p>
    131132                                        <p><label for="anar-commerce-provider"><strong><?php esc_html_e( 'Commerce SMS provider', 'anar-toolkit' ); ?></strong></label><br><select id="anar-commerce-provider" name="<?php echo esc_attr( Settings::OPTION ); ?>[provider]">
     133                                        <option value="" <?php selected( $value['provider'], '' ); ?>><?php esc_html_e( 'Use the sign-in SMS provider', 'anar-toolkit' ); ?></option>
    132134                                        <?php foreach ( $this->providers->all() as $key => $provider ) : ?>
    133135                                                <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $value['provider'], $key ); ?>><?php echo esc_html( $provider->title() ); ?></option>
    … …  
    139141                                if ( $flags['recovery'] ) :
    140142                                        ?>
    141                                         <div class="anar-commerce-card">
    142                                         <h2><?php esc_html_e( 'Reminder timing and privacy', 'anar-toolkit' ); ?></h2>
     143                                        <div class="anar-commerce-card" id="anar-store-recovery"><h2><?php esc_html_e( 'Cart recovery and sending limits', 'anar-toolkit' ); ?></h2>
    143144                                        <p><label for="anar-recovery-page"><strong><?php esc_html_e( 'Page for entering recovery codes', 'anar-toolkit' ); ?></strong></label><br>
    144145                                        <?php
    … …  
    150151                                        <p><?php esc_html_e( 'Stage times are minutes after the last saved cart change. A value of 0 disables that stage. Payment, cancellation, expiry or opting out stops future reminders. Guest carts without a saved number cannot receive SMS.', 'anar-toolkit' ); ?></p>
    151152                                        <?php
    152                                         $this->input( 'start_hour', __( 'Recovery sending starts at hour (0–23)', 'anar-toolkit' ), $value['start_hour'], 'number' );
    153                                         $this->input( 'end_hour', __( 'Recovery sending stops at hour (1–24)', 'anar-toolkit' ), $value['end_hour'], 'number' );
    154                                         $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1–10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );
    155                                         $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1–30)', 'anar-toolkit' ), $value['link_days'], 'number' );
    156                                         $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5–1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );
    157                                         $this->input( 'retention', __( 'Local data retention, days (7–90)', 'anar-toolkit' ), $value['retention'], 'number' );
     153                                        $this->input( 'start_hour', __( 'Recovery sending starts at hour (0-23)', 'anar-toolkit' ), $value['start_hour'], 'number' );
     154                                        $this->input( 'end_hour', __( 'Recovery sending stops at hour (1-24)', 'anar-toolkit' ), $value['end_hour'], 'number' );
     155                                        $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1-10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );
     156                                        $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1-30)', 'anar-toolkit' ), $value['link_days'], 'number' );
     157                                        $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5-1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );
     158                                        $this->input( 'retention', __( 'Local data retention, days (7-90)', 'anar-toolkit' ), $value['retention'], 'number' );
    158159                                        foreach ( $value['events'] as $key => $event ) {
    159160                                                if ( ! isset( $event['minutes'] ) ) {
    … …  
    171172                                </div>
    172173
    173                                 <div class="anar-commerce-card"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>
     174                                <div class="anar-commerce-card" id="anar-store-discounts"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>
    174175                                        <?php
    175176                                        foreach ( array( 'coupon_enabled' => __( 'Generate recovery discounts', 'anar-toolkit' ), 'coupon_individual' => __( 'Do not combine with other coupons', 'anar-toolkit' ), 'coupon_exclude_sale' => __( 'Exclude sale products', 'anar-toolkit' ) ) as $key => $label ) :
    … …  
    179180                                        <?php
    180181                                        $this->input( 'coupon_amount', __( 'Discount amount', 'anar-toolkit' ), $value['coupon_amount'], 'number' );
     182                                        $this->input( 'coupon_maximum', __( 'Maximum discount including tax (0 = unlimited)', 'anar-toolkit' ), $value['coupon_maximum'], 'number' );
    181183                                        $this->input( 'coupon_minimum', __( 'Minimum cart amount', 'anar-toolkit' ), $value['coupon_minimum'], 'number' );
    182                                         $this->input( 'coupon_stage', __( 'Offer from reminder stage (1–3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );
     184                                        $this->input( 'coupon_stage', __( 'Offer from reminder stage (1-3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );
    183185                                        $this->input( 'coupon_hours', __( 'Discount validity in hours', 'anar-toolkit' ), $value['coupon_hours'], 'number' );
    184186                                        ?>
    … …  
    194196                                \Anar\Login\Admin\Help::section( 'privacy' );
    195197                                ?>
    196                                 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card">
    197                                 <h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2>
     198                                <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"><h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2>
    198199                                <p><?php esc_html_e( 'WordPress export and erasure tools can locate reminders by the optional saved email. For a phone-only request, verify the requester first and remove that number here. This removes local reminder data and queue entries, not WooCommerce orders or records already held by the SMS provider.', 'anar-toolkit' ); ?></p>
    199200                                <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
  • anar-toolkit/tags/1.6.0/src/Commerce/Coupons.php

    r3788438 r3809098  
    4949                        $coupon->set_usage_limit_per_user( 1 );
    5050                        $coupon->set_date_expires( min( time() + $config['coupon_hours'] * HOUR_IN_SECONDS, $cart->updated_at + $config['link_days'] * DAY_IN_SECONDS ) );
     51                        if ( (float) $config['coupon_maximum'] > 0 ) {
     52                                $coupon->update_meta_data( '_anar_recovery_money_cap', $config['coupon_maximum'] );
     53                                $coupon->update_meta_data( '_anar_recovery_kind', $config['coupon_type'] );
     54                                $coupon->update_meta_data( '_anar_recovery_value', $config['coupon_amount'] );
     55                                $coupon->set_discount_type( 'anar_recovery_capped' );
     56                                $coupon->set_amount( 0 );
     57                        }
    5158                        $coupon->set_description( __( 'Anar purchase recovery discount', 'anar-toolkit' ) );
    5259                        $coupon->update_meta_data( '_anar_cart_id', (int) $cart->id );
  • anar-toolkit/tags/1.6.0/src/Commerce/Module.php

    r3788438 r3809098  
    5757                $page = get_queried_object();
    5858                $shortcode = $page instanceof \WP_Post && ( has_shortcode( $page->post_content, 'anar_recover_cart' ) || has_shortcode( $page->post_content, 'anar_cart_reminders' ) );
     59                $shortcode = (bool) apply_filters( 'anar_toolkit_recovery_page_has_form', $shortcode, $page );
    5960                if ( $shortcode || is_cart() || is_checkout() || ( $this->settings->get( 'recovery_page_id' ) && is_page( (int) $this->settings->get( 'recovery_page_id' ) ) ) ) {
    6061                        if ( ! defined( 'DONOTCACHEPAGE' ) ) {
  • anar-toolkit/tags/1.6.0/src/Commerce/Settings.php

    r3788438 r3809098  
    4848                        'coupon_amount' => '10',
    4949                        'coupon_minimum' => '0',
     50                        'coupon_maximum' => '0',
    5051                        'coupon_stage' => 2,
    5152                        'coupon_hours' => 48,
    … …  
    6162                        'status_cancelled' => 0,
    6263                        'status_refunded' => 0,
    63                         'provider'      => 'kavenegar',
     64                        'provider'      => '',
    6465                        'admin_phones'  => '',
    6566                        'start_hour'    => 9,
    … …  
    9596        }
    9697
     98        public function provider() {
     99                return $this->get( 'provider' ) ?: \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'];
     100        }
     101
    97102        public function enabled() {
    98103                foreach ( array_merge( array( 'recovery' ), array_keys( $this->defaults()['events'] ) ) as $key ) {
    … …  
    114119                        $output[ $key ] = empty( $input[ $key ] ) ? 0 : 1;
    115120                }
    116                 $output['provider'] = sanitize_key( $input['provider'] ?? 'kavenegar' );
     121                $output['provider'] = sanitize_key( $input['provider'] ?? '' );
    117122                $output['capture_mode'] = 'explicit' === ( $input['capture_mode'] ?? '' ) ? 'explicit' : 'automatic';
    118123                $output['coupon_type'] = 'fixed_cart' === ( $input['coupon_type'] ?? '' ) ? 'fixed_cart' : 'percent';
    119                 foreach ( array( 'coupon_amount', 'coupon_minimum' ) as $key ) {
     124                foreach ( array( 'coupon_amount', 'coupon_minimum', 'coupon_maximum' ) as $key ) {
    120125                        $raw = Identity::latin_digits( (string) ( $input[ $key ] ?? $output[ $key ] ) );
    121126                        $output[ $key ] = (string) round( max( 0, min( 1000000000, (float) $raw ) ), 2 );
  • anar-toolkit/tags/1.6.0/src/Marketing/Admin.php

    r3791206 r3809098  
    197197                        $this->field( $key, $label, $config[ $key ], 'number' ); }
    198198                if ( 'invoice' === $module ) {
     199                        \Anar\Login\Admin\InvoicePreview::controls( $config );
    199200                        foreach ( array( 'store_name' => __( 'Store display name', 'anar-toolkit' ), 'store_address' => __( 'Store address', 'anar-toolkit' ), 'store_tax_id' => __( 'Store tax / registration ID', 'anar-toolkit' ), 'invoice_prefix' => __( 'Invoice number prefix', 'anar-toolkit' ) ) as $key => $label ) {
    200201                                $this->field( $key, $label, $config[ $key ] ); }
  • anar-toolkit/tags/1.6.0/src/Marketing/Invoices.php

    r3788438 r3809098  
    5656                header( 'X-Robots-Tag: noindex, nofollow' );
    5757                header( 'Content-Type: text/html; charset=utf-8' );
     58                self::document( $order, $config );
     59                exit;
     60        }
     61
     62        public static function document( $order, $config ) {
    5863                ?>
    59                 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style></head><body><main>
    60                 <header><div><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small>
     64                <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style><style>
     65:root{--invoice-accent:<?php echo esc_html( sanitize_hex_color( $config['invoice_color'] ) ?: '#a72c52' ); ?>}
     66h1,.grand{color:var(--invoice-accent)}header{border-color:var(--invoice-accent)}button{background:var(--invoice-accent)}
     67.invoice-logo{max-width:150px;max-height:75px;object-fit:contain}
     68                <?php
     69                if ( 'simple' === $config['invoice_template'] ) :
     70                        ?>
     71                        body{background:#fff;color:#111}main{border:0;border-radius:0}h1,.grand{color:#111}header{border-color:#111}th{background:#fff;color:#111}<?php endif; ?>
     72</style></head><body><main>
     73                <header><div>
     74                <?php
     75                if ( $config['invoice_logo'] ) :
     76                        ?>
     77                        <img class="invoice-logo" src="<?php echo esc_url( $config['invoice_logo'] ); ?>" alt="<?php echo esc_attr( $config['store_name'] ); ?>"><?php endif; ?><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small>
    6178                <?php
    6279                if ( $config['store_tax_id'] ) :
    6380                        ?>
    6481                        <small><?php esc_html_e( 'Store tax / registration ID:', 'anar-toolkit' ); ?> <?php echo esc_html( $config['store_tax_id'] ); ?></small><?php endif; ?></div><div><h2><?php esc_html_e( 'Order invoice', 'anar-toolkit' ); ?> <span dir="ltr"><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></span></h2><small><?php echo esc_html( $order->get_date_created() ? wc_format_datetime( $order->get_date_created() ) : '' ); ?></small><small><?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?></small></div></header>
    65                 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div><div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div></div>
     82                <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div>
     83                <?php
     84                if ( $config['invoice_show_shipping'] ) :
     85                        ?>
     86                        <div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div><?php endif; ?></div>
    6687                <table><thead><tr><th><?php esc_html_e( 'Item', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Quantity', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Amount', 'anar-toolkit' ); ?></th></tr></thead><tbody>
    6788                <?php
    … …  
    7091                        <tr><td><?php echo esc_html( $item->get_name() ); ?>
    7192                        <?php
    72                         if ( $item->get_product() ) :
     93                        if ( $config['invoice_show_sku'] && $item->get_product() ) :
    7394                                ?>
    7495                        <small><?php echo esc_html( $item->get_product()->get_sku() ); ?></small><?php endif; ?></td><td><?php echo esc_html( $item->get_quantity() ); ?></td><td><?php echo wp_kses_post( wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) ) ); ?></td></tr><?php endforeach; ?></tbody></table><div class="totals">
    … …  
    7697                        foreach ( $order->get_order_item_totals() as $key => $total ) :
    7798                                ?>
    78         <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div><footer><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>
     99        <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div>
    79100                <?php
    80                 exit;
     101                if ( $config['invoice_show_note'] && $order->get_customer_note() ) :
     102                        ?>
     103                <p><?php echo esc_html( $order->get_customer_note() ); ?></p><?php endif; ?><footer><p><?php echo esc_html( $config['invoice_footer'] ); ?></p><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>
     104                <?php
    81105        }
    82106}
  • anar-toolkit/tags/1.6.0/src/Marketing/Settings.php

    r3791013 r3809098  
    2424                        $rules[ $key ] = array( 'enabled' => 'invoice' === $key ? 0 : 1, 'days' => $days, 'message' => __( '{site}: Hello {name}. {message} {product_url} {coupon_code} {action_url} Stop messages: {unsubscribe_url}', 'anar-toolkit' ), 'template' => '', 'params' => '', 'discount_type' => 'none', 'discount_amount' => '0', 'discount_hours' => 72, 'static_coupon' => '' );
    2525                }
    26                 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );
     26                return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'invoice_template' => 'branded', 'invoice_color' => '#a72c52', 'invoice_logo' => '', 'invoice_footer' => '', 'invoice_show_sku' => 1, 'invoice_show_shipping' => 1, 'invoice_show_note' => 0, 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );
    2727        }
    2828
    … …  
    6969                        $out[ $key ] = sanitize_textarea_field( is_scalar( $raw[ $key ] ?? '' ) ? $raw[ $key ] ?? '' : '' ); }
    7070                $out['provider'] = sanitize_key( $out['provider'] );
     71                $out['invoice_template'] = 'simple' === ( $raw['invoice_template'] ?? '' ) ? 'simple' : 'branded';
     72                $out['invoice_color'] = sanitize_hex_color( $raw['invoice_color'] ?? '' ) ?: '#a72c52';
     73                $out['invoice_logo'] = esc_url_raw( $raw['invoice_logo'] ?? '' );
     74                $out['invoice_footer'] = sanitize_textarea_field( $raw['invoice_footer'] ?? '' );
     75                foreach ( array( 'invoice_show_sku', 'invoice_show_shipping', 'invoice_show_note' ) as $key ) {
     76                        $out[ $key ] = empty( $raw[ $key ] ) ? 0 : 1; }
     77
    7178                $out['game_texts'] = array();
    7279                foreach ( array( 'wheel', 'scratch', 'boxes', 'cards', 'slots', 'treasure', 'daily', 'quiz', 'memory', 'milestone' ) as $type ) {
  • anar-toolkit/tags/1.6.0/src/Messaging/MessageCatalog.php

    r3795298 r3809098  
    7474                        $name = 'kavenegar' === $provider ? 'token' : ( ( $config['code_parameter'] ?? '' ) ?: 'code' );
    7575                        $text = 'custom' === $provider || ( 'melipayamak' === $provider && empty( $config['template_id'] ) && ! empty( $config['from'] ) );
    76                         return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => $config['template_id'] ?? '', 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );
     76                        return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => 'bale' === $provider ? 'otp' : ( $config['template_id'] ?? '' ), 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );
    7777                }
    7878                if ( 'commerce' === $item['source'] ) {
    … …  
    8080                        $key = 'recovery_request' === $id ? 'recovery_1' : $item['key'];
    8181                        $event = $settings['events'][ $key ];
    82                         $provider = $settings['provider'];
     82                        $provider = ( new CommerceSettings() )->provider();
    8383                } else {
    8484                        $settings = ( new MarketingSettings() )->all();
    8585                        $event = $settings['rules'][ $item['key'] ];
    86                         $provider = $settings['provider'] ?: ( new CommerceSettings() )->get( 'provider' );
     86                        $provider = $settings['provider'] ?: ( new CommerceSettings() )->provider();
    8787                }
    8888                return array_merge( $event, array( 'provider' => $provider, 'mode' => 'custom' === $provider ? 'text' : 'template', 'inherit' => false ) );
  • anar-toolkit/tags/1.6.0/src/Messaging/MessageSettings.php

    r3795298 r3809098  
    109109                }
    110110                $registry = ProviderRegistry::shared()->all();
     111                if ( 'bale' === ( $value['provider'] ?? '' ) && 'auth' !== $item['source'] ) {
     112                        $errors[] = __( 'Bale supports verification codes only.', 'anar-toolkit' );
     113                }
    111114                if ( ! empty( $value['account_changed'] ) ) {
    112115                        $errors[] = __( 'The provider account changed. Review and save this message again.', 'anar-toolkit' );
  • anar-toolkit/tags/1.6.0/src/Messaging/ProviderRegistry.php

    r3791641 r3809098  
    8383                $http            = $this->http ? $this->http : new HttpClient();
    8484                $this->providers = array();
    85                 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, CustomHttp::class ) as $class ) {
     85                foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, \Anar\Login\Messaging\Providers\Bale::class, CustomHttp::class ) as $class ) {
    8686                        $provider                            = new $class( $this->settings, $http );
    8787                        $this->providers[ $provider->key() ] = $provider;
  • anar-toolkit/tags/1.6.0/src/Plugin.php

    r3793903 r3809098  
    5555         */
    5656        public function boot() {
     57                ( new \Anar\Login\Integrations\Elementor() )->register();
    5758                add_action( 'init', array( $this, 'init' ), 0 );
    5859                add_action( 'init', array( $this, 'runtime' ), 1 );
    … …  
    9091                );
    9192                if ( is_admin() ) {
     93                        add_action( 'admin_post_anar_invoice_preview', array( \Anar\Login\Admin\InvoicePreview::class, 'render' ) );
    9294                        $settings = new Settings();
    9395                        $providers = ProviderRegistry::shared();
    … …  
    191193                        }
    192194                }
     195                ( new \Anar\Login\Commerce\CappedDiscount() )->register();
    193196                // Existing personal coupons keep their restrictions even if their creating module is stopped.
    194197                if ( $flags['games'] || get_option( 'anar_game_budget_coupons' ) ) {
  • anar-toolkit/tags/1.6.0/src/Vendor/WebAuthn/UPSTREAM.txt

    r3791584 r3809098  
    33Commit: 20adb4a240c3997bd8cac7dc4dde38ab0bea0ed1
    44License: MIT; see LICENSE.
    5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn.
     5Modification: namespace isolated as Anar\Login\Vendor\WebAuthn; WordPress direct-access guard added.
    66Loaded only by the optional passkey handler on PHP 8.0 or later.
  • anar-toolkit/tags/1.6.0/src/Vendor/WebAuthn/WebAuthn.php

    r3791584 r3809098  
    33namespace Anar\Login\Vendor\WebAuthn;
    44use Anar\Login\Vendor\WebAuthn\Binary\ByteBuffer;
     5
     6defined( 'ABSPATH' ) || exit;
     7
    58require_once 'WebAuthnException.php';
    69require_once 'Binary/ByteBuffer.php';
  • anar-toolkit/trunk/anar-login.php

    r3796547 r3809098  
    44 * Plugin URI:        https://mrnwp.ir/anar/
    55 * Description:       SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.
    6  * Version:           1.5.9
     6 * Version:           1.6.0
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
    … …  
    1919defined( 'ABSPATH' ) || exit;
    2020
    21 define( 'ANAR_LOGIN_VERSION', '1.5.9' );
     21define( 'ANAR_LOGIN_VERSION', '1.6.0' );
    2222define( 'ANAR_LOGIN_FILE', __FILE__ );
    2323define( 'ANAR_LOGIN_PATH', plugin_dir_path( __FILE__ ) );
  • anar-toolkit/trunk/assets/css/commerce-suite.css

    r3788438 r3809098  
    11.anar-commerce{--ink:#282331;--muted:#8b8295;--line:#ebe6ee;--red:#ae2750;--green:#4c937b;max-width:1500px;margin-inline-end:24px;color:var(--ink);font-family:inherit;font-size:13px;line-height:1.8}.anar-commerce *{box-sizing:border-box}.anar-commerce [hidden]{display:none!important}.anar-commerce a{color:var(--red);text-decoration:none}.anar-suite-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:30px 24px}.anar-suite-brand{display:flex;align-items:center;gap:18px}.anar-suite-brand>img{width:62px;height:62px;object-fit:contain}.anar-suite-brand p{margin:0;font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--red)}.anar-suite-brand p span{font-size:9px;background:#eee9f0;color:var(--muted);border-radius:5px;padding:3px 8px;letter-spacing:0;margin-inline-start:8px}.anar-suite-header h1{font-size:26px;font-weight:700;line-height:1.5;margin:3px 0;letter-spacing:-.5px}.anar-suite-brand .anar-suite-subtitle{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.anar-suite-link{display:flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)!important}.anar-suite-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:28px}.anar-suite-tabs a{position:relative;flex-shrink:0;padding:15px 16px;color:var(--muted);font-weight:600;font-size:12px}.anar-suite-tabs a.is-active{color:var(--red)}.anar-suite-tabs .is-active:after{content:'';position:absolute;inset-inline:16px;bottom:0;height:3px;background:var(--red);border-radius:4px 4px 0 0}.anar-suite-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0 22px}.anar-suite-toolbar h2{font-size:23px;margin:3px 0}.anar-eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#9d93a5}.anar-suite-toolbar form,.anar-table-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.anar-commerce select,.anar-commerce input:is([type=text],[type=number],[type=tel],[type=email],[type=url]),.anar-commerce textarea{background:#fff;border:1px solid #ddd5e3;border-radius:8px;min-height:38px;padding:7px 11px;font:inherit;box-shadow:none;max-width:100%}.anar-commerce .button{min-height:38px;padding:3px 15px;border:1px solid #dfd7e5;border-radius:8px;background:#fff;color:var(--ink);box-shadow:none}.anar-commerce .button-primary{background:var(--red);border-color:var(--red);color:#fff}.anar-commerce :focus-visible{outline:2px solid var(--red);outline-offset:3px}.anar-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin-bottom:24px}.anar-kpi{position:relative;min-width:0;min-height:180px;padding:24px;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.anar-kpi p{font-size:12px;color:#7c7088;margin:12px 0 7px}.anar-kpi strong{display:block;font-size:32px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.5px}.anar-kpi small{display:block;margin-top:8px;color:#a096aa;font-size:10px}.anar-kpi-icon{width:35px;height:35px;padding:7px;border-radius:10px;background:#faf0f4;color:var(--red);font-size:21px}.anar-kpi.hero{background:linear-gradient(135deg,#6e1736,#b32c56);color:#fff;border-color:transparent}.anar-kpi.hero:after{content:'';position:absolute;inset-inline-end:-35px;bottom:-80px;width:200px;height:200px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff04;pointer-events:none}.anar-kpi.hero p,.anar-kpi.hero small{color:#efc5d4}.anar-kpi.hero .anar-kpi-icon{background:#ffffff18;color:#fff}.anar-analytics-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:22px}.anar-commerce-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.anar-commerce-card h2{font-size:16px;font-weight:650;margin:4px 0 20px}.anar-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.anar-chart-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.anar-chart-legend i{display:inline-block;width:7px;height:7px;background:#bd3e66;border-radius:2px}.anar-chart-legend .second{background:#68a68f;margin-inline-start:10px}.anar-chart{display:flex;direction:ltr;gap:12px;height:235px;padding-top:24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#f3eff6 49px,#f3eff6 50px)}.anar-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.anar-chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:180px;width:100%}.anar-chart-bar{width:35%;max-width:22px;min-height:0;border-radius:5px 5px 0 0;background:linear-gradient(#b82e58,#e2abbe)}.anar-chart-bar.second{background:linear-gradient(#43856f,#b4d3c8)}.anar-chart-column small{font-size:9px;color:#a498ad;margin-top:12px}.anar-chart-details{font-size:11px;color:var(--muted);margin-top:15px}.anar-chart-details summary{cursor:pointer}.anar-footnote{font-size:11px;color:var(--muted);line-height:1.9}.anar-donut{width:155px;height:155px;border-radius:50%;padding:13px;background:conic-gradient(var(--green) 0 var(--anar-sweep),#f0eaf3 var(--anar-sweep) 360deg);margin:22px auto}.anar-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;border-radius:50%;height:100%}.anar-donut strong{font-size:29px}.anar-donut span{font-size:11px;color:var(--muted)}.anar-health-list{margin-top:24px}.anar-health-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #f4f0f7;padding:9px 0;font-size:11px;color:var(--muted)}.anar-health-list dd{margin:0;color:var(--ink);font-weight:700}.anar-suite-note{display:flex;align-items:center;gap:12px;background:#efebf3;border-radius:12px;padding:13px 20px;color:#8b7e97;margin:8px 0 22px}.anar-suite-note p{font-size:11px;margin:0}.anar-suite-note .dashicons{flex-shrink:0}.anar-table-filter{margin-block:16px}.anar-table-filter>span{margin-inline-start:auto;color:var(--muted);font-size:11px}.anar-table-card{padding:0;overflow:hidden}.anar-commerce-table{overflow-x:auto}.anar-commerce-table table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap}.anar-commerce-table th{padding:17px 20px;background:#faf8fc;color:#95889f;font-size:11px;font-weight:500;text-align:start;border-bottom:1px solid var(--line)}.anar-commerce-table td{padding:18px 20px;border-bottom:1px solid #f3eff6;font-size:12px}.anar-commerce-table tbody tr:last-child td{border-bottom:0}.anar-commerce-table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.anar-commerce-table tr:hover{background:#fdfbfd}.anar-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;white-space:nowrap;padding:4px 10px;border-radius:20px;background:#f1edf5;color:#80728c}.anar-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.anar-badge--accepted,.anar-badge--converted{background:#eaf4ef;color:#41866d}.anar-badge--active,.anar-badge--pending{background:#fff3e0;color:#a37d39}.anar-badge--running{background:#eaf1fd;color:#507fb6}.anar-badge--failed,.anar-badge--uncertain{background:#fbebf0;color:#b24a6c}.anar-empty-state{text-align:center;padding:55px 15px;white-space:normal}.anar-empty-state>.dashicons{width:55px;height:55px;padding:10px;font-size:35px;color:#c7b7d0;background:#f8f3fa;border-radius:15px}.anar-empty-state h3{font-size:15px;margin:16px 0 7px}.anar-empty-state p{font-size:12px;color:#9d8ea8;margin:0}.anar-pagination{display:flex;gap:10px;justify-content:flex-end;margin:15px 0 26px}.anar-settings-grid,.anar-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.anar-settings-grid .anar-commerce-card,.anar-template-grid .anar-commerce-card{margin:0}.anar-commerce-field{margin-block:16px}.anar-commerce-field label strong{font-size:12px;color:#675773}.anar-commerce-field .description{font-size:11px;color:#a091ab;line-height:1.8}.anar-commerce-field input{margin-top:8px}.anar-template-grid code{font-size:10px;background:#f6f1f9;white-space:normal;word-break:break-word;line-height:2}.anar-template-grid input,.anar-template-grid textarea{width:100%}.anar-suite-savebar{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:12px;margin-block:24px;padding:10px 22px;z-index:5;box-shadow:0 -6px 30px #37203c08}.anar-suite-savebar p.submit{margin:0;padding:0}.anar-campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.anar-campaign-card .dashicons{font-size:27px;width:45px;height:45px;padding:9px;background:#faf0f4;border-radius:12px;color:var(--red)}.anar-campaign-card p{font-size:12px;color:var(--muted)}.anar-setup-step{border-inline-start:3px solid #c88b9e;padding-inline-start:18px;margin-block:20px}
    22@media(max-width:1100px){.anar-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.anar-analytics-grid{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}.anar-card-heading{flex-direction:column;align-items:flex-start}.anar-chart-legend{margin-bottom:15px}.anar-campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.anar-commerce{margin-inline:10px 16px}.anar-suite-header{gap:12px;align-items:flex-start;padding-block:20px}.anar-suite-brand{gap:10px}.anar-suite-brand>img{width:44px;height:44px}.anar-suite-header h1{font-size:17px}.anar-suite-brand .anar-suite-subtitle{font-size:10px}.anar-suite-link{padding:8px;font-size:0}.anar-suite-link .dashicons{font-size:19px}.anar-suite-tabs a{padding:12px;font-size:11px}.anar-suite-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.anar-suite-toolbar h2{font-size:20px}.anar-kpis{gap:10px}.anar-kpi{padding:18px;min-height:160px;border-radius:12px}.anar-kpi strong{font-size:25px}.anar-kpi p{font-size:11px}.anar-kpi small{font-size:9px}.anar-analytics-grid,.anar-settings-grid,.anar-template-grid,.anar-campaign-grid{grid-template-columns:minmax(0,1fr)}.anar-commerce-card{padding:20px}.anar-table-card{padding:0}.anar-chart{gap:6px}.anar-chart-column small{font-size:8px}.anar-suite-note{align-items:flex-start}.anar-commerce-table td,.anar-commerce-table th{padding:15px}}@media(prefers-reduced-motion:reduce){.anar-commerce *{animation:none!important;transition:none!important}}@media print{.anar-suite-tabs,.anar-suite-savebar,.anar-suite-link,.anar-table-filter{display:none!important}.anar-commerce [data-suite-panel]{display:block!important}.anar-commerce{margin:0}.anar-commerce-card{break-inside:avoid}}
     3
     4.anar-store-nav{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:12px}.anar-store-nav a{padding:9px 16px;border-radius:8px;background:#faf2f5;color:#94274e;text-decoration:none}.anar-commerce-card{scroll-margin-top:48px}
  • anar-toolkit/trunk/assets/js/admin.js

    r3795335 r3809098  
    88        const showTab = (name) => {
    99                const connection = root.querySelector('.anar-connection-form');
    10                 if (connection) connection.hidden = name === 'messages' || name === 'sending';
     10                if (connection) connection.hidden = name === 'messages' || name === 'sending' || name === 'features';
    1111                const save = root.querySelector('.anar-admin__save');
    1212                if (save) save.hidden = name === 'setup';
  • anar-toolkit/trunk/languages/anar-toolkit-fa_IR.l10n.php

    r3796547 r3809098  
    11<?php
    22return array(
    3 'project-id-version' => 'Anar Toolkit 1.5.9',
     3'project-id-version' => 'Anar Toolkit 1.6.0',
    44'language' => 'fa_IR',
    55'plural-forms' => 'nplurals=2; plural=(n > 1);',
    … …  
    4141'Abandoned carts' => 'سبدهای رهاشده',
    4242'Accent' => 'برجسته',
     43'Accent color' => 'رنگ اصلی',
    4344'Accepted by provider' => 'پذیرفته‌شده توسط سرویس‌دهنده',
    4445'Accepted means the SMS provider accepted the request; it does not confirm delivery to the phone. Investigate uncertain results before retrying. Codes and full messages are not shown in the report.' => '«پذیرفته‌شده» یعنی سرویس پیامک درخواست را پذیرفته است و تحویل به گوشی را تأیید نمی‌کند. پیش از تکرار، نتیجهٔ نامشخص را بررسی کنید. کدها و متن کامل پیام در گزارش نمایش داده نمی‌شوند.',
    … …  
    99100'Anar SMS password reset' => 'بازیابی رمز پیامکی انار',
    100101'Anar Toolkit' => 'جعبه‌ابزار انار',
     102'Anar Toolkit - SMS Login, Recovery & Marketing for WooCommerce' => 'جعبه‌ابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس',
    101103'Anar Toolkit overview' => 'وضعیت کلی انار',
    102104'Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce' => 'جعبه‌ابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس',
    103105'Anar Toolkit — WooCommerce SMS' => 'جعبه‌ابزار انار — پیامک ووکامرس',
     106'Anar account button' => 'دکمه ورود و حساب کاربری انار',
    104107'Anar and MRN Forms' => 'انار و MRN Forms',
     108'Anar cart recovery' => 'بازیابی سبد خرید انار',
    105109'Anar customer campaigns' => 'کمپین‌های مشتریان انار',
    106110'Anar customer gift' => 'هدیهٔ مشتری انار',
    … …  
    154158'Balance received' => 'موجودی دریافت شد',
    155159'Balance settings saved.' => 'تنظیمات اعتبار پیامک ذخیره شد.',
     160'Bale OTP' => 'کد ورود در بله',
     161'Bale authentication failed.' => 'احراز هویت پنل بله انجام نشد.',
     162'Bale could not deliver the verification code.' => 'بله نتوانست کد تأیید را ارسال کند.',
     163'Bale supports verification codes only.' => 'بله فقط از ارسال کد تأیید پشتیبانی می‌کند.',
    156164'Before a code is sent, the browser solves a short puzzle in the background, with no image or click. Adaptive mode asks only when one address requests repeatedly or the whole site sees an unusual volume, so SMS floods stop costing you money.' => 'پیش از ارسال کد، مرورگر در پس‌زمینه یک معمای کوتاه را حل می‌کند؛ بدون تصویر و بدون کلیک. در حالت هوشمند فقط وقتی فعال می‌شود که یک نشانی پشت‌سرهم درخواست بدهد یا حجم کل سایت غیرعادی شود؛ بنابراین ارسال انبوه رباتی، هزینهٔ پیامک برای شما نمی‌سازد.',
    157165'Before predicted purchase' => 'پیش از خرید پیش‌بینی‌شده',
    … …  
    164172'Both links must be included in the recovery parameter mapping (or the custom gateway message). Use templates approved for purchase reminders.' => 'هر دو لینک بازیابی و لغو دریافت باید در نگاشت متغیرها (یا متن درگاه سفارشی) وجود داشته باشند. از قالب تأییدشده برای یادآوری خرید استفاده کنید.',
    165173'Brand color' => 'رنگ برند',
     174'Branded' => 'برنددار',
    166175'Build a registration form with your own fields in MRN Forms. Anar verifies the mobile number and creates the WordPress account. Other forms can use the same SMS service to verify a number before submission.' => 'فرم ثبت‌نام را با فیلدهای دلخواه در MRN Forms بسازید. انار شمارهٔ همراه را تأیید و حساب وردپرس را ایجاد می‌کند. فرم‌های دیگر هم می‌توانند پیش از ارسال، شمارهٔ همراه را با همین سرویس پیامکی تأیید کنند.',
    167176'Built-in providers send the approved provider template, not this text. Keep its wording in sync with the approved template.' => 'پنل‌های آماده، قالب تأییدشده سرویس را ارسال می‌کنند. این متن را با متن قالب تأییدشده هماهنگ نگه دارید.',
    … …  
    184193'Cancelled' => 'لغوشده',
    185194'Capped game discount' => 'تخفیف بازی با سقف مبلغ',
     195'Capped recovery discount' => 'تخفیف سقف‌دار بازیابی',
     196'Capped recovery discounts require WooCommerce 8.8 or newer.' => 'تخفیف سقف‌دار بازیابی به ووکامرس ۸.۸ یا جدیدتر نیاز دارد.',
    186197'Capture source' => 'منبع ثبت',
    187198'Capture timestamp (UTC Unix time)' => 'زمان ثبت خودکار (زمان یونیکس UTC)',
    … …  
    191202'Cart records' => 'سوابق سبد',
    192203'Cart recovery' => 'بازیابی سبد',
     204'Cart recovery and sending limits' => 'بازیابی سبد و محدودیت‌های ارسال',
    193205'Category' => 'دسته',
    194206'Chance of receiving a coupon (%)' => 'احتمال دریافت جایزه (درصد)',
    … …  
    227239'Clean up when uninstalling' => 'پاک‌سازی هنگام حذف افزونه',
    228240'Clear about 40% of the cover to reveal your result.' => 'حدود ۴۰ درصد پوشش را پاک کنید تا نتیجه نمایش داده شود.',
     241'Client ID' => 'شناسه مشتری بله',
     242'Client secret' => 'رمز اتصال بله',
    229243'Close' => 'بستن',
    230244'Close signup' => 'بستن فرم ثبت‌نام',
    … …  
    272286'Connected and verified' => 'متصل و تأییدشده',
    273287'Connection and message' => 'اتصال و پیام',
     288'Connection and orders' => 'اتصال و سفارش‌ها',
    274289'Connection interrupted. Retry to continue the same game.' => 'ارتباط قطع شد. با زدن «ادامهٔ همین بازی»، همان نوبت را دنبال کنید.',
    275290'Connection settings' => 'تنظیمات اتصال',
    … …  
    279294'Conservative Unicode SMS segment estimate before replacing placeholders; actual billing depends on the provider:' => 'برآورد محافظه‌کارانه تعداد بخش‌های پیامک یونیکد پیش از جایگزینی متغیرها؛ هزینه واقعی به سرویس بستگی دارد:',
    280295'Contact mobile numbers' => 'شماره‌های همراه مخاطبان',
     296'Content' => 'محتوا',
    281297'Continue' => 'ادامه',
    282298'Continue a purchase with your recovery code' => 'ادامه خرید با کد بازیابی',
    … …  
    296312'Core is active' => 'هسته فعال است',
    297313'Correct answer number' => 'شمارهٔ پاسخ درست',
     314'Correct quiz option (1-8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)',
    298315'Correct quiz option (1–8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)',
    299316'Could not complete Google sign-in. Please try again.' => 'ورود با گوگل کامل نشد. لطفاً دوباره تلاش کنید.',
    … …  
    388405'Enable the features your store needs.' => 'قابلیت‌های مورد نیاز فروشگاه را فعال کنید.',
    389406'Enable the login SMS report to count future login and verification messages.' => 'برای ثبت آمار پیامک‌های ورود و تأیید از این به بعد، گزارش پیامک ورود را فعال کنید.',
     407'Enable this feature in Anar settings.' => 'این قابلیت را در تنظیمات انار فعال کنید.',
    390408'Enable this feature, check an account, then set its alert threshold. Periodic checks contact only the accounts you select, about every 30 minutes.' => 'این قابلیت را فعال کنید، موجودی حساب را دریافت کنید و حد هشدار را تعیین کنید. فقط حساب‌های انتخاب‌شده، تقریباً هر ۳۰ دقیقه به‌صورت خودکار بررسی می‌شوند.',
    391409'Enable this stage' => 'فعال‌سازی این مرحله',
    … …  
    526544'If this number is linked to an eligible account, a password reset code will be sent. Please wait before requesting another.' => 'اگر این شماره به حساب واجد شرایطی متصل باشد، کد بازنشانی رمز برای آن ارسال می‌شود. پیش از درخواست مجدد کمی صبر کنید.',
    527545'If you leave now, the changes you made to this message will be lost.' => 'با خروج از ویرایشگر، تغییرات این پیام از دست می‌رود.',
     546'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. کد یک‌بارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره می‌شوند. لینک لغو فقط یادآوری خرید را متوقف می‌کند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    528547'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. کد یک‌بارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره می‌شوند. لینک لغو فقط یادآوری خرید را متوقف می‌کند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
     548'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    529549'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره می‌شوند. شماره و متغیرهای پیکربندی‌شده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال می‌شوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداخت‌نشده دارد. اعلان پرداخت پیام خدماتی جداگانه‌ای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز می‌کند و باعث ورود به حساب نمی‌شود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم می‌کند. پیش از فعال‌سازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیام‌ها را به این سیاست اضافه کنید.',
    530550'Import campaign contacts' => 'درون‌ریزی مخاطبان کمپین',
    … …  
    543563'Install and activate WooCommerce to run these modules. Login features work independently.' => 'برای اجرای این ماژول‌ها، ووکامرس را نصب و فعال کنید. قابلیت‌های ورود مستقل کار می‌کنند.',
    544564'Invisible bot check' => 'بررسی نامرئی ربات',
     565'Invoice footer' => 'متن پایین فاکتور',
    545566'Invoice number prefix' => 'پیشوند شمارهٔ صورتحساب',
     567'Invoice template' => 'قالب فاکتور',
    546568'Issued or reserved in the shared pool: %d' => 'صادر یا رزرو شده در مخزن مشترک: %d',
    547569'It may be time to reorder your product.' => 'شاید زمان خرید دوبارهٔ کالای شما رسیده باشد.',
    … …  
    583605'Loading message…' => 'در حال دریافت پیام…',
    584606'Loading the sign-in form…' => 'در حال بارگذاری فرم ورود…',
     607'Local data retention, days (7-90)' => 'مدت نگهداری داده‌های محلی، به روز (۷ تا ۹۰)',
    585608'Local data retention, days (7–90)' => 'مدت نگهداری داده‌های محلی، به روز (۷ تا ۹۰)',
    586609'Log only error codes and channel names; OTPs and confidential data are never logged.' => 'فقط کد خطا و نام کانال در گزارش خطا ثبت می‌شود؛ کد OTP و اطلاعات محرمانه ثبت نمی‌شوند.',
    … …  
    589612'Login form' => 'فرم ورود',
    590613'Login popup' => 'پاپ‌آپ ورود',
     614'Logo URL' => 'نشانی تصویر لوگو',
    591615'Low credit' => 'اعتبار کم است',
    592616'Lucky wheel' => 'گردونهٔ شانس',
    … …  
    604628'Maximum campaign messages per phone / day' => 'حداکثر پیام کمپین برای هر شماره در روز',
    605629'Maximum coupons for this prize' => 'سقف تعداد این جایزه',
     630'Maximum discount including tax (0 = unlimited)' => 'حداکثر مبلغ تخفیف با احتساب مالیات (۰ = بدون سقف)',
    606631'Maximum lifetime spend (0 = no maximum)' => 'حداکثر مجموع خرید (۰ یعنی بدون سقف)',
    607632'Maximum money discount for the single reward' => 'سقف مبلغ تخفیف جایزهٔ ثابت',
    608633'Maximum money discount per coupon' => 'سقف مبلغ تخفیف هر کد',
     634'Maximum reminders per phone in 24 hours (1-10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)',
    609635'Maximum reminders per phone in 24 hours (1–10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)',
    610636'Maximum saving: %1$s %2$s, including tax.' => 'حداکثر مبلغ تخفیف با احتساب مالیات: %1$s %2$s.',
    … …  
    695721'Off' => 'خاموش',
    696722'Off by default. When on, the WordPress login page shows the passwordless form with a “Sign in with a password” link, so staff can always use their password.' => 'به‌طور پیش‌فرض خاموش است. در صورت فعال‌سازی، صفحهٔ ورود وردپرس فرم ورود بدون رمز را همراه با لینک «ورود با رمز عبور» نمایش می‌دهد تا مدیران همیشه بتوانند با رمز وارد شوند.',
     723'Offer from reminder stage (1-3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)',
    697724'Offer from reminder stage (1–3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)',
    698725'One coupon per cart, one use, restricted to the recipient billing phone. Include {coupon_code} in the relevant reminder template. A valid coupon is applied after the customer verifies their recovery code.' => 'برای هر سبد یک کوپن یک‌بارمصرف، محدود به شمارهٔ صورتحساب گیرنده ایجاد می‌شود. {coupon_code} را در الگوی یادآوری مربوط قرار دهید. کوپن معتبر پس از تأیید کد بازیابی مشتری اعمال می‌شود.',
    … …  
    734761'Order completed' => 'سفارش تکمیل‌شده',
    735762'Order invoice' => 'صورتحساب سفارش',
     763'Order messages and connection' => 'پیام‌های سفارش و اتصال پنل',
     764'Order not found.' => 'سفارش پیدا نشد.',
    736765'Order notifications' => 'اعلان‌های سفارش',
    737766'Order number' => 'شمارهٔ سفارش',
    … …  
    818847'Preparing your result…' => 'نتیجهٔ بازی در حال آماده شدن است…',
    819848'Preview eligible audience' => 'پیش‌نمایش مخاطبان واجد شرایط',
     849'Preview order ID (empty = sample)' => 'شناسه سفارش برای پیش‌نمایش (خالی = نمونه)',
    820850'Preview saved form' => 'پیش‌نمایش فرم ذخیره‌شده',
     851'Preview saved invoice settings' => 'پیش‌نمایش فاکتور با تنظیمات ذخیره‌شده',
    821852'Preview the form and choose where it appears' => 'فرم را ببینید و محل نمایش آن را انتخاب کنید',
    822853'Previous' => 'قبلی',
    … …  
    859890'Raw OTPs are never stored in the database.' => 'OTP خام هرگز در دیتابیس ذخیره نمی‌شود.',
    860891'Receive today’s gift' => 'دریافت هدیهٔ امروز',
     892'Receive verification codes inside Bale.' => 'کد تأیید را در پیام‌رسان بله دریافت کنید.',
    861893'Recent customer profiles' => 'پروفایل مشتریان اخیر',
    862894'Recipient' => 'گیرنده',
    … …  
    872904'Recovered revenue' => 'درآمد خریدهای بازیابی‌شده',
    873905'Recovery code' => 'کد بازیابی',
     906'Recovery code validity, minutes (5-1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)',
    874907'Recovery code validity, minutes (5–1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)',
    875908'Recovery discounts' => 'تخفیف بازیابی خرید',
     909'Recovery eligibility after cart activity, days (1-30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    876910'Recovery eligibility after cart activity, days (1–30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
     911'Recovery link lifetime after cart activity, days (1-30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    877912'Recovery link lifetime after cart activity, days (1–30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)',
    878913'Recovery messages must include both recovery and unsubscribe links.' => 'پیام یادآوری باید هر دو لینک بازیابی و لغو دریافت را داشته باشد.',
    … …  
    880915'Recovery messages must include the recovery code and unsubscribe link.' => 'پیام یادآوری باید کد بازیابی و لینک لغو دریافت را داشته باشد.',
    881916'Recovery page URL' => 'نشانی صفحهٔ بازیابی خرید',
     917'Recovery sending starts at hour (0-23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)',
    882918'Recovery sending starts at hour (0–23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)',
     919'Recovery sending stops at hour (1-24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)',
    883920'Recovery sending stops at hour (1–24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)',
    884921'Recovery · first reminder' => 'بازیابی · یادآوری اول',
    … …  
    951988'SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.' => 'ورود با پیامک، ایمیل و گوگل، بازیابی رمز پیامکی، بازیابی سبد و ابزارهای ارتباط با مشتری ووکامرس.',
    952989'Sample' => 'نمونه',
     990'Sample address' => 'نشانی نمونه',
    953991'Sample campaign content' => 'متن نمونهٔ کمپین',
     992'Sample customer' => 'مشتری نمونه',
    954993'Sample preview' => 'پیش‌نمایش نمونه',
     994'Sample product' => 'کالای نمونه',
    955995'Save and close' => 'ذخیره و بستن',
    956996'Save and continue' => 'ذخیره و ادامه',
    … …  
    10451085'Show a link to sign in with a password. Password recovery also appears here when SMS password recovery is enabled.' => 'پیوند ورود با رمز عبور را نشان می‌دهد. اگر بازیابی پیامکی رمز فعال باشد، گزینهٔ بازیابی هم در پنجره نمایش داده می‌شود.',
    10461086'Show above the WooCommerce forms' => 'نمایش بالای فرم‌های ووکامرس',
     1087'Show customer note' => 'نمایش یادداشت مشتری',
    10471088'Show low-credit warnings to site administrators' => 'هشدار کمبود اعتبار به مدیران سایت نمایش داده شود',
     1089'Show product SKU' => 'نمایش شناسه کالا',
     1090'Show shipping address' => 'نمایش نشانی ارسال',
    10481091'Show the Google sign-in button on the login form.' => 'دکمه ورود گوگل در فرم ورود نمایش داده شود.',
    10491092'Shown after the customer wins and the coupon has been created. The coupon code is displayed separately below this message.' => 'این پیام پس از برنده شدن مشتری و ایجاد کد تخفیف نمایش داده می‌شود. خود کد تخفیف جداگانه زیر پیام قرار می‌گیرد.',
    … …  
    10531096'Shows the time, provider, and result of SMS requests for sign-in, two-step verification, and password reset.' => 'زمان، سرویس‌دهنده و نتیجهٔ ارسال پیامک‌های ورود، تأیید دومرحله‌ای و بازیابی رمز عبور را نشان می‌دهد.',
    10541097'Sign in' => 'ورود',
     1098'Sign in / Account' => 'ورود / حساب کاربری',
    10551099'Sign in / Register' => 'ورود / ثبت‌نام',
    10561100'Sign in before verifying your mobile number.' => 'برای تأیید شمارهٔ همراه، ابتدا وارد حساب خود شوید.',
    … …  
    10771121'Signing you in…' => 'در حال ورود…',
    10781122'Simple' => 'ساده',
     1123'Simple print' => 'ساده و مناسب چاپ',
    10791124'Single use' => 'مصرف یک‌باره',
    10801125'Site domain' => 'دامنهٔ سایت',
    … …  
    11121157'Store promotion' => 'هدیهٔ فروشگاه',
    11131158'Store quiz' => 'مسابقهٔ پرسش‌وپاسخ',
     1159'Store settings' => 'تنظیمات فروشگاه',
    11141160'Store tax / registration ID' => 'شناسهٔ مالیاتی / ثبتی فروشگاه',
    11151161'Store tax / registration ID:' => 'شناسهٔ مالیاتی / ثبتی فروشگاه:',
    … …  
    12761322'Use the existing shortcode, popup or WooCommerce integration. Changing where the form appears does not change its verification rules. Save appearance changes before previewing.' => 'از کد کوتاه، پاپ‌آپ یا اتصال ووکامرس استفاده کنید. محل نمایش فرم، قواعد تأیید هویت را تغییر نمی‌دهد. پیش از دیدن پیش‌نمایش، تغییرات ظاهر را ذخیره کنید.',
    12771323'Use the same SMS settings as the sign-in code' => 'استفاده از تنظیمات ارسال پیامک کد ورود',
     1324'Use the sign-in SMS provider' => 'استفاده از پنل پیامکی ورود',
    12781325'Use the sign-in template for this verification message' => 'استفاده از الگوی ورود برای این پیام تأیید',
    12791326'Used for messages whose delivery method is plain text. Approved-template messages use the panel service line.' => 'این شماره برای پیام‌هایی استفاده می‌شود که روش ارسالشان «پیامک متنی» است. پیام‌های الگویی از خط خدماتی پنل ارسال می‌شوند.',
    … …  
    12891336'Value to send' => 'مقدار ارسالی',
    12901337'Verification code' => 'کد تأیید',
     1338'Verification code sent via Bale.' => 'کد تأیید در پیام‌رسان بله ارسال شد.',
    12911339'Verified' => 'تأییدشده',
    12921340'Verify Lookup template name' => 'نام الگوی Verify Lookup',
    … …  
    13111359'When enabled by this store, Anar saves checkout/account mobile numbers and cart contents for reminders without a separate checkbox. A notice is shown at cart/checkout; every marketing message includes an unsubscribe link. Optional campaigns keep customer contact details, paid-order/product facts, stock requests, honest purchase feedback, birthday month/day and calendar, referral relationships, game attempts and personal coupon references locally. No birth year is requested. Coupon gifts are single-use and phone-bound; survey gifts do not depend on a positive rating. Provider credentials and plaintext login/reset codes are never written to campaign reports. The selected SMS provider receives recipient numbers and configured message variables. Optional traffic analytics use a first-party random browser identifier lasting up to 30 days, daily keyed hashes and referring hostnames, excluding checkout/account pages and administrator visits; no raw IP or full referrer URL is retained in traffic reports. Configure and disclose the selected modules, provider, purposes and retention period here. WordPress personal-data tools and administrator phone erasure remove local marketing records and revoke unused personal gifts without deleting WooCommerce orders. Minimal suppression hashes may remain to remember stopped messages.' => 'در صورت فعال‌سازی فروشگاه، انار شمارهٔ همراه حساب یا تسویه‌حساب و محتوای سبد را بدون تیک جداگانه برای یادآوری ذخیره می‌کند. اطلاعیه در سبد و تسویه‌حساب نمایش داده می‌شود و هر پیام بازاریابی لینک لغو دریافت دارد. کمپین‌های اختیاری اطلاعات تماس، سوابق سفارش پرداخت‌شده و کالا، درخواست موجودی، بازخورد خرید، ماه و روز تولد و تقویم، روابط معرفی دوستان، دفعات بازی و ارجاع کوپن‌های اختصاصی را محلی نگه می‌دارند. سال تولد درخواست نمی‌شود. کوپن‌های هدیهٔ تولیدشده یک‌بارمصرف و محدود به شمارهٔ همراه هستند؛ هدیهٔ نظرسنجی به امتیاز مثبت وابسته نیست. اطلاعات دسترسی سرویس‌دهنده و کدهای ورود و بازنشانیِ خوانا در گزارش کمپین ذخیره نمی‌شوند. سرویس پیامک انتخاب‌شده شمارهٔ گیرنده و متغیرهای تنظیم‌شده را دریافت می‌کند. آمار اختیاری بازدید از شناسهٔ تصادفی مرورگر همان سایت با عمر حداکثر ۳۰ روز، هش کلیددار روزانه و نام میزبان ارجاع‌دهنده استفاده می‌کند؛ صفحات تسویه‌حساب، حساب کاربری و بازدید مدیران مستثنا هستند. IP خام و نشانی کامل ارجاع‌دهنده در گزارش بازدید نگهداری نمی‌شود. ماژول‌ها، سرویس‌دهنده، هدف‌ها و دورهٔ نگهداری انتخاب‌شده را اینجا اعلام کنید. ابزارهای دادهٔ شخصی وردپرس و حذف بر اساس شماره توسط مدیر، سوابق محلی بازاریابی را پاک و هدیه‌های اختصاصیِ استفاده‌نشده را باطل می‌کنند، بدون حذف سفارش ووکامرس. ممکن است حداقل هش لازم برای به‌خاطر سپردن لغو پیام باقی بماند.',
    13121360'When no prizes remain' => 'پس از تمام شدن جوایز',
     1361'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویه‌حساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره می‌کند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری می‌شوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویس‌دهندهٔ انتخاب‌شده فرستاده می‌شوند. هر یادآوری پیوند توقف پیام‌های بعدی دارد. اعلان‌های پرداخت پیام خدماتی مستقل‌اند. کد بازیابی یک‌بارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی می‌کند و ورود به حساب نیست. هش کد، تلاش‌ها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری می‌شوند. لغو دریافت، یادآوری خرید و کمپین‌های اختیاری بازاریابی را متوقف می‌کند؛ پیام‌های خدماتی مستقل‌اند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی می‌ماند. فروشگاه سرویس‌دهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین می‌کند. پیش از فعال‌سازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیام‌ها را به این سیاست اضافه کنید.',
    13131362'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویه‌حساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره می‌کند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری می‌شوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویس‌دهندهٔ انتخاب‌شده فرستاده می‌شوند. هر یادآوری پیوند توقف پیام‌های بعدی دارد. اعلان‌های پرداخت پیام خدماتی مستقل‌اند. کد بازیابی یک‌بارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی می‌کند و ورود به حساب نیست. هش کد، تلاش‌ها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری می‌شوند. لغو دریافت، یادآوری خرید و کمپین‌های اختیاری بازاریابی را متوقف می‌کند؛ پیام‌های خدماتی مستقل‌اند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی می‌ماند. فروشگاه سرویس‌دهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین می‌کند. پیش از فعال‌سازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیام‌ها را به این سیاست اضافه کنید.',
    13141363'Winning chance and single-reward fallback' => 'احتمال برد و جایزهٔ ثابت',
    … …  
    13251374'You cannot manage these campaigns.' => 'اجازهٔ مدیریت این کمپین‌ها را ندارید.',
    13261375'You cannot manage these settings.' => 'اجازه مدیریت این تنظیمات را ندارید.',
     1376'You cannot preview invoices.' => 'شما اجازه پیش‌نمایش فاکتور را ندارید.',
    13271377'You have signed in successfully.' => 'با موفقیت وارد شدید.',
    13281378'Your account could not be created. Request a new code and try again.' => 'ایجاد حساب انجام نشد. کد جدید بگیرید و دوباره تلاش کنید.',
  • anar-toolkit/trunk/readme.txt

    r3796547 r3809098  
    1 === Anar Toolkit (انار) – SMS Login, Recovery & Marketing for WooCommerce ===
     1=== Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce ===
    22Contributors: mrnwp
    33Tags: sms, woocommerce, abandoned-cart, otp, notifications
    … …  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.5.9
     7Stable tag: 1.6.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 انار برای ووکامرس با ورود پیامکی، بازیابی رمز و سبد خرید، اعلان سفارش و کمپین. SMS login, password reset, cart recovery, order alerts and campaigns.
     11SMS login, password reset, cart recovery, order alerts and customer campaigns for WooCommerce.
    1212
    1313== Description ==
    … …  
    118118Customers print/save invoices as PDF from My Account or an expiring scoped link. Use [anar_customer_preferences] for birthday month/day, [anar_referrals] for referrals and [anar_game type="wheel"] for a game. Other types: scratch, boxes, cards, slots, treasure, daily, quiz, memory and milestone. Server-side rules enforce coupon rewards and daily limits; there is no paid entry or cash prize. Persian birthday dates require PHP Intl.
    119119
     120= Elementor widgets and printable invoices =
     121Three optional Elementor widgets reuse Anar's sign-in form, account button and cart recovery form. Elementor is not required for other features. Enable the corresponding Anar capability before using its widget.
     122Choose a simple-print or branded invoice, adjust its accent color, logo URL and footer, and choose whether to show product SKUs, shipping addresses and customer notes. Save changes before opening the invoice preview. An empty preview order ID uses sample data; a real order ID is accessible only to an authorized store manager.
     123Recovery coupons support an optional maximum monetary discount including tax (0 means unlimited). Capped recovery coupons require WooCommerce 8.8 or later. Coupon expiry is measured from issuance and is not renewed by subsequent reminders.
     124
    120125== External services ==
     126
     127= Bale Safir OTP (optional) =
     128Bale is a verification-code channel, not a plain-text commerce SMS provider. It is used only after the store administrator selects Bale and supplies their Safir client ID and client secret. When a verification code is requested, Anar sends those credentials to https://safir.bale.ai/api/v2/auth/token to obtain an access token. The token is cached temporarily on the WordPress server. Anar sends the recipient's international mobile number and numeric OTP to https://safir.bale.ai/api/v2/send_otp with that bearer token. The user receives the code inside Bale and must have a Bale account. No automatic SMS fallback is performed. Select a separate SMS provider for commerce messages when sign-in uses Bale.
     129Official service: https://safir.bale.ai/
     130Official documentation: https://docs.bale.ai/
     131Official terms, including privacy provisions: https://bale.ai/terms
     132
    121133
    122134All integrations use accounts configured by the site administrator. The plugin makes no telemetry, licensing or analytics requests to MRNWP or its author. Provider service fees and contracts are independent of the free plugin.
    … …  
    241253
    242254== Changelog ==
     255
     256= 1.6.0 =
     257
     258* Move feature switches into Settings and group store recovery, message and discount controls.
     259* Let store messages follow the sign-in provider by default while preserving explicit provider and message bindings.
     260* Add recovery discount ceilings including tax, retaining coupon expiry and single-use restrictions.
     261* Add optional Bale Safir OTP delivery with cached access tokens.
     262* Add Elementor sign-in, account-button and purchase-recovery widgets using existing forms.
     263* Add simple-print and branded invoice templates, display controls and administrator-only sample/order previews.
     264
    243265
    244266= 1.5.9 =
  • anar-toolkit/trunk/src/Admin/FeaturesPage.php

    r3796547 r3809098  
    4141                        }
    4242                }
    43                 add_submenu_page( 'anar-login', __( 'Features', 'anar-toolkit' ), __( 'Features', 'anar-toolkit' ), 'manage_options', 'anar-login', array( self::class, 'render' ), 0 );
     43                add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login', array( SettingsPage::class, 'landing' ), 0 );
    4444                $flags = Features::all();
    4545                $commerce = new \Anar\Login\Commerce\Admin( new \Anar\Login\Commerce\Settings(), new \Anar\Login\Commerce\Repository(), \Anar\Login\Messaging\ProviderRegistry::shared() );
    … …  
    5252                                add_submenu_page( 'anar-login', self::labels()[ $key ], self::labels()[ $key ], 'manage_options', 'anar-toolkit-' . $key, array( $commerce, 'render' ) ); }
    5353                }
    54                 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) );
     54                $settings_hook = add_submenu_page( null, __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) );
     55                add_action(
     56                        'load-' . $settings_hook,
     57                        static function () {
     58                        // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Hidden compatibility page still needs its admin heading.
     59                                $GLOBALS['title'] = __( 'Settings', 'anar-toolkit' );
     60                        }
     61                );
    5562                add_submenu_page( $flags['balance'] ? 'anar-login' : null, __( 'SMS credit', 'anar-toolkit' ), __( 'SMS credit', 'anar-toolkit' ), 'manage_options', 'anar-toolkit-balance', array( BalancePage::class, 'render' ) );
    5663                // Keep older bookmarked URLs working without a second copy of the catalog in the menu.
    … …  
    93100        }
    94101
    95         public static function render() {
     102        public static function render( $embedded = false ) {
    96103                if ( ! current_user_can( 'manage_options' ) ) {
    97104                        return;
    … …  
    104111                $groups = $other_first ? array( false => __( 'Other features', 'anar-toolkit' ), true => __( 'Active features', 'anar-toolkit' ) ) : array( true => __( 'Active features', 'anar-toolkit' ), false => __( 'Other features', 'anar-toolkit' ) );
    105112                ?>
    106                 <div class="wrap anar-features" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
     113                <div class="<?php echo $embedded ? 'anar-features' : 'wrap anar-features'; ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
    107114                        <header class="anar-features-banner">
    108115                                <img src="<?php echo esc_url( ANAR_LOGIN_URL . 'assets/images/anar-logo.png?ver=' . ANAR_LOGIN_VERSION ); ?>" alt="" width="64" height="64">
    109116                                <div>
    110                                         <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1>
     117                                        <?php
     118                                        if ( $embedded ) :
     119                                                ?>
     120                                                <h2><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h2>
     121                                                <?php
     122else :
     123        ?>
     124                                                <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1><?php endif; ?>
    111125                                        <p><?php esc_html_e( 'Enable the features your store needs.', 'anar-toolkit' ); ?></p>
    112126                                </div>
    113127                        </header>
    114                         <hr class="wp-header-end">
    115                         <?php StatusPanel::credit(); ?>
     128                        <!---->
     129                        <?php
     130                        if ( ! $embedded ) :
     131                                ?>
     132                                <hr class="wp-header-end">
     133                                <?php
     134                                StatusPanel::credit();
     135endif;
     136                        ?>
    116137                        <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
    117138                                <?php wp_nonce_field( 'anar_features' ); ?>
    … …  
    194215                $balance['enabled'] = empty( $selected['balance'] ) ? 0 : 1;
    195216                update_option( \Anar\Login\Balance\Monitor::OPTION, $balance, false );
    196                 wp_safe_redirect( admin_url( 'admin.php?page=anar-login&saved=1' ) );
     217                wp_safe_redirect( admin_url( 'admin.php?page=anar-login-settings&section=features&saved=1' ) );
    197218                exit;
    198219        }
  • anar-toolkit/trunk/src/Admin/SettingsPage.php

    r3795335 r3809098  
    5151         * @return void
    5252         */
     53        public static function landing() {
     54                ( new self( new Settings(), ProviderRegistry::shared() ) )->render();
     55        }
     56
    5357        public function menu() {
    5458                add_menu_page(
    … …  
    5761                        'manage_options',
    5862                        'anar-login',
    59                         array( FeaturesPage::class, 'render' ),
     63                        array( self::class, 'landing' ),
    6064                        ANAR_LOGIN_URL . 'assets/images/anar-menu-icon.png?ver=' . ANAR_LOGIN_VERSION,
    6165                        58
    … …  
    97101         */
    98102        public function assets( $hook ) {
    99                 if ( false === strpos( $hook, 'anar-login-settings' ) ) {
     103                if ( false === strpos( $hook, 'anar-login' ) ) {
    100104                        return;
    101105                }
    … …  
    525529                                        </footer>
    526530                                </form>
     531                                <section class="anar-tab" data-panel="features" hidden><?php FeaturesPage::render( true ); ?></section>
    527532                                <section class="anar-tab" data-panel="messages" hidden>
    528533                                        <?php $this->section_header( __( 'Messages and templates', 'anar-toolkit' ), __( 'Find a message and edit it here. The same editor is available in each feature.', 'anar-toolkit' ), '✉' ); ?>
    … …  
    557562                ?>
    558563                <div class="anar-admin__nav-label"><?php esc_html_e( 'Shared settings', 'anar-toolkit' ); ?></div>
     564                <button type="button" data-tab="features"><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></button>
     565                <a class="button" href="<?php echo esc_url( admin_url( 'admin.php?page=anar-toolkit-commerce&tab=settings' ) ); ?>"><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></a>
    559566                <button type="button" data-tab="messages"><?php esc_html_e( 'Messages and templates', 'anar-toolkit' ); ?></button>
    560567                <button type="button" data-tab="sending"><?php esc_html_e( 'Campaign sending rules', 'anar-toolkit' ); ?></button>
  • anar-toolkit/trunk/src/Auth/OtpService.php

    r3792977 r3809098  
    306306                        'message'      => 'email' === $channel
    307307                                ? __( 'If sign-in is available, a code has been sent to your email.', 'anar-toolkit' )
    308                                 : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ),
     308                                : ( 'bale' === \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'] ? __( 'Verification code sent via Bale.', 'anar-toolkit' ) : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ) ),
    309309                        'channel'      => $channel,
    310310                        'resend_after' => absint( $this->settings->get( 'resend_delay', 60 ) ),
  • anar-toolkit/trunk/src/Commerce/Admin.php

    r3791206 r3809098  
    4242        public function assets( $hook ) {
    4343                if ( false !== strpos( $hook, 'anar-toolkit-' ) ) {
     44                        wp_enqueue_script( 'anar-invoice-preview', ANAR_LOGIN_URL . 'assets/js/invoice-preview.js', array(), ANAR_LOGIN_VERSION, true );
    4445                        wp_enqueue_style( 'anar-toolkit-commerce', ANAR_LOGIN_URL . 'assets/css/commerce-suite.css', array(), ANAR_LOGIN_VERSION );
    4546                }
    … …  
    112113                                \Anar\Login\Admin\Help::section( $flags['recovery'] ? 'recovery' : 'orders' );
    113114                                ?>
    114                                 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Automation settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">
     115                                <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">
    115116                                <?php settings_fields( 'anar_toolkit_commerce' ); ?>
    116                                 <div class="anar-commerce-card">
    117                                         <h2><?php esc_html_e( 'Modules', 'anar-toolkit' ); ?></h2>
     117<nav class="anar-store-nav" aria-label="<?php esc_attr_e( 'Store settings', 'anar-toolkit' ); ?>"><a href="#anar-store-connection"><?php esc_html_e( 'Connection and orders', 'anar-toolkit' ); ?></a><a href="#anar-store-recovery"><?php esc_html_e( 'Cart recovery', 'anar-toolkit' ); ?></a><a href="#anar-store-discounts"><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></a></nav>
     118                                <div class="anar-commerce-card" id="anar-store-connection"><h2><?php esc_html_e( 'Order messages and connection', 'anar-toolkit' ); ?></h2>
    118119                                        <?php
    119120                                        foreach ( array( 'paid_customer' => $labels['paid_customer'], 'paid_admin' => $labels['paid_admin'], 'recovery' => __( 'Cart and unpaid-order reminders', 'anar-toolkit' ), 'new_admin' => $labels['new_admin'], 'failed_admin' => $labels['failed_admin'], 'shipment_customer' => $labels['shipment_customer'], 'status_processing' => $labels['status_processing'], 'status_completed' => $labels['status_completed'], 'status_on-hold' => $labels['status_on-hold'], 'status_cancelled' => $labels['status_cancelled'], 'status_refunded' => $labels['status_refunded'] ) as $key => $label ) :
    … …  
    130131                                        <p><?php esc_html_e( 'Payment messages are triggered by WooCommerce payment completion, not by viewing the thank-you page. Merely creating an order or choosing cash on delivery does not trigger them.', 'anar-toolkit' ); ?></p>
    131132                                        <p><label for="anar-commerce-provider"><strong><?php esc_html_e( 'Commerce SMS provider', 'anar-toolkit' ); ?></strong></label><br><select id="anar-commerce-provider" name="<?php echo esc_attr( Settings::OPTION ); ?>[provider]">
     133                                        <option value="" <?php selected( $value['provider'], '' ); ?>><?php esc_html_e( 'Use the sign-in SMS provider', 'anar-toolkit' ); ?></option>
    132134                                        <?php foreach ( $this->providers->all() as $key => $provider ) : ?>
    133135                                                <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $value['provider'], $key ); ?>><?php echo esc_html( $provider->title() ); ?></option>
    … …  
    139141                                if ( $flags['recovery'] ) :
    140142                                        ?>
    141                                         <div class="anar-commerce-card">
    142                                         <h2><?php esc_html_e( 'Reminder timing and privacy', 'anar-toolkit' ); ?></h2>
     143                                        <div class="anar-commerce-card" id="anar-store-recovery"><h2><?php esc_html_e( 'Cart recovery and sending limits', 'anar-toolkit' ); ?></h2>
    143144                                        <p><label for="anar-recovery-page"><strong><?php esc_html_e( 'Page for entering recovery codes', 'anar-toolkit' ); ?></strong></label><br>
    144145                                        <?php
    … …  
    150151                                        <p><?php esc_html_e( 'Stage times are minutes after the last saved cart change. A value of 0 disables that stage. Payment, cancellation, expiry or opting out stops future reminders. Guest carts without a saved number cannot receive SMS.', 'anar-toolkit' ); ?></p>
    151152                                        <?php
    152                                         $this->input( 'start_hour', __( 'Recovery sending starts at hour (0–23)', 'anar-toolkit' ), $value['start_hour'], 'number' );
    153                                         $this->input( 'end_hour', __( 'Recovery sending stops at hour (1–24)', 'anar-toolkit' ), $value['end_hour'], 'number' );
    154                                         $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1–10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );
    155                                         $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1–30)', 'anar-toolkit' ), $value['link_days'], 'number' );
    156                                         $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5–1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );
    157                                         $this->input( 'retention', __( 'Local data retention, days (7–90)', 'anar-toolkit' ), $value['retention'], 'number' );
     153                                        $this->input( 'start_hour', __( 'Recovery sending starts at hour (0-23)', 'anar-toolkit' ), $value['start_hour'], 'number' );
     154                                        $this->input( 'end_hour', __( 'Recovery sending stops at hour (1-24)', 'anar-toolkit' ), $value['end_hour'], 'number' );
     155                                        $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1-10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );
     156                                        $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1-30)', 'anar-toolkit' ), $value['link_days'], 'number' );
     157                                        $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5-1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );
     158                                        $this->input( 'retention', __( 'Local data retention, days (7-90)', 'anar-toolkit' ), $value['retention'], 'number' );
    158159                                        foreach ( $value['events'] as $key => $event ) {
    159160                                                if ( ! isset( $event['minutes'] ) ) {
    … …  
    171172                                </div>
    172173
    173                                 <div class="anar-commerce-card"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>
     174                                <div class="anar-commerce-card" id="anar-store-discounts"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>
    174175                                        <?php
    175176                                        foreach ( array( 'coupon_enabled' => __( 'Generate recovery discounts', 'anar-toolkit' ), 'coupon_individual' => __( 'Do not combine with other coupons', 'anar-toolkit' ), 'coupon_exclude_sale' => __( 'Exclude sale products', 'anar-toolkit' ) ) as $key => $label ) :
    … …  
    179180                                        <?php
    180181                                        $this->input( 'coupon_amount', __( 'Discount amount', 'anar-toolkit' ), $value['coupon_amount'], 'number' );
     182                                        $this->input( 'coupon_maximum', __( 'Maximum discount including tax (0 = unlimited)', 'anar-toolkit' ), $value['coupon_maximum'], 'number' );
    181183                                        $this->input( 'coupon_minimum', __( 'Minimum cart amount', 'anar-toolkit' ), $value['coupon_minimum'], 'number' );
    182                                         $this->input( 'coupon_stage', __( 'Offer from reminder stage (1–3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );
     184                                        $this->input( 'coupon_stage', __( 'Offer from reminder stage (1-3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );
    183185                                        $this->input( 'coupon_hours', __( 'Discount validity in hours', 'anar-toolkit' ), $value['coupon_hours'], 'number' );
    184186                                        ?>
    … …  
    194196                                \Anar\Login\Admin\Help::section( 'privacy' );
    195197                                ?>
    196                                 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card">
    197                                 <h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2>
     198                                <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"><h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2>
    198199                                <p><?php esc_html_e( 'WordPress export and erasure tools can locate reminders by the optional saved email. For a phone-only request, verify the requester first and remove that number here. This removes local reminder data and queue entries, not WooCommerce orders or records already held by the SMS provider.', 'anar-toolkit' ); ?></p>
    199200                                <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
  • anar-toolkit/trunk/src/Commerce/Coupons.php

    r3788438 r3809098  
    4949                        $coupon->set_usage_limit_per_user( 1 );
    5050                        $coupon->set_date_expires( min( time() + $config['coupon_hours'] * HOUR_IN_SECONDS, $cart->updated_at + $config['link_days'] * DAY_IN_SECONDS ) );
     51                        if ( (float) $config['coupon_maximum'] > 0 ) {
     52                                $coupon->update_meta_data( '_anar_recovery_money_cap', $config['coupon_maximum'] );
     53                                $coupon->update_meta_data( '_anar_recovery_kind', $config['coupon_type'] );
     54                                $coupon->update_meta_data( '_anar_recovery_value', $config['coupon_amount'] );
     55                                $coupon->set_discount_type( 'anar_recovery_capped' );
     56                                $coupon->set_amount( 0 );
     57                        }
    5158                        $coupon->set_description( __( 'Anar purchase recovery discount', 'anar-toolkit' ) );
    5259                        $coupon->update_meta_data( '_anar_cart_id', (int) $cart->id );
  • anar-toolkit/trunk/src/Commerce/Module.php

    r3788438 r3809098  
    5757                $page = get_queried_object();
    5858                $shortcode = $page instanceof \WP_Post && ( has_shortcode( $page->post_content, 'anar_recover_cart' ) || has_shortcode( $page->post_content, 'anar_cart_reminders' ) );
     59                $shortcode = (bool) apply_filters( 'anar_toolkit_recovery_page_has_form', $shortcode, $page );
    5960                if ( $shortcode || is_cart() || is_checkout() || ( $this->settings->get( 'recovery_page_id' ) && is_page( (int) $this->settings->get( 'recovery_page_id' ) ) ) ) {
    6061                        if ( ! defined( 'DONOTCACHEPAGE' ) ) {
  • anar-toolkit/trunk/src/Commerce/Settings.php

    r3788438 r3809098  
    4848                        'coupon_amount' => '10',
    4949                        'coupon_minimum' => '0',
     50                        'coupon_maximum' => '0',
    5051                        'coupon_stage' => 2,
    5152                        'coupon_hours' => 48,
    … …  
    6162                        'status_cancelled' => 0,
    6263                        'status_refunded' => 0,
    63                         'provider'      => 'kavenegar',
     64                        'provider'      => '',
    6465                        'admin_phones'  => '',
    6566                        'start_hour'    => 9,
    … …  
    9596        }
    9697
     98        public function provider() {
     99                return $this->get( 'provider' ) ?: \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'];
     100        }
     101
    97102        public function enabled() {
    98103                foreach ( array_merge( array( 'recovery' ), array_keys( $this->defaults()['events'] ) ) as $key ) {
    … …  
    114119                        $output[ $key ] = empty( $input[ $key ] ) ? 0 : 1;
    115120                }
    116                 $output['provider'] = sanitize_key( $input['provider'] ?? 'kavenegar' );
     121                $output['provider'] = sanitize_key( $input['provider'] ?? '' );
    117122                $output['capture_mode'] = 'explicit' === ( $input['capture_mode'] ?? '' ) ? 'explicit' : 'automatic';
    118123                $output['coupon_type'] = 'fixed_cart' === ( $input['coupon_type'] ?? '' ) ? 'fixed_cart' : 'percent';
    119                 foreach ( array( 'coupon_amount', 'coupon_minimum' ) as $key ) {
     124                foreach ( array( 'coupon_amount', 'coupon_minimum', 'coupon_maximum' ) as $key ) {
    120125                        $raw = Identity::latin_digits( (string) ( $input[ $key ] ?? $output[ $key ] ) );
    121126                        $output[ $key ] = (string) round( max( 0, min( 1000000000, (float) $raw ) ), 2 );
  • anar-toolkit/trunk/src/Marketing/Admin.php

    r3791206 r3809098  
    197197                        $this->field( $key, $label, $config[ $key ], 'number' ); }
    198198                if ( 'invoice' === $module ) {
     199                        \Anar\Login\Admin\InvoicePreview::controls( $config );
    199200                        foreach ( array( 'store_name' => __( 'Store display name', 'anar-toolkit' ), 'store_address' => __( 'Store address', 'anar-toolkit' ), 'store_tax_id' => __( 'Store tax / registration ID', 'anar-toolkit' ), 'invoice_prefix' => __( 'Invoice number prefix', 'anar-toolkit' ) ) as $key => $label ) {
    200201                                $this->field( $key, $label, $config[ $key ] ); }
  • anar-toolkit/trunk/src/Marketing/Invoices.php

    r3788438 r3809098  
    5656                header( 'X-Robots-Tag: noindex, nofollow' );
    5757                header( 'Content-Type: text/html; charset=utf-8' );
     58                self::document( $order, $config );
     59                exit;
     60        }
     61
     62        public static function document( $order, $config ) {
    5863                ?>
    59                 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style></head><body><main>
    60                 <header><div><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small>
     64                <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style><style>
     65:root{--invoice-accent:<?php echo esc_html( sanitize_hex_color( $config['invoice_color'] ) ?: '#a72c52' ); ?>}
     66h1,.grand{color:var(--invoice-accent)}header{border-color:var(--invoice-accent)}button{background:var(--invoice-accent)}
     67.invoice-logo{max-width:150px;max-height:75px;object-fit:contain}
     68                <?php
     69                if ( 'simple' === $config['invoice_template'] ) :
     70                        ?>
     71                        body{background:#fff;color:#111}main{border:0;border-radius:0}h1,.grand{color:#111}header{border-color:#111}th{background:#fff;color:#111}<?php endif; ?>
     72</style></head><body><main>
     73                <header><div>
     74                <?php
     75                if ( $config['invoice_logo'] ) :
     76                        ?>
     77                        <img class="invoice-logo" src="<?php echo esc_url( $config['invoice_logo'] ); ?>" alt="<?php echo esc_attr( $config['store_name'] ); ?>"><?php endif; ?><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small>
    6178                <?php
    6279                if ( $config['store_tax_id'] ) :
    6380                        ?>
    6481                        <small><?php esc_html_e( 'Store tax / registration ID:', 'anar-toolkit' ); ?> <?php echo esc_html( $config['store_tax_id'] ); ?></small><?php endif; ?></div><div><h2><?php esc_html_e( 'Order invoice', 'anar-toolkit' ); ?> <span dir="ltr"><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></span></h2><small><?php echo esc_html( $order->get_date_created() ? wc_format_datetime( $order->get_date_created() ) : '' ); ?></small><small><?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?></small></div></header>
    65                 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div><div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div></div>
     82                <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div>
     83                <?php
     84                if ( $config['invoice_show_shipping'] ) :
     85                        ?>
     86                        <div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div><?php endif; ?></div>
    6687                <table><thead><tr><th><?php esc_html_e( 'Item', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Quantity', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Amount', 'anar-toolkit' ); ?></th></tr></thead><tbody>
    6788                <?php
    … …  
    7091                        <tr><td><?php echo esc_html( $item->get_name() ); ?>
    7192                        <?php
    72                         if ( $item->get_product() ) :
     93                        if ( $config['invoice_show_sku'] && $item->get_product() ) :
    7394                                ?>
    7495                        <small><?php echo esc_html( $item->get_product()->get_sku() ); ?></small><?php endif; ?></td><td><?php echo esc_html( $item->get_quantity() ); ?></td><td><?php echo wp_kses_post( wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) ) ); ?></td></tr><?php endforeach; ?></tbody></table><div class="totals">
    … …  
    7697                        foreach ( $order->get_order_item_totals() as $key => $total ) :
    7798                                ?>
    78         <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div><footer><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>
     99        <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div>
    79100                <?php
    80                 exit;
     101                if ( $config['invoice_show_note'] && $order->get_customer_note() ) :
     102                        ?>
     103                <p><?php echo esc_html( $order->get_customer_note() ); ?></p><?php endif; ?><footer><p><?php echo esc_html( $config['invoice_footer'] ); ?></p><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>
     104                <?php
    81105        }
    82106}
  • anar-toolkit/trunk/src/Marketing/Settings.php

    r3791013 r3809098  
    2424                        $rules[ $key ] = array( 'enabled' => 'invoice' === $key ? 0 : 1, 'days' => $days, 'message' => __( '{site}: Hello {name}. {message} {product_url} {coupon_code} {action_url} Stop messages: {unsubscribe_url}', 'anar-toolkit' ), 'template' => '', 'params' => '', 'discount_type' => 'none', 'discount_amount' => '0', 'discount_hours' => 72, 'static_coupon' => '' );
    2525                }
    26                 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );
     26                return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'invoice_template' => 'branded', 'invoice_color' => '#a72c52', 'invoice_logo' => '', 'invoice_footer' => '', 'invoice_show_sku' => 1, 'invoice_show_shipping' => 1, 'invoice_show_note' => 0, 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );
    2727        }
    2828
    … …  
    6969                        $out[ $key ] = sanitize_textarea_field( is_scalar( $raw[ $key ] ?? '' ) ? $raw[ $key ] ?? '' : '' ); }
    7070                $out['provider'] = sanitize_key( $out['provider'] );
     71                $out['invoice_template'] = 'simple' === ( $raw['invoice_template'] ?? '' ) ? 'simple' : 'branded';
     72                $out['invoice_color'] = sanitize_hex_color( $raw['invoice_color'] ?? '' ) ?: '#a72c52';
     73                $out['invoice_logo'] = esc_url_raw( $raw['invoice_logo'] ?? '' );
     74                $out['invoice_footer'] = sanitize_textarea_field( $raw['invoice_footer'] ?? '' );
     75                foreach ( array( 'invoice_show_sku', 'invoice_show_shipping', 'invoice_show_note' ) as $key ) {
     76                        $out[ $key ] = empty( $raw[ $key ] ) ? 0 : 1; }
     77
    7178                $out['game_texts'] = array();
    7279                foreach ( array( 'wheel', 'scratch', 'boxes', 'cards', 'slots', 'treasure', 'daily', 'quiz', 'memory', 'milestone' ) as $type ) {
  • anar-toolkit/trunk/src/Messaging/MessageCatalog.php

    r3795298 r3809098  
    7474                        $name = 'kavenegar' === $provider ? 'token' : ( ( $config['code_parameter'] ?? '' ) ?: 'code' );
    7575                        $text = 'custom' === $provider || ( 'melipayamak' === $provider && empty( $config['template_id'] ) && ! empty( $config['from'] ) );
    76                         return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => $config['template_id'] ?? '', 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );
     76                        return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => 'bale' === $provider ? 'otp' : ( $config['template_id'] ?? '' ), 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );
    7777                }
    7878                if ( 'commerce' === $item['source'] ) {
    … …  
    8080                        $key = 'recovery_request' === $id ? 'recovery_1' : $item['key'];
    8181                        $event = $settings['events'][ $key ];
    82                         $provider = $settings['provider'];
     82                        $provider = ( new CommerceSettings() )->provider();
    8383                } else {
    8484                        $settings = ( new MarketingSettings() )->all();
    8585                        $event = $settings['rules'][ $item['key'] ];
    86                         $provider = $settings['provider'] ?: ( new CommerceSettings() )->get( 'provider' );
     86                        $provider = $settings['provider'] ?: ( new CommerceSettings() )->provider();
    8787                }
    8888                return array_merge( $event, array( 'provider' => $provider, 'mode' => 'custom' === $provider ? 'text' : 'template', 'inherit' => false ) );
  • anar-toolkit/trunk/src/Messaging/MessageSettings.php

    r3795298 r3809098  
    109109                }
    110110                $registry = ProviderRegistry::shared()->all();
     111                if ( 'bale' === ( $value['provider'] ?? '' ) && 'auth' !== $item['source'] ) {
     112                        $errors[] = __( 'Bale supports verification codes only.', 'anar-toolkit' );
     113                }
    111114                if ( ! empty( $value['account_changed'] ) ) {
    112115                        $errors[] = __( 'The provider account changed. Review and save this message again.', 'anar-toolkit' );
  • anar-toolkit/trunk/src/Messaging/ProviderRegistry.php

    r3791641 r3809098  
    8383                $http            = $this->http ? $this->http : new HttpClient();
    8484                $this->providers = array();
    85                 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, CustomHttp::class ) as $class ) {
     85                foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, \Anar\Login\Messaging\Providers\Bale::class, CustomHttp::class ) as $class ) {
    8686                        $provider                            = new $class( $this->settings, $http );
    8787                        $this->providers[ $provider->key() ] = $provider;
  • anar-toolkit/trunk/src/Plugin.php

    r3793903 r3809098  
    5555         */
    5656        public function boot() {
     57                ( new \Anar\Login\Integrations\Elementor() )->register();
    5758                add_action( 'init', array( $this, 'init' ), 0 );
    5859                add_action( 'init', array( $this, 'runtime' ), 1 );
    … …  
    9091                );
    9192                if ( is_admin() ) {
     93                        add_action( 'admin_post_anar_invoice_preview', array( \Anar\Login\Admin\InvoicePreview::class, 'render' ) );
    9294                        $settings = new Settings();
    9395                        $providers = ProviderRegistry::shared();
    … …  
    191193                        }
    192194                }
     195                ( new \Anar\Login\Commerce\CappedDiscount() )->register();
    193196                // Existing personal coupons keep their restrictions even if their creating module is stopped.
    194197                if ( $flags['games'] || get_option( 'anar_game_budget_coupons' ) ) {
  • anar-toolkit/trunk/src/Vendor/WebAuthn/UPSTREAM.txt

    r3791584 r3809098  
    33Commit: 20adb4a240c3997bd8cac7dc4dde38ab0bea0ed1
    44License: MIT; see LICENSE.
    5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn.
     5Modification: namespace isolated as Anar\Login\Vendor\WebAuthn; WordPress direct-access guard added.
    66Loaded only by the optional passkey handler on PHP 8.0 or later.
  • anar-toolkit/trunk/src/Vendor/WebAuthn/WebAuthn.php

    r3791584 r3809098  
    33namespace Anar\Login\Vendor\WebAuthn;
    44use Anar\Login\Vendor\WebAuthn\Binary\ByteBuffer;
     5
     6defined( 'ABSPATH' ) || exit;
     7
    58require_once 'WebAuthnException.php';
    69require_once 'Binary/ByteBuffer.php';
Note: See TracChangeset for help on using the changeset viewer.