Image importing issue CSV file

  • Posts: 4
  • Thank you received: 1
9 years 5 months ago #205826

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
-- Error-message(debug-mod must be tuned on) -- : Message
The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support "jpg?sw=449&sh=449&sm=fit&sfrm=tif" images. Please make sure that you're using a valid image extension and contact your hosting company or system administrator in order to make sure that the GD library on your web server supports the image extension: jpg?sw=449&sh=449&sm=fit&sfrm=tif

Hi guys,
I'v searched everywhere but could not find the solution. I have url image links in csv file. The problem is that these files dont end with",jpg" and without the ending paramaters the images does not show up

here is an example
this is the original image url: demandware.edgesuite.net/sits_pod22/dw/i...=449&sm=fit&sfrm=tif

and this is without the parameter after the".jpg" : demandware.edgesuite.net/sits_pod22/dw/i...plate_dp_1085641.jpg

is there anyway I could fix this so my csv would import the files in hikashop?

Last edit: 9 years 5 months ago by sabita_tu.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 5 months ago #205844

Hi,

you could use such link:

http://demandware.edgesuite.net/sits_pod22/dw/image/v2/AAMR_PRD/on/demandware.static/Sites-shop-world-kitchen-Site/Sites-master-catalog-PROD/default/dw67589aa9/products/cor_shadow_iris_sq_plate_dp_1085641.jpg?sw=449&sh=449&sm=fit&sfrm=tif&name=cor_shadow_iris_sq_plate_dp_1085641.jpg

The following user(s) said Thank You: sabita_tu

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 1
9 years 5 months ago #205941

hi Nicole,
thanks for the suggestion. Though the image link opens in a regular browser, the csv file does not seem to upload the image in the shop. I tried it with a a random image with smaller url and my csv is working ok. here is a test csv file I created. The first product is with the link with modification as you told above, the second is with a random google image. The first one does not seem to upload the image.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 4 months ago #205942

Hi,

Try to change the code:

$parts = explode('/',$image);
					$name = array_pop($parts);
					if(!file_exists($this->uploadFolder.$name)){
to:
$parts = explode('/',$image);
					$name = array_pop($parts);
					$name = explode('?',$name);
					$name = array_shift($name);
					if(!file_exists($this->uploadFolder.$name)){
in the file administrator/components/com_hikashop/helpers/import.php and see if that helps.

The following user(s) said Thank You: sabita_tu

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 1
9 years 4 months ago #206067

Wow. love you Nicolas ! Worked perfectly.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum