<!-- WhatsApp Butonu Başlangıç -->
<a id="whatsapp-button" 
   href="#" 
   target="_blank" 
   aria-label="WhatsApp"
   style="position: fixed; bottom: 20px; right: 20px; z-index: 9999; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center;">
  <img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" 
       alt="WhatsApp" 
       style="width: 30px; height: 30px;">
</a>

<script>
  // Telefon numarasını buraya yaz (ülke kodu ile birlikte, örn: 905xxxxxxxxx)
  var phoneNumber = "905xxxxxxxxx";

  // Varsayılan mesaj (isteğe bağlı)
  var baseMessage = "Merhaba, bu ürün hakkında bilgi almak istiyorum: ";

  // Butonu güncelle
  document.addEventListener("DOMContentLoaded", function() {
    var currentUrl = window.location.href;
    var message = encodeURIComponent(baseMessage + currentUrl);
    var whatsappLink = "https://wa.me/" + phoneNumber + "?text=" + message;
    
    document.getElementById("whatsapp-button").href = whatsappLink;
  });
</script>
<!-- WhatsApp Butonu Bitiş -->

📎 Nasıl Eklenir?

  1. IdeaSoft panelinde Tema > HTML / CSS Düzenleme kısmına gir.
  2. footer.tpl dosyasına veya </body> tag’inden hemen önce yapıştır.
  3. phoneNumber değişkenine kendi WhatsApp numaranı gir (başında ülke kodu ile).