2

My client's site is using Magento version ce-1.9.2.0.

Now he wants the product's(and probably category's also in future) images to be fetched and displayed by external URL instead of traditional way of storing images in site directories.

Can anybody suggest any way/plugin for achieving this along with resize image working ?

Resized image can be stored on site folders.

3
  • Do you mean you would like to use a content delivery network or external content storage site for storing images?
    – paj
    Oct 6, 2015 at 8:34
  • Yes, could be an option, but most probably the images from would be from client's external server so he doesn't have to move images from that server to the site's server.
    – Vicky Dev
    Oct 6, 2015 at 9:06
  • This answer might be useful for you stackoverflow.com/questions/11293465/…
    – paj
    Oct 6, 2015 at 9:38

1 Answer 1

0

Here is some hints for you:

  1. Create the product attribute of type text, say: external_url_base
  2. Similarly repeat for small, thumbnail & gallery images

Basically, it's like mimic'ing the Magento's default media attributes but with type: text

  1. Develop some public methods to get all types of images
  2. And use those methods in frontend templates
    • catalog/product/list.phtml
    • catalog/product/view.phtml
    • catalog/product/view/media.phtml
    • ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.