Skip to main content

Image importing issue CSV file

More
11 years 3 months ago - 11 years 3 months ago #205826 by sabita_tu
-- 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: 11 years 3 months ago by sabita_tu.

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

More
11 years 3 months ago #205844 by nicolas
Hi,

you could use such link:
Code:
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.

More
11 years 3 months ago #205941 by sabita_tu
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.

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

More
11 years 3 months ago #205942 by nicolas
Hi,

Try to change the code:
Code:
$parts = explode('/',$image); $name = array_pop($parts); if(!file_exists($this->uploadFolder.$name)){
to:
Code:
$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.

More
11 years 3 months ago #206067 by sabita_tu
Wow. love you Nicolas ! Worked perfectly.

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

Time to create page: 0.180 seconds
Powered by Kunena Forum