Mathias** Posted October 28, 2010 Share Posted October 28, 2010 Bonjour , sur un module d'export CSV (Shopricer) les urls des images exportés ne sont pas systématiquement les images par défaut (c'est aléatoire). Parfois c'est l'URL de la seconde image qui est exporté.De quoi cela peut-il venir ? Voici le code. if($data['id_image'] > 0 or !empty($data['id_image'])) { $image = 'http://'.$_SERVER['HTTP_HOST'].constant('__PS_BASE_URI__').'img/p/'.$data['id_product'].'-'.$data['id_image'].'-large.jpg'; } else { $image = ''; } MerciMat Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now