[Skip to main content](#vessel-content)

#   Product Images Location by URL - Feature Request

##

- **[solia](/forum/user/10273-solia "View solia's Profile")**
- [![solia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar10273.jpg)](/forum/user/10273-solia "View solia's Profile") Topic Author
- [ Offline](/forum/user/10273-solia)

Less More

- Posts: 30
- Thank you received: 2
-
-

11 years 11 months ago [\#181783](#181783) by [solia](/forum/user/10273-solia "View solia's Profile")  *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#181783 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")* was created by *[solia](/forum/user/10273-solia "View solia's Profile")*

Dear friends:
Thanks for your great work and excellent support. I have a feature request.
Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer.
Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+)
Please consider allowing for product images to be referenced by URL. That would be very useful.
Appreciate the consideration,
Nadine at Solia.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#181801](#181801) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#181801 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

To integrate that in HikaShop it will require to change all the system, because currently we are generating thumbnails, and to generate the thumbnails we need to have the image stored in local.
A way could to to not generate the thumbnails but only the external image and apply css properties on it, not sure that it's the best solution but it could be possible.

For now, what can be done is to create custom produt fields, then fill the full image path of the image (on the external website). Finally edit the view "product / show_block_img" and replace the current image display function by an image tag like that: Code:

&lt;img src="&lt;?php echo $this-&gt;row-&gt;CUSTOMFIELD_NAME; ?&gt;" /&gt;

The following user(s) said Thank You: [solia](/forum/user/10273-solia "View solia's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 4 days ago [\#253971](#253971) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#253971 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Any plan of implementing this function in the future ?

So all images could be hosted on another server, and all I had to do was to paste the image url path in order for it to display on the product page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 3 days ago [\#253974](#253974) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#253974 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

There is still no plan for such feature implementation in a short term.
Like Nicolas wrote, HikaShop need to generate the thumbnails and to do so, it needs to access to the image.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 3 days ago [\#254071](#254071) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254071 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

OK tnx for reply.

Is this something that could be done with a simple plugin ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 2 days ago [\#254073](#254073) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254073 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

You don't need a plugin. Just create a custom product field, and on the listing and the product page view files, instead of the code used to display the thumbnails, you could add such code: Code:

&lt;img src="&lt;?php echo $this-&gt;row-&gt;XX; ?&gt;"/&gt;

where XX would be the column name of your custom field where you would enter the image URL for each product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 2 days ago -  10 years 2 days ago [\#254119](#254119) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254119 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

OK tnx for reply.

1. whould this code be the same for the main image of the product ?
Or should i write something different for the cutsom field for what would be the main image.

2. What product page view file would you recommend to place the code in ?

3. Can I use both image systems, any suggestion on what the code for that will be ?
I.e: I have some products using the standard system (images from the hikashop uppload folder - like I use now) and som for external image hosting.

Last edit: 10 years 2 days ago by [river](/forum/user/9591-river "View river's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 2 days ago [\#254122](#254122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254122 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

1. For the main product page, you would change $this-&gt;row by $this-&gt;element in the code example

2. You would put it in the show_block_img view file.

3. Sure. You could do it like that:
&lt;?php if(!empty($this-&gt;row-&gt;XX)){ ?&gt;
&lt;img src="&lt;?php echo $this-&gt;row-&gt;XX; ?&gt;"/&gt;
&lt;?php }else{ ?&gt;
... standard code to display product images ....
&lt;?php } ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 15 hours ago [\#254329](#254329) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254329 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Tnx for all advice, this sounds good.

> You don't need a plugin. Just create a custom product field, and on the listing and the product page view files, instead of the code used to display the thumbnails, you could add such code:

1. What kind of "Field type" should I use for the custom field ? ..to paste the image url path into ...
2. Which "Table" should I use for the custom field ?

Tnx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 5 hours ago [\#254333](#254333) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254333 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

A custom field of the table "product" and of the type "text".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 11 months ago [\#254433](#254433) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254433 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Tnx for reply
So I have decided to keep the main image for the product using the standard Hikashop image system.

But I want to be able to use extenal images for the thumbnails.

I have created a custom field type "text" in the table "product".

So this is my code for the thumbanils I need to implement:

&lt;?php if(!empty($this-&gt;row-&gt;001)){ ?&gt;
&lt;img src="&lt;?php echo $this-&gt;row-&gt;bilde01; ?&gt;"/&gt;
&lt;?php }else{ ?&gt;

Could you please advice me where in the "show_block_img" file I should place this code ?Tnx for reply
So I have decided to keep the main image for the product using the standard Hikashop image system.

But I want to be able to use extenal images for the thumbnails.

I have created a custom field type "text" in the table "product".

So this is my code for the thumbanils I need to implement:
Code:

&lt;?php if(!empty($this-&gt;row-&gt;001)){ ?&gt; &lt;img src="&lt;?php echo $this-&gt;row-&gt;bilde01; ?&gt;"/&gt; &lt;?php }else{ ?&gt;

Could you please advice me where in the "show_block_img" file I should place this code ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

9 years 11 months ago [\#254436](#254436) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254436 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

Then, you want to change that code which displays the thumbnails of the product: Code:

$img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if(@$img-&gt;success) { $id = null; $classname='hikashop_child_image'; if($firstThunb) { $id = 'hikashop_first_thumbnail'.$variant_name; $firstThunb = false; $classname.=' hikashop_child_image_active'; } $attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img-&gt;url.'\', '.$img-&gt;width.', '.$img-&gt;height.', \''.str_replace("'","\'",@$image-&gt;file_description).'\', \''.str_replace("'","\'",@$image-&gt;file_name).'\');"'; $html = '&lt;img class="'.$classname.'" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; if(empty($variant_name)) { echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, $id, $attr, array('gallery' =&gt; 'hikashop_main_image')); } else { echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, $id, $attr, array('gallery' =&gt; 'hikashop_main_image_VARIANT_NAME')); } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 11 months ago [\#254488](#254488) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254488 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

OK tnx for reply. So I've tried placing the code like this
Code:

&lt;?php if(!empty($this-&gt;row-&gt;bilde01)){ ?&gt; &lt;img src="&lt;?php echo $this-&gt;row-&gt;bilde01; ?&gt;"/&gt; &lt;?php }else{ ?&gt; $img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if(@$img-&gt;success) { $id = null; $classname='hikashop_child_image'; if($firstThunb) { $id = 'hikashop_first_thumbnail'.$variant_name; $firstThunb = false; $classname.=' hikashop_child_image_active'; } $attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img-&gt;url.'\', '.$img-&gt;width.', '.$img-&gt;height.', \''.str_replace("'","\'",@$image-&gt;file_description).'\', \''.str_replace("'","\'",@$image-&gt;file_name).'\');"'; $html = '&lt;img class="'.$classname.'" title="'.$this-&gt;escape(@$image-&gt;file_description).'" alt="'.$this-&gt;escape(@$image-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; if(empty($variant_name)) { echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, $id, $attr, array('gallery' =&gt; 'hikashop_main_image')); } else { echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, $id, $attr, array('gallery' =&gt; 'hikashop_main_image_VARIANT_NAME'));

But then product site gets messed up. Could you please be more specific ?
My PHP levels are very limited, even tought Im learning ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#254489](#254489) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254489 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

messed up how ?
Please be a lot more specific.

The code you paste have some problem.
1 - on the third line, there is a closing php tag but with some php code just after.
2 - it looks uncompleted for me because there are some missing brackets at the end (3 to be exact).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 11 months ago [\#254631](#254631) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254631 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

OK tnx for reply

So when I use the above code I get the standard joomla page saying:

The requested page does not exist.

"0 syntax error, unexpected '&lt;'"

Anyway... so this is the first paragraph of the code of above.
Code:

&lt;?php if(!empty($this-&gt;row-&gt;bilde01)){ ?&gt; &lt;img src="&lt;?php echo $this-&gt;row-&gt;bilde01; ?&gt;"/&gt; &lt;?php }else{ ?&gt; $img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if(@$img-&gt;success) { $id = null; $classname='hikashop_child_image'; if($firstThunb) { $id = 'hikashop_first_thumbnail'.$variant_name; $firstThunb = false; $classname.=' hikashop_child_image_active';

Could you please advice me of what would be the correct way to write line 3 ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

9 years 11 months ago [\#254633](#254633) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Images Location by URL - Feature Request](/forum/2-general-talk-about-hikashop/873350-product-images-location-by-url-feature-request#254633 "Dear friends: Thanks for your great work and excellent support. I have a feature request. Our site and servers get clogged with lots of images. Of course, we developers pay for the space and backups take longer. Increasingly, we are storing images which you use our our sites on third party sites which are much less expensive or free. (Flickr, Google+) Please consider allowing for product images to be referenced by URL. That would be very useful. Appreciate the consideration, Nadine at Solia.")*

Hi,

Instead of :
&lt;?php }else{ ?&gt;
you should have:
&lt;?php }else{
because you don't want to stop the PHP code since you have PHP code just after that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3MzM1MC1wcm9kdWN0LWltYWdlcy1sb2NhdGlvbi1ieS11cmwtZmVhdHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.109 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
