Plugin Directory

Changeset 3842473


Ignore:
Timestamp:
12/03/2026 01:02:01 PM (less than one hour ago)
Author:
sarkarit
Message:

Release 1.12.0: compact 3-column Security Actions (phone + block, IP + block, order count + time) and the Order Journey Timer showing landing-to-thank-you time with traffic source. New screenshots 9-11.

Location:
advance-fake-order-protector
Files:
34 added
9 edited

Legend:

Unmodified
Added
Removed
  • advance-fake-order-protector/trunk/README.md

    r3834741 r3842473  
    11# Sarkar IT Fake Order Protector
    22
    3 WooCommerce classic and block checkout protection for Bangladeshi stores, developed by [Sarkar IT](https://www.sarkarit.com/). Version 1.11.0; GPLv2 or later.
     3WooCommerce classic and block checkout protection for Bangladeshi stores, developed by [Sarkar IT](https://www.sarkarit.com/). Version 1.12.0; GPLv2 or later.
    44
    55See [readme.txt](readme.txt) for installation, service disclosures, privacy, compatibility and changes. All assets are local; no build step is required.
  • advance-fake-order-protector/trunk/advance-fake-order-protector.php

    r3834741 r3842473  
    44 * Plugin URI: https://www.sarkarit.com/fake-order-protector/
    55 * Description: Advanced WooCommerce fake order prevention, Bangladeshi phone number validation, IP/Phone 1-click blocklist, repeat order protection with WhatsApp redirection, real-time incomplete orders capture, and multi-courier delivery ratio analytics.
    6  * Version: 1.11.0
     6 * Version: 1.12.0
    77 * Author: Sarkar IT
    88 * Author URI: https://www.sarkarit.com/
    … …  
    2424
    2525// Define Plugin Constants
    26 define('AFOP_VERSION', '1.11.0');
     26define('AFOP_VERSION', '1.12.0');
    2727define('AFOP_PLUGIN_FILE', __FILE__);
    2828define('AFOP_PLUGIN_DIR', plugin_dir_path(__FILE__));
    … …  
    5252    public $blocks;
    5353    public $stock_alerts;
     54    public $journey;
    5455
    5556    /**
    … …  
    8687        require_once AFOP_PLUGIN_DIR . 'includes/class-afop-blocks.php';
    8788        require_once AFOP_PLUGIN_DIR . 'includes/class-afop-stock-alerts.php';
     89        require_once AFOP_PLUGIN_DIR . 'includes/class-afop-journey.php';
    8890
    8991        // Initialize modules
    … …  
    9698        $this->blocks            = new AFOP_Blocks();
    9799        $this->stock_alerts      = new AFOP_Stock_Alerts();
     100        $this->journey           = new AFOP_Journey();
    98101    }
    99102
  • advance-fake-order-protector/trunk/assets/css/afop-admin.css

    r3834741 r3842473  
    13961396@media (max-width: 782px) { .afop-admin-wrap { margin: 18px 10px 24px 0; } .afop-admin-wrap .afop-header-banner { padding: 22px; } .afop-admin-wrap .afop-header-banner h1 { font-size: 22px; } .afop-admin-wrap .afop-settings-section, .afop-admin-wrap .afop-card-panel { padding: 20px; } .afop-admin-wrap .form-table th { width: auto; padding: 18px 0 7px; } .afop-admin-wrap .form-table td { padding: 0 0 18px; } .afop-admin-wrap .form-table tr + tr > td { border-top: 0; } .afop-admin-wrap .nav-tab { padding: 9px 12px; } .afop-stock-summary > div { padding: 0 14px; } .afop-stock-summary strong { font-size: 22px; } }
    13971397@media (max-width: 480px) { .afop-stock-summary { grid-template-columns: 1fr; gap: 16px; padding: 20px; } .afop-stock-summary > div { padding: 0; } .afop-stock-summary > div + div { border-left: 0; border-top: 1px solid var(--afop-line); padding-top: 16px; } .afop-stock-summary small { display: inline; } }
     1398
     1399/* ==========================================================
     1400   1.12.0 - Compact 3-column Security Actions
     1401   Col 1: Phone + Block | Col 2: IP + Block | Col 3: Orders + Landing → Thank-you time
     1402   ========================================================== */
     1403.wp-list-table th.column-afop_security_actions,
     1404.wp-list-table td.column-afop_security_actions {
     1405    width: 318px !important;
     1406    min-width: 300px !important;
     1407}
     1408
     1409.afop-order-actions-wrap.afop-sa-grid {
     1410    display: grid;
     1411    grid-template-columns: 1.15fr 1.1fr 0.95fr;
     1412    gap: 4px;
     1413    min-width: 296px;
     1414    max-width: 318px;
     1415    flex-direction: initial;
     1416}
     1417
     1418.afop-sa-col {
     1419    display: flex;
     1420    flex-direction: column;
     1421    gap: 3px;
     1422    min-width: 0;
     1423    padding: 3px;
     1424    border: 1px solid #e2e8f0;
     1425    border-radius: 6px;
     1426    background: #f8fafc;
     1427    box-sizing: border-box;
     1428}
     1429
     1430.afop-sa-col.is-blocked {
     1431    background: #fef2f2;
     1432    border-color: #fecaca;
     1433}
     1434
     1435.afop-sa-line {
     1436    display: flex;
     1437    align-items: center;
     1438    gap: 2px;
     1439    min-width: 0;
     1440    height: 18px;
     1441}
     1442
     1443.afop-sa-value {
     1444    flex: 1;
     1445    min-width: 0;
     1446    display: inline-flex;
     1447    align-items: center;
     1448    gap: 3px;
     1449    font-size: 10.5px;
     1450    font-weight: 700;
     1451    line-height: 18px;
     1452    color: #0f172a;
     1453    text-decoration: none !important;
     1454    white-space: nowrap;
     1455}
     1456
     1457.afop-sa-value span {
     1458    overflow: hidden;
     1459    text-overflow: ellipsis;
     1460}
     1461
     1462.afop-sa-value i { font-size: 9.5px; color: #2563eb; flex-shrink: 0; }
     1463.afop-sa-col-ip .afop-sa-value { font-size: 10px; color: #334155; cursor: default; }
     1464.afop-sa-col-ip .afop-sa-value i { color: #0284c7; }
     1465a.afop-sa-value:hover { color: #1d4ed8; }
     1466.afop-sa-value.afop-sa-empty,
     1467.afop-sa-value.afop-sa-empty i { color: #94a3b8; }
     1468
     1469.afop-sa-wa {
     1470    flex: 0 0 16px;
     1471    width: 16px;
     1472    height: 16px;
     1473    display: inline-flex;
     1474    align-items: center;
     1475    justify-content: center;
     1476    border-radius: 4px;
     1477    background: #25D366;
     1478    color: #fff !important;
     1479    font-size: 9px;
     1480    text-decoration: none !important;
     1481}
     1482.afop-sa-wa:hover { background: #1eb956; }
     1483
     1484.afop-btn-box.afop-sa-btn,
     1485.afop-customer-orders-btn.afop-sa-orders,
     1486.afop-sa-time {
     1487    width: 100%;
     1488    height: 20px;
     1489    padding: 0 4px;
     1490    font-size: 10px;
     1491    line-height: 18px;
     1492    justify-content: center;
     1493    gap: 3px;
     1494    box-sizing: border-box;
     1495}
     1496
     1497.afop-customer-orders-btn.afop-sa-orders span { overflow: hidden; text-overflow: ellipsis; }
     1498
     1499.afop-sa-time {
     1500    display: inline-flex;
     1501    align-items: center;
     1502    font-weight: 800;
     1503    border-radius: 4px;
     1504    border: 1px solid #bfdbfe;
     1505    background: #eff6ff;
     1506    color: #1d4ed8;
     1507    white-space: nowrap;
     1508    cursor: help;
     1509    font-variant-numeric: tabular-nums;
     1510}
     1511
     1512.afop-sa-time i { font-size: 10px; }
     1513.afop-sa-time.speed-fast { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
     1514.afop-sa-time.speed-normal { background: #ecfdf5; border-color: #86efac; color: #15803d; }
     1515.afop-sa-time.speed-slow { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
     1516.afop-sa-time.is-empty { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; font-weight: 600; }
     1517
     1518.afop-sa-src {
     1519    font-style: normal;
     1520    font-size: 8px;
     1521    font-weight: 800;
     1522    line-height: 12px;
     1523    padding: 0 3px;
     1524    border-radius: 3px;
     1525    background: #64748b;
     1526    color: #fff;
     1527}
     1528.afop-sa-src.src-facebook { background: #1877f2; }
     1529.afop-sa-src.src-instagram { background: #d6249f; }
     1530.afop-sa-src.src-google { background: #ea4335; }
     1531.afop-sa-src.src-tiktok { background: #111827; }
     1532
     1533/* Order details meta box: journey row */
     1534.afop-meta-journey .afop-sa-time { display: inline-flex; width: auto; padding: 0 8px; margin-left: 4px; }
     1535.afop-meta-journey-sub { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #475569; }
     1536.afop-meta-journey-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  • advance-fake-order-protector/trunk/assets/css/afop-icons.css

    r3754116 r3842473  
    4141.fa-sliders::before{content:"◆"}
    4242.fa-spinner::before{content:"◌"}
     43.fa-stopwatch::before{content:"⏱"}
    4344.fa-store::before{content:"◆"}
    4445.fa-trash-can::before{content:"⌫"}
  • advance-fake-order-protector/trunk/assets/js/afop-admin.js

    r3834741 r3842473  
    8080                                }
    8181                            }
     82                            // Compact 3-column orders table buttons use short labels.
     83                            $matchingBtns.filter('[data-short]').find('.afop-btn-text').text(isBlocked ? 'Blocked' : 'Block');
     84                            $matchingBtns.filter('[data-short]').closest('.afop-sa-col').toggleClass('is-blocked', !!isBlocked);
    8285
    8386                            self.showToast(res.data.message || 'Updated successfully!');
  • advance-fake-order-protector/trunk/includes/class-afop-activator.php

    r3756581 r3842473  
    158158            'afop_enable_incomplete_capture'=> 'no',
    159159            'afop_incomplete_retention_days'=> 30,
     160            'afop_enable_journey_timer'     => 'yes',
    160161
    161162            'afop_courier_provider'         => 'bdcourier', // 'bdcourier', 'steadfast', 'pathao'
  • advance-fake-order-protector/trunk/includes/class-afop-admin.php

    r3834741 r3842473  
    425425            $wa_url = 'https://wa.me/' . esc_attr($wa_num) . '?text=' . $wa_msg;
    426426        }
     427        $journey = class_exists('AFOP_Journey') ? AFOP_Journey::get_order_journey($order) : null;
     428        if ($journey) {
     429            /* translators: %s: elapsed time such as 2m 15s. */
     430            $journey_title = sprintf(__('Landing page → Thank you page: %s', 'advance-fake-order-protector'), $journey['label']);
     431            if ($journey['source'] !== '') {
     432                $journey_title .= "\n" . __('Source:', 'advance-fake-order-protector') . ' ' . AFOP_Journey::source_label($journey['source']);
     433            }
     434            if ($journey['landing'] !== '') {
     435                $journey_title .= "\n" . __('Landing:', 'advance-fake-order-protector') . ' ' . $journey['landing'];
     436            }
     437            if (!$journey['exact']) {
     438                $journey_title .= "\n" . __('Measured until the order was placed (thank-you page not reported).', 'advance-fake-order-protector');
     439            }
     440        } else {
     441            $journey_title = __('No journey time for this order (manual order, or placed before the timer was enabled).', 'advance-fake-order-protector');
     442        }
    427443        ?>
    428         <div class="afop-order-actions-wrap" data-order-id="<?php echo esc_attr($order->get_id()); ?>">
    429             <!-- Line 1: Customer Identifiers (Phone, Order IP & WhatsApp) -->
    430             <div class="afop-actions-row afop-actions-row-info">
    431                 <?php if (!empty($normalized_phone)): ?>
    432                     <a href="tel:<?php echo esc_attr($normalized_phone); ?>" class="afop-phone-pill-link" title="<?php esc_attr_e('Call Customer', 'advance-fake-order-protector'); ?>">
    433                         <i class="fa-solid fa-phone"></i> <span><?php echo esc_html($normalized_phone); ?></span>
    434                     </a>
    435                 <?php else: ?>
    436                     <span class="afop-phone-pill-link afop-empty-pill" title="<?php esc_attr_e('No billing phone available', 'advance-fake-order-protector'); ?>">
    437                         <i class="fa-solid fa-phone-slash"></i> <span><?php esc_html_e('No Phone', 'advance-fake-order-protector'); ?></span>
    438                     </span>
    439                 <?php endif; ?>
    440 
    441                 <?php if (!empty($client_ip)): ?>
    442                     <span class="afop-ip-pill-link" title="<?php echo esc_attr('Order IP: ' . $client_ip); ?>">
    443                         <i class="fa-solid fa-globe"></i> <span><?php echo esc_html($client_ip); ?></span>
    444                     </span>
    445                 <?php else: ?>
    446                     <span class="afop-ip-pill-link afop-empty-pill" title="<?php esc_attr_e('No IP recorded', 'advance-fake-order-protector'); ?>">
    447                         <i class="fa-solid fa-globe"></i> <span><?php esc_html_e('No IP', 'advance-fake-order-protector'); ?></span>
    448                     </span>
    449                 <?php endif; ?>
    450 
    451                 <?php if (!empty($wa_url)): ?>
    452                     <a href="<?php echo esc_url($wa_url); ?>" target="_blank" class="afop-wa-pill-link" title="<?php esc_attr_e('Chat on WhatsApp', 'advance-fake-order-protector'); ?>">
    453                         <i class="fa-brands fa-whatsapp"></i>
    454                     </a>
    455                 <?php endif; ?>
    456             </div>
    457 
    458             <!-- Line 2: Actions & History (Order History, Block Phone & Block IP) -->
    459             <div class="afop-actions-row afop-actions-row-buttons">
    460                 <button type="button"
    461                         class="afop-customer-orders-btn <?php echo $order_count > 1 ? 'has-multiple' : ''; ?>"
    462                         data-phone="<?php echo esc_attr($normalized_phone); ?>"
    463                         data-name="<?php echo esc_attr($customer_name); ?>"
    464                         title="<?php /* translators: Numeric placeholders are counts or percentages; string placeholders identify the customer or blocklist item. */ echo esc_attr(sprintf(__('%d store order(s) by this customer. Click to view history.', 'advance-fake-order-protector'), $order_count)); ?>"
    465                         <?php echo empty($normalized_phone) ? 'disabled style="opacity:0.5;cursor:not-allowed;"' : ''; ?>>
    466                     <i class="fa-solid fa-boxes-packing"></i> <span><?php echo esc_html($order_count . ($order_count === 1 ? ' Order' : ' Orders')); ?></span>
    467                 </button>
    468 
    469                 <button type="button"
    470                         class="afop-btn-box afop-toggle-block-btn <?php echo $phone_blocked ? 'is-blocked' : 'is-safe'; ?>"
    471                         data-type="phone"
     444        <div class="afop-order-actions-wrap afop-sa-grid" data-order-id="<?php echo esc_attr($order->get_id()); ?>">
     445            <!-- Column 1: Phone + Block Phone -->
     446            <div class="afop-sa-col afop-sa-col-phone <?php echo $phone_blocked ? 'is-blocked' : ''; ?>">
     447                <div class="afop-sa-line">
     448                    <?php if (!empty($normalized_phone)): ?>
     449                        <a href="tel:<?php echo esc_attr($normalized_phone); ?>" class="afop-sa-value" title="<?php esc_attr_e('Call Customer', 'advance-fake-order-protector'); ?>">
     450                            <i class="fa-solid fa-phone"></i><span><?php echo esc_html($normalized_phone); ?></span>
     451                        </a>
     452                        <?php if (!empty($wa_url)): ?>
     453                            <a href="<?php echo esc_url($wa_url); ?>" target="_blank" class="afop-sa-wa" title="<?php esc_attr_e('Chat on WhatsApp', 'advance-fake-order-protector'); ?>"><i class="fa-brands fa-whatsapp"></i></a>
     454                        <?php endif; ?>
     455                    <?php else: ?>
     456                        <span class="afop-sa-value afop-sa-empty"><i class="fa-solid fa-phone-slash"></i><span><?php esc_html_e('No Phone', 'advance-fake-order-protector'); ?></span></span>
     457                    <?php endif; ?>
     458                </div>
     459                <button type="button"
     460                        class="afop-btn-box afop-sa-btn afop-toggle-block-btn <?php echo $phone_blocked ? 'is-blocked' : 'is-safe'; ?>"
     461                        data-type="phone" data-short="1"
    472462                        data-value="<?php echo esc_attr($normalized_phone); ?>"
    473463                        title="<?php echo $phone_blocked ? esc_attr__('Click to unblock Phone', 'advance-fake-order-protector') : esc_attr__('Click to block Phone', 'advance-fake-order-protector'); ?>"
    474                         <?php echo empty($normalized_phone) ? 'disabled style="opacity:0.5;cursor:not-allowed;"' : ''; ?>>
    475                     <span class="afop-btn-icon"><i class="fa-solid <?php echo $phone_blocked ? 'fa-ban' : 'fa-phone-slash'; ?>"></i></span>
    476                     <span class="afop-btn-text"><?php echo $phone_blocked ? esc_html__('Blocked', 'advance-fake-order-protector') : esc_html__('Block Phone', 'advance-fake-order-protector'); ?></span>
     464                        <?php disabled(empty($normalized_phone)); ?>>
     465                    <span class="afop-btn-icon"><i class="fa-solid fa-ban"></i></span>
     466                    <span class="afop-btn-text"><?php echo $phone_blocked ? esc_html__('Blocked', 'advance-fake-order-protector') : esc_html__('Block', 'advance-fake-order-protector'); ?></span>
    477467                </button>
    478 
    479                 <button type="button"
    480                         class="afop-btn-box afop-toggle-block-btn <?php echo $ip_blocked ? 'is-blocked' : 'is-safe'; ?>"
    481                         data-type="ip"
     468            </div>
     469
     470            <!-- Column 2: IP + Block IP -->
     471            <div class="afop-sa-col afop-sa-col-ip <?php echo $ip_blocked ? 'is-blocked' : ''; ?>">
     472                <div class="afop-sa-line">
     473                    <span class="afop-sa-value <?php echo empty($client_ip) ? 'afop-sa-empty' : ''; ?>" title="<?php echo esc_attr($client_ip ? 'Order IP: ' . $client_ip : __('No IP recorded', 'advance-fake-order-protector')); ?>">
     474                        <i class="fa-solid fa-globe"></i><span><?php echo $client_ip ? esc_html($client_ip) : esc_html__('No IP', 'advance-fake-order-protector'); ?></span>
     475                    </span>
     476                </div>
     477                <button type="button"
     478                        class="afop-btn-box afop-sa-btn afop-toggle-block-btn <?php echo $ip_blocked ? 'is-blocked' : 'is-safe'; ?>"
     479                        data-type="ip" data-short="1"
    482480                        data-value="<?php echo esc_attr($client_ip); ?>"
    483481                        title="<?php echo esc_attr(($client_ip ? 'IP: ' . $client_ip . ' - ' : '') . ($ip_blocked ? __('Click to unblock IP', 'advance-fake-order-protector') : __('Click to block IP', 'advance-fake-order-protector'))); ?>"
    484                         <?php echo empty($client_ip) ? 'disabled style="opacity:0.5;cursor:not-allowed;"' : ''; ?>>
    485                     <span class="afop-btn-icon"><i class="fa-solid <?php echo $ip_blocked ? 'fa-ban' : 'fa-globe'; ?>"></i></span>
    486                     <span class="afop-btn-text"><?php echo $ip_blocked ? esc_html__('IP Blocked', 'advance-fake-order-protector') : esc_html__('Block IP', 'advance-fake-order-protector'); ?></span>
     482                        <?php disabled(empty($client_ip)); ?>>
     483                    <span class="afop-btn-icon"><i class="fa-solid fa-ban"></i></span>
     484                    <span class="afop-btn-text"><?php echo $ip_blocked ? esc_html__('Blocked', 'advance-fake-order-protector') : esc_html__('Block', 'advance-fake-order-protector'); ?></span>
    487485                </button>
     486            </div>
     487
     488            <!-- Column 3: Same-customer order count + Landing → Thank-you time -->
     489            <div class="afop-sa-col afop-sa-col-stats">
     490                <button type="button"
     491                        class="afop-customer-orders-btn afop-sa-orders <?php echo $order_count > 1 ? 'has-multiple' : ''; ?>"
     492                        data-phone="<?php echo esc_attr($normalized_phone); ?>"
     493                        data-name="<?php echo esc_attr($customer_name); ?>"
     494                        title="<?php /* translators: %d: number of orders. */ echo esc_attr(sprintf(__('%d store order(s) by this customer. Click to view history.', 'advance-fake-order-protector'), $order_count)); ?>"
     495                        <?php disabled(empty($normalized_phone)); ?>>
     496                    <i class="fa-solid fa-boxes-packing"></i><span><?php echo esc_html($order_count . ($order_count === 1 ? ' Order' : ' Orders')); ?></span>
     497                </button>
     498                <span class="afop-sa-time <?php echo $journey ? 'speed-' . esc_attr($journey['speed']) : 'is-empty'; ?>" title="<?php echo esc_attr($journey_title); ?>">
     499                    <i class="fa-solid fa-stopwatch"></i><span><?php echo $journey ? esc_html($journey['label']) : '—'; ?></span><?php if ($journey && $journey['source'] !== '' && $journey['source'] !== 'direct'): ?><em class="afop-sa-src src-<?php echo esc_attr($journey['source']); ?>"><?php echo esc_html(strtoupper(substr($journey['source'], 0, 2))); ?></em><?php endif; ?>
     500                </span>
    488501            </div>
    489502        </div>
    … …  
    596609                <?php endif; ?>
    597610            </div>
     611
     612            <?php $journey = class_exists('AFOP_Journey') ? AFOP_Journey::get_order_journey($order) : null; ?>
     613            <div class="afop-meta-row afop-meta-journey">
     614                <span class="afop-meta-label"><i class="fa-solid fa-stopwatch"></i> <strong><?php esc_html_e('Landing → Thank you:', 'advance-fake-order-protector'); ?></strong>
     615                    <?php if ($journey): ?>
     616                        <span class="afop-sa-time speed-<?php echo esc_attr($journey['speed']); ?>"><span><?php echo esc_html($journey['label']); ?></span></span>
     617                    <?php else: ?>
     618                        <span class="afop-sa-empty">—</span>
     619                    <?php endif; ?>
     620                </span>
     621            </div>
     622            <?php if ($journey && ($journey['source'] !== '' || $journey['landing'] !== '')): ?>
     623                <div class="afop-meta-row afop-meta-journey-sub">
     624                    <?php if ($journey['source'] !== ''): ?><span><strong><?php esc_html_e('Source:', 'advance-fake-order-protector'); ?></strong> <?php echo esc_html(AFOP_Journey::source_label($journey['source'])); ?></span><?php endif; ?>
     625                    <?php if ($journey['landing'] !== ''): ?><span title="<?php echo esc_attr($journey['landing']); ?>"><strong><?php esc_html_e('Landing:', 'advance-fake-order-protector'); ?></strong> <?php echo esc_html($journey['landing']); ?></span><?php endif; ?>
     626                </div>
     627            <?php endif; ?>
    598628
    599629            <?php if (!$has_any_api): ?>
    … …  
    856886            'afop_repeat_whatsapp_msg'      => 'textarea',
    857887            'afop_enable_incomplete_capture'=> 'yes_no',
     888            'afop_enable_journey_timer'     => 'yes_no',
    858889            'afop_incomplete_retention_days'=> 'int',
    859890            'afop_courier_consent' => 'yes_no',
    … …  
    872903        $tab = isset($_POST['afop_settings_tab']) ? sanitize_key(wp_unslash($_POST['afop_settings_tab'])) : '';
    873904        $tabs = array(
    874             'general' => array('afop_whatsapp_number', 'afop_whatsapp_message', 'afop_whatsapp_btn_text', 'afop_enable_blocklist', 'afop_blocked_title', 'afop_blocked_msg', 'afop_enable_incomplete_capture', 'afop_incomplete_retention_days'),
     905            'general' => array('afop_whatsapp_number', 'afop_whatsapp_message', 'afop_whatsapp_btn_text', 'afop_enable_blocklist', 'afop_blocked_title', 'afop_blocked_msg', 'afop_enable_incomplete_capture', 'afop_incomplete_retention_days', 'afop_enable_journey_timer'),
    875906            'validation' => array('afop_enable_bd_validation', 'afop_strict_fake_patterns', 'afop_invalid_phone_title', 'afop_invalid_phone_msg'),
    876907            'repeat' => array('afop_enable_repeat_check', 'afop_repeat_time_limit', 'afop_repeat_order_title', 'afop_repeat_order_msg', 'afop_repeat_whatsapp_btn', 'afop_repeat_whatsapp_msg'),
    … …  
    10191050                                        গ্রাহক চেকআউটে সঠিক ফোন নম্বর দেওয়ার সাথে সাথে অসম্পূর্ণ চেকআউটের তথ্য স্বয়ংক্রিয়ভাবে সেভ করুন।
    10201051                                    </label>
     1052                                </td>
     1053                            </tr>
     1054                            <tr>
     1055                                <th scope="row">Order Journey Timer</th>
     1056                                <td>
     1057                                    <label>
     1058                                        <input type="checkbox" name="afop_enable_journey_timer" value="yes" <?php checked(get_option('afop_enable_journey_timer', 'yes'), 'yes'); ?>>
     1059                                        গ্রাহক ল্যান্ডিং পেজ (Facebook Ads, CartFlows বা যেকোনো পেজ) খোলার পর থেকে Thank You পেজে যেতে কত সময় নিয়েছে তা অর্ডার লিস্টে দেখান।
     1060                                    </label>
     1061                                    <p class="description">Uses one first-party cookie (<code>afop_journey</code>, up to 12 hours). Fake or bot orders are often placed within a few seconds.</p>
    10211062                                </td>
    10221063                            </tr>
  • advance-fake-order-protector/trunk/includes/class-afop-privacy.php

    r3834741 r3842473  
    1414        if (!function_exists('wp_add_privacy_policy_content')) { return; }
    1515        wp_add_privacy_policy_content('Sarkar IT Fake Order Protector', wp_kses_post(
    16             '<p>Suggested text: We check phone numbers and IP addresses against our local order protection lists. We keep a separate order protection history for up to two days. If checkout recovery is enabled, we automatically save your name, phone number, email, address, IP address and cart as soon as a valid phone number is present in the checkout form, before an order is placed, so that we can contact you about completing your purchase. Checkout recovery records are removed after our configured retention period (default 30 days). We retain blocklist entries until manually removed for fraud prevention. If enabled by the store, administrators can send your phone number to configured courier services (BDCourier, Steadfast or Pathao) to retrieve delivery history. Courier responses are cached locally for the configured duration. Opening a courier report can query every configured provider; cached responses are reused until expired or explicitly refreshed. Local credential checks send no data. Providers receive the store server IP as part of the connection. Include the enabled providers and their policies in your privacy notice. WhatsApp links open an external service only when clicked. Adapt this text to the services you enable and include their terms and privacy policies.</p>'
     16            '<p>Suggested text: We check phone numbers and IP addresses against our local order protection lists. We keep a separate order protection history for up to two days. If checkout recovery is enabled, we automatically save your name, phone number, email, address, IP address and cart as soon as a valid phone number is present in the checkout form, before an order is placed, so that we can contact you about completing your purchase. Checkout recovery records are removed after our configured retention period (default 30 days). We retain blocklist entries until manually removed for fraud prevention. If enabled by the store, administrators can send your phone number to configured courier services (BDCourier, Steadfast or Pathao) to retrieve delivery history. Courier responses are cached locally for the configured duration. Opening a courier report can query every configured provider; cached responses are reused until expired or explicitly refreshed. Local credential checks send no data. Providers receive the store server IP as part of the connection. Include the enabled providers and their policies in your privacy notice. If the order journey timer is enabled, a first-party cookie (afop_journey, up to 12 hours) records when you first opened the store, the first page you visited and the traffic source (for example Facebook Ads), and the time until your order is saved with the order. WhatsApp links open an external service only when clicked. Adapt this text to the services you enable and include their terms and privacy policies.</p>'
    1717        ));
    1818    }
  • advance-fake-order-protector/trunk/readme.txt

    r3834741 r3842473  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 1.11.0
     8Stable tag: 1.12.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2525* View optional delivery history from configured courier providers after enabling external requests.
    2626* Display product and security information in WooCommerce order screens with HPOS support.
     27* Compact 3-column Security Actions in the orders list: phone with one-click block, IP with one-click block, and the same customer's order count.
     28* Order Journey Timer: see how long each customer took from opening the landing page (CartFlows, Facebook Ads or any page) to reaching the thank-you page, with the traffic source. Orders placed within a minute are highlighted in red.
    2729* Optionally receive low-stock emails and daily dismissible admin reminders, with a paginated inventory list and product edit links. Stock Alerts are off by default and only include published products or variations managing their own stock.
    2830
    … …  
    109111== Privacy and data retention ==
    110112
    111 Local blocklists retain phone or IP, reason, administrative username and timestamps until manually removed. Separate order protection history stores order ID, phone, IP, product IDs, total and creation time, and is deleted after two days. Optional incomplete checkout records store name, phone, email, address, city, IP, cart contents, total, status and timestamps. They are saved only when the merchant enables capture (off by default), automatically once a valid phone number is present in the checkout form and before an order is placed. No customer checkbox is shown, so merchants must disclose this in their privacy policy. Leads are retained for the configured 1-365 days (default 30), including converted and recovered records. Courier cache records expire after the configured 1-168 hours (default 24).
     113Local blocklists retain phone or IP, reason, administrative username and timestamps until manually removed. Separate order protection history stores order ID, phone, IP, product IDs, total and creation time, and is deleted after two days. Optional incomplete checkout records store name, phone, email, address, city, IP, cart contents, total, status and timestamps. They are saved only when the merchant enables capture (off by default), automatically once a valid phone number is present in the checkout form and before an order is placed. No customer checkbox is shown, so merchants must disclose this in their privacy policy. Leads are retained for the configured 1-365 days (default 30), including converted and recovered records. Courier cache records expire after the configured 1-168 hours (default 24). The optional Order Journey Timer (on by default, can be turned off in General settings) sets one first-party cookie, afop_journey, for up to 12 hours with the visit start time, the first page path and the traffic source; it is removed after the thank-you page. The elapsed time, first page path and source are saved as order meta and kept with the order. No data is sent to external services.
    112114
    113115Cleanup runs daily through WordPress cron, so removal depends on cron running. Deactivation preserves records and stops cleanup. Uninstall preserves merchant records; remove records through the plugin before uninstalling if no longer needed. WordPress personal data export and erase tools include recovery records matching an email address. Phone/IP-only security records require manual review and removal because an email cannot establish ownership. Adapt the suggested WordPress Privacy Settings text to your actual practices and enabled services.
    … …  
    1241267. Daily low-stock admin reminder with current quantities, product edit links and a dismiss-for-today option.
    1251278. Stock Alerts settings with an on/off switch, configurable quantity threshold and notification email.
     1289. Orders list with the compact 3-column Security Actions: phone and block, IP and block, the customer's order count and the landing-to-thank-you time.
     12910. Order details box with the landing-to-thank-you time, traffic source and landing page.
     13011. General settings with the Order Journey Timer on/off switch.
    126131
    127132== Frequently Asked Questions ==
    … …  
    139144No. Staff can click Call and WhatsApp links in the recovery dashboard.
    140145
     146= How does the Order Journey Timer work? =
     147A small script on the storefront remembers when the visitor first opened any page of the store, for example a CartFlows landing page opened from a Facebook ad. When the WooCommerce or CartFlows thank-you page opens, the total time is saved with the order and shown in the orders list. Times under one minute are shown in red because fake and bot orders are often placed within seconds. Orders created before 1.12.0, or by staff in the admin area, show a dash.
     148
    141149= How are proxy IPs handled? =
    142150The default is server REMOTE_ADDR. Configure a trusted proxy on your server or use the afop_client_ip filter with trusted proxy validation. Never trust arbitrary forwarded headers.
    143151
    144152== Changelog ==
     153
     154= 1.12.0 =
     155* Redesign Security Actions in the orders list as three compact columns: phone and Block, IP and Block, and order count with time.
     156* Add the Order Journey Timer: time from opening the landing page (CartFlows, Facebook Ads or any storefront page) to the thank-you page, with the traffic source and first page.
     157* Support WooCommerce order-received pages and CartFlows thank-you steps, with classic checkout and the Checkout Block.
     158* Show the journey time, source and landing page in the order details box.
     159* Add an on/off setting for the timer and update the suggested privacy policy text.
    145160
    146161= 1.11.0 =
    … …  
    218233== Upgrade Notice ==
    219234
     235= 1.12.0 =
     236New compact 3-column Security Actions and the Order Journey Timer. The timer uses a first-party cookie; describe it in your privacy policy or turn it off in General settings.
     237
    220238= 1.11.0 =
    221239Incomplete capture no longer asks customers for consent at checkout. If you use it, update your privacy policy or turn capture off before upgrading.
Note: See TracChangeset for help on using the changeset viewer.