Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display Remote Product Images - contribution help


RocksIT

Recommended Posts

Posted

How do i make the popup images work from remote server?

 

I installed the contrib it works ecept for the enlarge/pop-up images button...

 

cause it still looks for this format /popup_image.php?pID=1ℑ=0

 

I'm using CRELoaded version 6.x btw

 

any ideas/quick fixes?

 

Thanks in advance!

 

Rusty

Posted
I'm using CRELoaded version 6.x btw

Seek support at the CRELoaded forum not here.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

  • 8 months later...
Posted

Hi

 

Iwonder if any of you can help?

 

I have installed the 'get remote image' contribution on my osc store but it wont work; i suspect it is to do with the instruction i do not understand. in the instruction file it says:

 

// Uncomment (and edit) this portion of the URL if you don't want the file type in your product URL

//$url .= ".jpg";

 

my edited file is:

 

<?php

header("Content-type: image/jpeg");

// http://moteng.com/ProductImages/BAC15790.jpg

 

// ID from the URL

$id = $_GET['id'];

 

// Location for images (http://companyserver.com/images/products/)

$url = "http://moteng.com/ProductImages/";

 

// Insert image ID

$url .= $id;

 

// Uncomment (and edit) this portion of the URL if you don't want the file type in your product URL

//$url .= ".jpg";

 

$ch = curl_init();

curl_setopt($ch, CURLOPT_TIMEOUT, 4);

curl_setopt($ch, CURLOPT_URL, $url);

curl_exec($ch);

 

Is it something to do with either having to or not having to use the file extention when entering the fileroot/url into the 'product URL' field in the 'new product' form in admin'? Also, if i wanted to store my downloaded images in a directer in my own store/root what would be the best way to go about this?

 

I am very new to this and any help is always apreciated.

 

Tanks in anticipation

 

 

stumpy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...