Home Forums Plugins Product Importer Deluxe Support upload images

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8402
    bertusnannie
    Participant

    I want to embed images from a asp environment ( http://www.shopcast.nl/image.asp?shop=clc&format=large&location=&isbn=%5BSKU%5D)
    but this doesn’t work (I get this error: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\wamp\www\wordpress\wp-content\plugins\wp-e-commerce\wpsc-admin\includes\display-items-functions.php on line 984)

    Is there a way to get this to work?

    #8411
    bertusnannie
    Participant

    I found this cUrl function and it seems to work, only it should somehow be implemented in the plugin:

    #8412
    bertusnannie
    Participant

    function savePhoto($remoteImage, $isbn) {
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $remoteImage);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
    $fileContents = curl_exec($ch);
    curl_close($ch);
    $newImg = imagecreatefromstring($fileContents);
    return imagejpeg($newImg, "./wp-content/uploads/wpsc/product_images/{$isbn}.jpg",100);
    }
    savePhoto('http://www.shopcast.nl/image.asp?shop=clc&format=large&location=&isbn=9789061269632', 9789061269632);

    #8573
    Michael Visser
    Keymaster

    Hi bertus, thanks for raising this. I’ll give this some further thought and look at adding it as an alternative image import method where the default fails/or an option tells the Plugin to use this other method. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Support’ is closed to new topics and replies.