Changeset 3842473
- Timestamp:
- 12/03/2026 01:02:01 PM (less than one hour ago)
- Location:
- advance-fake-order-protector
- Files:
-
- 34 added
- 9 edited
-
assets/screenshot-10.png (added)
-
assets/screenshot-11.png (added)
-
assets/screenshot-9.png (added)
-
tags/1.12.0 (added)
-
tags/1.12.0/LICENSE (added)
-
tags/1.12.0/README.md (added)
-
tags/1.12.0/advance-fake-order-protector.php (added)
-
tags/1.12.0/assets (added)
-
tags/1.12.0/assets/css (added)
-
tags/1.12.0/assets/css/afop-admin.css (added)
-
tags/1.12.0/assets/css/afop-frontend.css (added)
-
tags/1.12.0/assets/css/afop-icons.css (added)
-
tags/1.12.0/assets/css/afop-stock-alerts.css (added)
-
tags/1.12.0/assets/js (added)
-
tags/1.12.0/assets/js/afop-admin.js (added)
-
tags/1.12.0/assets/js/afop-blocks.js (added)
-
tags/1.12.0/assets/js/afop-frontend.js (added)
-
tags/1.12.0/assets/js/afop-journey.js (added)
-
tags/1.12.0/assets/js/afop-stock-alerts.js (added)
-
tags/1.12.0/includes (added)
-
tags/1.12.0/includes/class-afop-activator.php (added)
-
tags/1.12.0/includes/class-afop-admin.php (added)
-
tags/1.12.0/includes/class-afop-blocklist.php (added)
-
tags/1.12.0/includes/class-afop-blocks.php (added)
-
tags/1.12.0/includes/class-afop-courier-checker.php (added)
-
tags/1.12.0/includes/class-afop-incomplete-orders.php (added)
-
tags/1.12.0/includes/class-afop-journey.php (added)
-
tags/1.12.0/includes/class-afop-privacy.php (added)
-
tags/1.12.0/includes/class-afop-repeat-order.php (added)
-
tags/1.12.0/includes/class-afop-stock-alerts.php (added)
-
tags/1.12.0/includes/class-afop-validator.php (added)
-
tags/1.12.0/readme.txt (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/advance-fake-order-protector.php (modified) (5 diffs)
-
trunk/assets/css/afop-admin.css (modified) (1 diff)
-
trunk/assets/css/afop-icons.css (modified) (1 diff)
-
trunk/assets/js/afop-admin.js (modified) (1 diff)
-
trunk/assets/js/afop-journey.js (added)
-
trunk/includes/class-afop-activator.php (modified) (1 diff)
-
trunk/includes/class-afop-admin.php (modified) (5 diffs)
-
trunk/includes/class-afop-journey.php (added)
-
trunk/includes/class-afop-privacy.php (modified) (1 diff)
-
trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advance-fake-order-protector/trunk/README.md
r3834741 r3842473 1 1 # Sarkar IT Fake Order Protector 2 2 3 WooCommerce classic and block checkout protection for Bangladeshi stores, developed by [Sarkar IT](https://www.sarkarit.com/). Version 1.1 1.0; GPLv2 or later.3 WooCommerce classic and block checkout protection for Bangladeshi stores, developed by [Sarkar IT](https://www.sarkarit.com/). Version 1.12.0; GPLv2 or later. 4 4 5 5 See [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 4 4 * Plugin URI: https://www.sarkarit.com/fake-order-protector/ 5 5 * 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.1 1.06 * Version: 1.12.0 7 7 * Author: Sarkar IT 8 8 * Author URI: https://www.sarkarit.com/ … … 24 24 25 25 // Define Plugin Constants 26 define('AFOP_VERSION', '1.1 1.0');26 define('AFOP_VERSION', '1.12.0'); 27 27 define('AFOP_PLUGIN_FILE', __FILE__); 28 28 define('AFOP_PLUGIN_DIR', plugin_dir_path(__FILE__)); … … 52 52 public $blocks; 53 53 public $stock_alerts; 54 public $journey; 54 55 55 56 /** … … 86 87 require_once AFOP_PLUGIN_DIR . 'includes/class-afop-blocks.php'; 87 88 require_once AFOP_PLUGIN_DIR . 'includes/class-afop-stock-alerts.php'; 89 require_once AFOP_PLUGIN_DIR . 'includes/class-afop-journey.php'; 88 90 89 91 // Initialize modules … … 96 98 $this->blocks = new AFOP_Blocks(); 97 99 $this->stock_alerts = new AFOP_Stock_Alerts(); 100 $this->journey = new AFOP_Journey(); 98 101 } 99 102 -
advance-fake-order-protector/trunk/assets/css/afop-admin.css
r3834741 r3842473 1396 1396 @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; } } 1397 1397 @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; } 1465 a.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 41 41 .fa-sliders::before{content:"◆"} 42 42 .fa-spinner::before{content:"◌"} 43 .fa-stopwatch::before{content:"⏱"} 43 44 .fa-store::before{content:"◆"} 44 45 .fa-trash-can::before{content:"⌫"} -
advance-fake-order-protector/trunk/assets/js/afop-admin.js
r3834741 r3842473 80 80 } 81 81 } 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); 82 85 83 86 self.showToast(res.data.message || 'Updated successfully!'); -
advance-fake-order-protector/trunk/includes/class-afop-activator.php
r3756581 r3842473 158 158 'afop_enable_incomplete_capture'=> 'no', 159 159 'afop_incomplete_retention_days'=> 30, 160 'afop_enable_journey_timer' => 'yes', 160 161 161 162 'afop_courier_provider' => 'bdcourier', // 'bdcourier', 'steadfast', 'pathao' -
advance-fake-order-protector/trunk/includes/class-afop-admin.php
r3834741 r3842473 425 425 $wa_url = 'https://wa.me/' . esc_attr($wa_num) . '?text=' . $wa_msg; 426 426 } 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 } 427 443 ?> 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" 472 462 data-value="<?php echo esc_attr($normalized_phone); ?>" 473 463 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> 477 467 </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" 482 480 data-value="<?php echo esc_attr($client_ip); ?>" 483 481 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> 487 485 </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> 488 501 </div> 489 502 </div> … … 596 609 <?php endif; ?> 597 610 </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; ?> 598 628 599 629 <?php if (!$has_any_api): ?> … … 856 886 'afop_repeat_whatsapp_msg' => 'textarea', 857 887 'afop_enable_incomplete_capture'=> 'yes_no', 888 'afop_enable_journey_timer' => 'yes_no', 858 889 'afop_incomplete_retention_days'=> 'int', 859 890 'afop_courier_consent' => 'yes_no', … … 872 903 $tab = isset($_POST['afop_settings_tab']) ? sanitize_key(wp_unslash($_POST['afop_settings_tab'])) : ''; 873 904 $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'), 875 906 'validation' => array('afop_enable_bd_validation', 'afop_strict_fake_patterns', 'afop_invalid_phone_title', 'afop_invalid_phone_msg'), 876 907 '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'), … … 1019 1050 গ্রাহক চেকআউটে সঠিক ফোন নম্বর দেওয়ার সাথে সাথে অসম্পূর্ণ চেকআউটের তথ্য স্বয়ংক্রিয়ভাবে সেভ করুন। 1020 1051 </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> 1021 1062 </td> 1022 1063 </tr> -
advance-fake-order-protector/trunk/includes/class-afop-privacy.php
r3834741 r3842473 14 14 if (!function_exists('wp_add_privacy_policy_content')) { return; } 15 15 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>' 17 17 )); 18 18 } -
advance-fake-order-protector/trunk/readme.txt
r3834741 r3842473 6 6 Requires PHP: 7.4 7 7 Requires Plugins: woocommerce 8 Stable tag: 1.1 1.08 Stable tag: 1.12.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 25 25 * View optional delivery history from configured courier providers after enabling external requests. 26 26 * 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. 27 29 * 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. 28 30 … … 109 111 == Privacy and data retention == 110 112 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). 113 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). 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. 112 114 113 115 Cleanup 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. … … 124 126 7. Daily low-stock admin reminder with current quantities, product edit links and a dismiss-for-today option. 125 127 8. Stock Alerts settings with an on/off switch, configurable quantity threshold and notification email. 128 9. 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. 129 10. Order details box with the landing-to-thank-you time, traffic source and landing page. 130 11. General settings with the Order Journey Timer on/off switch. 126 131 127 132 == Frequently Asked Questions == … … 139 144 No. Staff can click Call and WhatsApp links in the recovery dashboard. 140 145 146 = How does the Order Journey Timer work? = 147 A 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 141 149 = How are proxy IPs handled? = 142 150 The 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. 143 151 144 152 == 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. 145 160 146 161 = 1.11.0 = … … 218 233 == Upgrade Notice == 219 234 235 = 1.12.0 = 236 New 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 220 238 = 1.11.0 = 221 239 Incomplete 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.