Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Problems (/forumdisplay.php?f=68)
-   -   Site hanging on loading images (/showthread.php?t=4199)

ayorofrance March 25th, 2011 03:51 AM

Site hanging on loading images
 
Hi Eric,

I think one of my merchants on Google Affiliate network has a problem with their images...

And it appears that my site gets stuck on loading these...

I have sent you two urls in a PM that demonstrates this...

It is shop=30977.

Cheers,

Anders

Eric March 25th, 2011 08:49 AM

Hi Anders

This is because the image cannot be accessed via cURL script. They have some type of permissions on their images which prevents us from downloading them and storing them on your server. That is what cURL is used for.

If you want to continue to use that merchant's products, you might need to write some logic in your views that goes something like this:

PHP Code:

<?php if ($product->merchant_id == MERCHANT_ID_HERE) { ?>
    [product.image direct='1' tag='1']
<?php } else { ?>
    [product.image tag='1']
<?php ?>

Eric

ayorofrance March 25th, 2011 11:50 AM

Hi Eric,

That works well...

Is there any way to tell which merchants have these types of permission problems?

Thanks!!

Eric March 25th, 2011 12:00 PM

Quote:

Originally Posted by ayorofrance (Post 19276)
Is there any way to tell which merchants have these types of permission problems?

Not really...


All times are GMT -5. The time now is 01:13 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.