• 06-04-2018, 13:25:14
    #1
    Arkadaşlar merhaba, opencart siteme resimleri yüklemek için api arıyorum. İstediğim şöyle bir şey, https://cloudinary.com/ ben burayı kullanıyorum, yüklediğim fotoğraflar buraya yüklencek ve sitede buradan gösterilecek.

    Bu verdiğim site olmak zorunda değil, hazır da yapılmış olan bir modül varsa da olur.

    iyi çalışmalar.
  • 06-04-2018, 14:23:38
    #2
    config.php içinde cdn imaj yolunu tanımlayın
    define('HTTP_IMAGE', 'https://cloudinary.com/');

    catalog/model/tool/image.php içinde
    return $this->config->get('config_ssl') . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;

    return $this->config->get('config_url') . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;

    admin/model/tool/image.php içinde
    return HTTPS_CATALOG . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;

    return HTTP_CATALOG . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;

    catalog/controller/payment/skrill.php, catalog/controller/total/voucher.php, catalog/model/checkout/order.php, catalog/model/openbay/ebay_product.php, catalog/model/tool/image.php dosyalarında
    $this->config->get('config_url') . 'image/'
    satırını aşağıdaki HTTP_IMAGE olarak değiştirin


    $this->config->get('config_ssl') . 'image/'

    satırını aşağıdaki HTTPS_IMAGE olarak değiştirin

  • 08-04-2018, 18:59:51
    #3
    KilitX adlı üyeden alıntı: mesajı görüntüle
    config.php içinde cdn imaj yolunu tanımlayın
    define('HTTP_IMAGE', 'https://cloudinary.com/');
    catalog/model/tool/image.php içinde
    return $this->config->get('config_ssl') . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
    return $this->config->get('config_url') . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
    admin/model/tool/image.php içinde
    return HTTPS_CATALOG . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
    return HTTP_CATALOG . 'image/' . $new_image;
    satırını aşağıdaki ile değiştirin
    return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;
    catalog/controller/payment/skrill.php, catalog/controller/total/voucher.php, catalog/model/checkout/order.php, catalog/model/openbay/ebay_product.php, catalog/model/tool/image.php dosyalarında
    $this->config->get('config_url') . 'image/'
    satırını aşağıdaki HTTP_IMAGE olarak değiştirin


    $this->config->get('config_ssl') . 'image/'

    satırını aşağıdaki HTTPS_IMAGE olarak değiştirin

    Teiekkür ederim yalnız api bilgilerimi nereye yazacağım?
  • 08-04-2018, 19:05:21
    #4
    klasörü public ayarlayıp catalog ve admin config içinde define('HTTP_IMAGE', 'https://cloudinary.com/sizinpublicklasor'); olarak tanımlamanız yeterli. apilik bir durum yok