Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - SportMart (SKU# FLEX-00019)

TOPIC: Display images located on an external server

Display images located on an external server 9 years 5 months ago #11218

Hi,

Here's a tricky one...

I'm importing thousands of products (with images) from an xml. As you understand importing and updating 10000 images/day is simply not feasible in terms of server load, traffic load, etc...

My idea is simple. I will import the image url to a custom field and I need you to tell me if and how sport mart can, instead of looking into product images stored in the server to display both the thumbnails and the large product images, go and get the link from that custom field.

Thank you in advance,

Dennis
The topic has been locked.

Display images located on an external server 9 years 5 months ago #11241

Hi,

You are looking for a very complex solution.

Virtuemart Component doesn't support external Image displaying for products. Using custom field for external image hosting is the "trick". It is not native solution.

Currently within Virtuemart and within our template SportMart. The
$product->images[0]->displayMediaThumb()
$product->images[0]->displayMediaFull()
are called to display images on;

- VM Frontpage
- VM Category page
- VM Product Details Page
- VM Shopping cart page
- VM Featured Product Module
- Flexible Shopping Cart Module.

- an other pages/modules where you see product&category pictures.

all in all, almost everywhere. To replace the displayMedia calling with "external custom field"; all of those related PHP files need to be re-coded. And i don't think it will even work though because there are other things get involved as well.

For example, you need to store the "Large" picture and "thumbnails" separately in the external source, this means, you need to create 2 custom fields for each picture. (one for large picture, one for thumbnail).

I can say; It is a very complex process and i will call it a "whole project". It would cost you a lot if you want one of us to take care this modification for you.

Your best bet is to upload your pictures to your server. 10k is not big number. If you have a VPS hosting, this load is "nothing". Most VPS server comes with almost unlimited bandwidth and couple TBs disk-spaces. Even junk shared hosting (~$4/month hosting) won't give you any problem nowadays. But minimum VPS or CloudHosting is highly recommended.

Pictures are static and cacheable files and won't cause any traffic load. (as long as you pick the right hosting)

Virtuemart support bulk image uploading.
- upload images through FTP then through VM Backend >> Media Files, click "Sync Pictures" and Virtuemart will sync all those pictures and generate thumbnails for each product pictures. Then you need to match those pictures with products properly (or use an CSV for that).

Regards.
Support
Last Edit: 9 years 5 months ago by Support.
The topic has been locked.

Display images located on an external server 9 years 5 months ago #11257

Thank you guys for taking the time to look into this!

Dennis
The topic has been locked.

Display images located on an external server 9 years 5 months ago #11272

Sure, you're welcome

topic is closed.

regards.
Support
The topic has been locked.
Time to create page: 0.263 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo