حصرياً: أقوى سكريبت لحماية متاجر YouCan من الطلبات الوهمية ورفع نسبة التأكيد (مجاناً)
سكريبت الطلبات الوهمية
إذا كنت تعمل في مجال التجارة الإلكترونية بنظام الدفع عند الاستلام (Cash On Delivery)، فأنت بالتأكيد تعلم أن التحدي الأكبر ليس في جلب المبيعات، بل في “نسبة التأكيد (Confirmation Rate)”.
الكثير من أصحاب المتاجر على منصة يوكان (YouCan) يعانون يومياً من مشكلة “الطلبات الوهمية”؛ حيث تجد زبوناً واحداً يدخل عشرات الطلبات الخاطئة، أو زواراً يدخلون أرقام هواتف غير مكتملة، مما يستنزف وقت فريق الـ Call Center الخاص بك، ويضيع ميزانية إعلاناتك هباءً بدون أي أرباح حقيقية.
اليوم، نضع بين يديك الحل النهائي والجذري لهذه المشكلة! نقدم لك السكريبت الذكي لحماية المتاجر وتأكيد الأرقام، وهو أداة برمجية احترافية مدفوعة، نوفرها لك اليوم بشكل مجاني تماماً.
🌟 ما الذي سيقدمه هذا السكريبت لمتجرك؟
لقد تم تصميم هذا الكود ليعمل كـ “جدار حماية” صامت داخل صفحة الدفع الخاصة بمتجرك، ويقدم المميزات الجبارة التالية:
1. 🛡️ نظام حظر الطلبات المتكررة (مضاد الطلبات الوهمية)
يمنع السكريبت أي زبون من إرسال طلبات متكررة بشكل هستيري. فبمجرد أن يقوم الزبون بإرسال طلبية ناجحة، يقوم السكريبت بتجميد زر الشراء لديه لمدة 24 ساعة مع إظهار عداد تنازلي أمامه يقول: “انتظر 24 ساعة”. هذا يحافظ على مستودع بياناتك نقياً وصحيحاً 100%.
2. 📱 التحقق اللحظي من أرقام الهواتف المغربية
وداعاً للأرقام الخاطئة! يمتلك السكريبت خوارزمية ذكية تتحقق في نفس اللحظة من صحة الرقم الذي يكتبه الزبون. يتأكد النظام من أن الرقم يطابق الصيغة المغربية الصحيحة (يبدأ بـ 05، 06، 07 أو +212).
3. ✅ تجربة مستخدم (UI) احترافية تزيد الثقة
- في حال أخطأ الزبون وكتب رقماً ناقصاً: سيتحول إطار الهاتف للون الأحمر مع علامة ❌، وستظهر له رسالة تنبيه واضحة أسفل الرقم: “⚠️ المرجو إدخال رقم هاتف صحيح”.
- بمجرد تصحيح الرقم: يختفي الخطأ وتظهر علامة الصح الخضراء ✅، مما يعطي العميل شعوراً بالثقة والاحترافية.
4. 🔒 التجميد التلقائي لزر الطلب
لا يمكن لأي مشترٍ أن يضغط على زر “اضغط هنا للطلب” أو ينهي عملية الشراء ما لم يكن رقم هاتفه صحيحاً بالكامل. يقوم السكريبت بشل حركة الزر فوراً كإجراء وقائي.
5. 🤖 حماية ضد برمجيات الروبوت (Anti-Bot)
يحاكي السكريبت سلوك المشتري البشري ليتأكد من أن من يقوم بالطلب هو إنسان حقيقي وليس “روبوت” مبرمج لإغراق متجرك بالطلبات الوهمية والتلاعب بالبيكسل (Pixel) الخاص بك.
🛠️ كيفية تركيب السكريبت في متجر YouCan الخاص بك
عملية التركيب سهلة جداً ولا تتطلب أي خبرة برمجية، فقط اتبع هذه الخطوات البسيطة:
<script>(function(){const t=864e5,s="lastOrderTime",w="212123456789";function c(){const e=localStorage.getItem(s);return e&&Date.now()-parseInt(e)<t}function r(){const e=localStorage.getItem(s);return e?Math.max(0,t-(Date.now()-parseInt(e))):0}function f(e){const t=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4);return`${t}س ${n}د`}function b(){const e=document.createElement("button");return e.className="button whatsapp-button",e.style.cssText="background-color:#25D366;color:white;border:none;margin-left:10px;padding:12px 20px;border-radius:5px;font-size:14px;cursor:pointer;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis",e.innerHTML="اطلب من الواتساب",e.onclick=()=>{const e=document.querySelector(".single-title")||document.querySelector("h1")||{textContent:"المنتج"};window.open(`https://wa.me/${w}?text=${encodeURIComponent(`مرحبا، أريد طلب: ${e.textContent}`)}`,"_blank")},e}function d(e){document.querySelectorAll(".single-submit").forEach(t=>{t.disabled=!0,t.style.opacity="0.6",t.style.flex="1",t.style.whiteSpace="nowrap",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.textContent=`انتظر ${f(e)}`,t.parentNode.style.display="flex",t.parentNode.style.gap="10px",t.parentNode.querySelector(".whatsapp-button")||t.parentNode.appendChild(b())})}function u(){document.querySelectorAll(".single-submit").forEach(e=>{e.disabled=!1,e.style.opacity="1",e.style.flex="",e.style.whiteSpace="",e.style.overflow="",e.style.textOverflow="",e.textContent="اضغط هنا للطلب",e.parentNode.style.display="",e.parentNode.style.gap=""}),document.querySelectorAll(".whatsapp-button").forEach(e=>e.remove())}function h(e){if(c())return e.preventDefault(),e.stopPropagation(),alert(`انتظر ${f(r())}`),!1}function i(){c()&&(r()>0?d(r()):(u(),localStorage.removeItem(s)))}window.location.href.includes("thank")||window.location.href.includes("success")||document.querySelector(".thank")||document.querySelector(".success")?(localStorage.setItem(s,Date.now()),d(t)):c()&&d(r()),document.addEventListener("click",e=>{if(e.target.classList.contains("single-submit")&&c())return e.preventDefault(),e.stopPropagation(),alert(`انتظر ${f(r())}`),!1},!0),setInterval(i,6e4)})();function validateMoroccanPhone(e){return/^(?:(?:\+|00)212|0)[5678]\d{8}$/.test(e.replace(/[\s.-]/g,""))}function setupPhoneValidation(){document.querySelectorAll('input[type="tel"],input[name*="phone"],input[name*="Phone"],input[name*="هاتف"],input[placeholder*="هاتف"],input[placeholder*="phone"],input[placeholder*="Phone"],input[id*="phone"],input[class*="phone"]').forEach(e=>{e.addEventListener("blur",function(){const t=validateMoroccanPhone(this.value);let n=document.getElementById("phone-validation-icon")||this.parentElement.querySelector('#phone-validation-icon, [id*="validation-icon"]'),r=this.parentElement.querySelector(".phone-error-msg");n||(n=document.createElement("span"),n.id="phone-validation-icon",n.style.cssText="position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: bold; z-index: 10;",this.parentElement.style.position="relative",this.parentElement.appendChild(n)),this.value&&!t?(this.setCustomValidity("رقم الهاتف غير صحيح"),n.className="invalid",n.innerHTML="❌",n.style.color="#dc3545",this.title="الرقم خاطأ",this.style.borderColor="#dc3545",r||(r=document.createElement("div"),r.className="phone-error-msg",r.style.cssText="color: #dc3545; font-size: 13px; margin-top: 5px; font-weight: bold; padding-right: 5px;",r.innerText="⚠️ المرجو إدخال رقم هاتف صحيح",this.parentElement.appendChild(r))):this.value&&t?(this.setCustomValidity(""),n.className="valid",n.innerHTML="✅",n.style.color="#28a745",this.style.borderColor="#28a745",this.title="",r&&r.remove()):(this.setCustomValidity(""),n.innerHTML="",n.className="",this.style.borderColor="",this.title="",r&&r.remove()),toggleOrderButtons()}),e.addEventListener("input",toggleOrderButtons)})}function toggleOrderButtons(){let e=!1;document.querySelectorAll('input[type="tel"], input[name*="phone"], input[placeholder*="هاتف"]').forEach(t=>{t.value&&!validateMoroccanPhone(t.value)&&(e=!0)});const l=localStorage.getItem("lastOrderTime"),o=l&&(Date.now()-parseInt(l)<864e5);document.querySelectorAll('button[type="submit"], .btn-order, .single-submit').forEach(t=>{o?t.disabled=!0:(t.disabled=e,t.style.opacity=e?"0.5":"1")})}function simulateHumanBehavior(){document.addEventListener("mousemove",function(){window.lastMouseMove=Date.now()}),document.addEventListener("keydown",function(){window.lastKeyPress=Date.now()}),document.querySelectorAll("form").forEach(e=>{e.addEventListener("submit",function(){setTimeout(()=>{const t=document.createElement("input");t.type="hidden",t.name="user_interaction",t.value=btoa(Date.now().toString()),e.appendChild(t)},500*Math.random())})})}document.addEventListener("DOMContentLoaded",function(){setupPhoneValidation(),simulateHumanBehavior()});</script>- قم بتسجيل الدخول إلى لوحة تحكم متجرك في منصة YouCan.
- من القائمة الجانبية، اذهب إلى قسم “الإعدادات” (Settings).
- انزل للأسفل واضغط على خيار “أكواد مخصصة” (Custom Codes).
- قم بفتح ملف السكريبت الذي حملته من موقعنا، وانسخ كل الكود الموجود بداخله.
- قم بلصق الكود في المربع الخاص بـ Header (رأس الصفحة).
- أخيراً، اضغط على زر حفظ (Save).
مبروك عليك! متجرك الآن محمي وتعمل عليه أحدث خوارزميات فلترة الزبائن. يمكنك تجربة عمل طلبية بنفسك لترى كيف يعمل السكريبت.



