• 19-05-2021, 23:37:32
    #1
    Merhabalar, sitem de (sepetim) kısımına girdiğim zaman sayfa hata vermekte. Sorun aşağıda ki kodlardan kaynaklı, dosya yolu; public_html/application/controllers/Cart.php


    Aşağıda ki kodun doğrusunu bilen var ise çok sevinirim İyi akşamlar.


    Hata linki; https://keypazar.net/sepetim



    } else {
    if (strstr($c['product']->product_name, "Fifa 21") == true || strstr($c['product']->product_name, "BluTV") == true ||

    $stock2 = "yok";

    } else {
  • 19-05-2021, 23:39:56
    #2
    if (strstr($c['product']->product_name, "Fifa 21") == true || strstr($c['product']->product_name, "BluTV") == true || $stock2 = "yok";

    || veya yı temsil eder. bu şekilde kullanımı yok.
  • 20-05-2021, 00:32:13
    #3
    Syntax hatası var hocam kodunda, logic’in ne tam bilemiyorum ama gördüğüm kadarıyla doğrusu;

    Alıntı
    } else {
    if (strstr($c['product']->product_name, "Fifa 21") == true || strstr($c['product']->product_name, "BluTV") == true){

    $stock2 = "yok";

    } else {
  • 20-05-2021, 00:42:16
    #4
    Yanlış görmüşüm.. @Batuhn; hatayı söylemiş